This is an old revision of this page, as edited by Betacommand (talk | contribs) at 18:28, 10 September 2006 (finished Myspace removal code). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Revision as of 18:28, 10 September 2006 by Betacommand (talk | contribs) (finished Myspace removal code)(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
This user script seems to have a documentation page at User:Δ/Sandbox. |
//Written by ], thanks to ] and ] for help with this! //Modified by ] // BEGIN MYSPACE LINK REMOVAL CODE //check if we are editing and we want to myspace if (window.location.href.indexOf('action=edit') != -1 && window.location.href.indexOf('myspace=1') != -1) { function myspace() { document.getElementById('wpSummary').value = "Removing Myspace link as unverifiable"; var contents = document.getElementById('wpTextbox1').value; var newcontents = contents.replace(/(\*\s*?)?\/g, ""); document.getElementById('wpTextbox1').value = newcontents; document.getElementById('wpDiff').click(); document.getElementById('wpWatchthis').checked = ""; } addOnloadHook(function(){ myspace(); }); } //Check if it's article to add the tab if(wgCanonicalNamespace == "") { addOnloadHook(function(){ var taburl = "http://en.wikipedia.org/search/?title="+wgPageName+"&action=edit&myspace=1"; addTab(taburl, "Remove Myspace!", "ca-myspace", "This is to kill Myspace Links"); }); } //END MYSPACE LINK REMOVAL CODE