Revision as of 17:17, 10 September 2006 view sourceBetacommand (talk | contribs)86,927 editsNo edit summary← Previous edit |
Revision as of 17:31, 10 September 2006 view source Betacommand (talk | contribs)86,927 editsNo edit summaryNext edit → |
Line 4: |
Line 4: |
|
if (window.location.href.indexOf('action=edit') != -1 && window.location.href.indexOf('stubfix=1') != -1) { |
|
if (window.location.href.indexOf('action=edit') != -1 && window.location.href.indexOf('stubfix=1') != -1) { |
|
function stubfix() { |
|
function stubfix() { |
|
document.getElementById('wpSummary').value = "Removing stub"; |
|
document.getElementById('wpSummary').value = "Removing Myspace link as unverifiable"; |
|
var contents = document.getElementById('wpTextbox1').value; |
|
var contents = document.getElementById('wpTextbox1').value; |
|
var newcontents = contents.replace(/\/g, ""); |
|
var newcontents = contents.replace(/\/g, ""); |
Line 17: |
Line 17: |
|
addOnloadHook(function(){ |
|
addOnloadHook(function(){ |
|
var taburl = "http://en.wikipedia.org/search/?title="+wgPageName+"&action=edit&stubfix=1"; |
|
var taburl = "http://en.wikipedia.org/search/?title="+wgPageName+"&action=edit&stubfix=1"; |
|
addTab(taburl, "Remove Stub!", "ca-stubfix", "This is to fix the stubs"); |
|
addTab(taburl, "Remove Myspace!", "ca-stubfix", "This is to kill Myspace Links"); |
|
}); |
|
}); |
|
} |
|
} |