Revision as of 04:28, 18 October 2006 view sourceBetacommand (talk | contribs)86,927 editsNo edit summary← Previous edit |
Revision as of 15:45, 19 March 2007 view source Betacommand (talk | contribs)86,927 editsNo edit summaryNext edit → |
Line 1: |
Line 1: |
|
//Written by ], thanks to ] and ] for help with this! |
|
//Written by ], thanks to ] and ] for help with this! |
|
//Modified by ] |
|
//Modified by ] |
|
// BEGIN Flickr LINK REMOVAL CODE |
|
// BEGIN prodspec LINK REMOVAL CODE |
|
//check if we are editing and we want to Flickr |
|
//check if we are editing and we want to prodspec |
|
if (window.location.href.indexOf('action=edit') != -1 && window.location.href.indexOf('Flickr=1') != -1) { |
|
if (window.location.href.indexOf('action=edit') != -1 && window.location.href.indexOf('prodspec=1') != -1) { |
|
function Flickr() { |
|
function prodspec() { |
|
document.getElementById('wpSummary').value = "Removing Flickr link against policy to link to Search Engines"; |
|
document.getElementById('wpSummary').value = "Removing prodspec link as unverifiable and against policy ]"; |
|
|
var reason = prompt("Which warning do you wish to issue?"); |
⚫ |
var contents = document.getElementById('wpTextbox1').value; |
|
|
|
document.editform.wpTextbox1.value = '{{dated prod|concern = {{{concern|'+ reason + '}}}|month = March|day = 19|year = 2007|time = 15:45|timestamp = 20070319154544}} |
|
var newcontents = contents.replace(/(\*\s*?)?\/g, ""); |
|
|
|
<!-- Do not use the "dated prod" template directly; the above line is generated by "subst:prod|reason" -->\n' + document.editform.wpTextbox1.value; |
|
document.getElementById('wpTextbox1').value = newcontents; |
|
|
|
document.editform.wpSummary.value = 'This page has been proposed for deletion and will be deleted in 5 days if no one objects.'; |
|
document.getElementById('wpDiff').click(); |
|
|
document.getElementById('wpWatchthis').checked = ""; |
|
document.getElementById('wpSave').click(); |
|
⚫ |
document.getElementById('wpWatchthis').checked = "true"; |
|
} |
|
} |
|
addOnloadHook(function(){ Flickr(); }); |
|
addOnloadHook(function(){ prodspec(); }); |
|
} |
|
} |
|
//Check if it's article to add the tab |
|
//Check if it's article to add the tab |
|
if(wgCanonicalNamespace == "") { |
|
if(wgCanonicalNamespace == "") { |
|
addOnloadHook(function(){ |
|
addOnloadHook(function(){ |
|
var taburl = "http://en.wikipedia.org/search/?title="+wgPageName+"&action=edit&Flickr=1"; |
|
var taburl = "http://en.wikipedia.org/search/?title="+wgPageName+"&action=edit&prodspec=1"; |
|
addTab(taburl, "Remove Flickr!", "ca-Flickr", "This is to kill Flickr Links"); |
|
addTab(taburl, "Prod!", "ca-prodspec", "This PRODs articles"); |
|
}); |
|
}); |
|
} |
|
} |
|
//END Flickr LINK REMOVAL CODE |
|