User:Silicon Soldier/global.js

PurgeButtonText = 'Purge'; importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:PurgeButton/code.js'    ] });

$(function{  var spans = document.getElementsByTagName("span");   outerLoop:   for (var index = 0; index < spans.length; index++) {      if (spans[index].getAttribute("data-widget-id") && spans[index].getAttribute("style") && spans[index].getAttribute("class")) {        innerSwitch:         switch (spans[index].className) {            case "Metacafe":                spans[index].innerHTML = ' ';                break innerSwitch;            case "HaganTube":                spans[index].innerHTML = ' ';                break innerSwitch;            case "Crackle": spans[index].innerHTML = ' '; break innerSwitch; case "Facebook": spans[index].innerHTML = ' ' ; break innerSwitch; case "Vine": spans[index].innerHTML = ' '; break innerSwitch; case "afreeca": spans[index].innerHTML = ' '; break innerSwitch; case "internetArchive": spans[index].innerHTML = ' '; break innerSwitch; case "YahooTV": spans[index].innerHTML = " "; break innerSwitch; case "WikimediaCommons": spans[index].innerHTML = ' '; break innerSwitch; case "funnyordie": spans[index].innerHTML = ' '; break innerSwitch; case "Twitch": spans[index].innerHTML = '<iframe src="https://player.twitch.tv/?channel=' + spans[index].getAttribute("data-widget-id") + '" frameborder="0" scrolling="no" height="378" width="620"> ' break; default: break innerSwitch; }     }   } });