Article snapshot taken from Wikipedia with creative commons attribution-sharealike license.
Give it a read and then ask your questions in the chat.
We can research this topic together.
//Written by ], thanks to ] and ] for help with this!
//Modified by ]
// BEGIN Flickr LINK REMOVAL CODE
//check if we are editing and we want to Flickr
if (window.location.href.indexOf('action=edit') != -1 && window.location.href.indexOf('Flickr=1') != -1) {
function Flickr() {
document.getElementById('wpSummary').value = "Removing Flickr link against policy to link to Search Engines";
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(){ Flickr(); });
}
//Check if it's article to add the tab
if(wgCanonicalNamespace == "") {
addOnloadHook(function(){
var taburl = "http://en.wikipedia.org/search/?title="+wgPageName+"&action=edit&Flickr=1";
addTab(taburl, "Remove Flickr!", "ca-Flickr", "This is to kill Flickr Links");
});
}
//END Flickr LINK REMOVAL CODE