Difference between revisions of "User:Human/monobook adfree.js"

From RationalWiki
Jump to navigation Jump to search
m (User:Human/monobook.js moved to User:Human/monobook adfree.js: per advice on how to make this work)
(This does not work on CUR's newer signature, and it's not necessary any more - see User talk:Nx/Scripts/Curse.js)
Line 1: Line 1:
/*
 
CUR Signature Exchanger
 
*/
 
  
function curse() {
 
  var bads = document.getElementsByTagName("a");
 
  var i;
 
  for (i=0;i<bads.length;++i)
 
  {
 
    if (bads[i].getAttribute("title")=="User:ConservapediaUndergroundResistor" && bads[i].childNodes.length > 0 && bads[i].childNodes[0].nodeName == "FONT") {
 
      bads[i].innerHTML = "CUR";
 
    }
 
    if (bads[i].getAttribute("title")=="User talk:ConservapediaUndergroundResistor" && bads[i].childNodes.length > 0
 
        && bads[i].childNodes[0].childNodes.length > 0 && bads[i].childNodes[0].childNodes[0].nodeName == "FONT") {
 
      bads[i].innerHTML = "<sup>talk</sup>";
 
    }
 
  }
 
}
 
 
addOnloadHook(curse);
 

Revision as of 16:02, 7 February 2009