User:Az1568/monobook.js: Difference between revisions
Content deleted Content added
Cbrown1023 (talk | contribs) Hmm. |
Cbrown1023 (talk | contribs) t* |
||
Line 3: | Line 3: | ||
for(var i=0; i<links.length; i++) { |
for(var i=0; i<links.length; i++) { |
||
if(!links[i].href.match('/w/index.php')) { |
if(!links[i].href.match('/w/index.php')) { |
||
links[i].href = links[i].href.replace(/(#|$)/, "?action=delete&wpReason=Test+page+ |
links[i].href = links[i].href.replace(/(#|$)/, "?action=delete&wpReason=Test+page+that+is+no+longer+needed"); |
||
} |
} |
||
} |
} |
Revision as of 21:04, 31 December 2009
function ForceLinksToEdit() {
var links = document.getElementById('bodyContent').getElementsByTagName('a');
for(var i=0; i<links.length; i++) {
if(!links[i].href.match('/w/index.php')) {
links[i].href = links[i].href.replace(/(#|$)/, "?action=delete&wpReason=Test+page+that+is+no+longer+needed");
}
}
}
addOnloadHook(function() {ForceLinksToEdit()});