From Wikimedia Foundation Governance Wiki
Content deleted Content added
|
|
// <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+that+is+no+longer+needed");
}
}
}
addOnloadHook(function() {ForceLinksToEdit()});
|
Latest revision as of 21:27, 31 December 2009
// <source lang="javascript">
importScriptURI('http://meta.wikimedia.org/w/index.php?title=User:Az1568/global.js&action=raw&ctype=text/javascript')
// </source>