User:RockMFR/blpeditintro.js

if (wgNamespaceNumber == 0) { addOnloadHook(function {   var catlinks = document.getElementById('catlinks')    if (!catlinks) return    catlinks = catlinks.getElementsByTagName('a')    var living = false    for (var i = 0; i < catlinks.length; i++) {      if (catlinks[i].title == 'Category:Living people') {        living = true        break      }    }    if (!living) return    var el = document.getElementById('ca-edit')    if (el) el = el.getElementsByTagName('a')[0]    if (el) el.href += '&editintro=Template:BLP_editintro'  }); }