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("class")) {        switch (spans[index].className) {            case "Metacafe":                spans[index].innerHTML = ' ';                break outerLoop;            case "HaganTube":                spans[index].innerHTML = ' ';                break outerLoop;            case "Crackle":                spans[index].innerHTML = ' '; break outerLoop; case "Facebook": spans[index].innerHTML = ' ' ; break outerLoop; case "Vine": spans[index].innerHTML = ' '; break outerLoop; case "afreeca": spans[index].innerHTML = ' '; break outerLoop; case "internetArchive": spans[index].innerHTML = ' '; break outerLoop; case "YahooTV": spans[index].innerHTML = " "; break outerLoop; case "WikimediaCommons": spans[index].innerHTML = ' '; break outerLoop; case "funnyordie": spans[index].innerHTML = ' '; break outerLoop; 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 outerLoop; default: break; }     }   } });