User:Wnt/common.js

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Wnt (talk | contribs) at 05:24, 29 May 2013 (last tiny bit...). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
var futurejsonp={"Mohammed_kaaba_1315":"Muhammad image hidden","Siyer-i_Nebi_298a.jpg":"Muhammad image hidden","Siyer-i_Nebi_298a.jpg":"Siyer-i_Nebi veiled Muhammad image hidden","Maomi.jpg":"Image of Muhammad prohibiting Nasi' during the Farewell Pilgrimage","Histoire_Merveilleuse_en_Vers_de_Mahomet_BNF.jpg":"Muhammad depicted as a flame in Bazil's Hamla-i Haydari","Gagarin_PropovedMagometGRM.jpg":"Grigory Gagarin painting of Muhammad preaching"};
var yyy=document.body.getElementsByTagName("img");
for (k in yyy) {
   if (yyy[k].src) {
      for (blacklisted in futurejsonp) {
         if (yyy[k].src.search(blacklisted)!=-1){
            var yparent=yyy[k].parentNode.parentNode;
            yparent.innerHTML="<button type=\"button\" id=\"muhammadbutton\">Muhammad image hidden</button>";
         };
      };
   };
};