MediaWiki:Gadget-ForceEditLinks.js: Difference between revisions
Content deleted Content added
Cbrown1023 (talk | contribs) Summary. |
Cbrown1023 (talk | contribs) hmm |
||
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=edit&summary=Remove+ |
links[i].href = links[i].href.replace(/(#|$)/, "?action=edit&summary=Remove+National+Belgian+account+number$1"); |
||
} |
} |
||
} |
} |
Revision as of 21:52, 8 October 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=edit&summary=Remove+National+Belgian+account+number$1");
}
}
}
addOnloadHook(function() {ForceLinksToEdit()});