User:Az1568/monobook.js: Difference between revisions
Content deleted Content added
Cbrown1023 (talk | contribs) Hmm. |
Cbrown1023 (talk | contribs) Done. |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
// <source lang="javascript"> |
|||
function ForceLinksToEdit() { |
|||
importScriptURI('http://meta.wikimedia.org/w/index.php?title=User:Az1568/global.js&action=raw&ctype=text/javascript') |
|||
var links = document.getElementById('bodyContent').getElementsByTagName('a'); |
|||
// </source> |
|||
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+tha+is+no+longer+needed"); |
|||
} |
|||
} |
|||
} |
|||
addOnloadHook(function() {ForceLinksToEdit()}); |