Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
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'
  });
}