User:-Matt/global.js

// ResourceLoader throws an exception if you try and registered a module that // is already registered if (mw.loader.getModuleNames.indexOf("tundra") < 0) { mw.loader.implement("tundra", ["http://matthew2602.github.io/tundra/tundra.min.js"], {}, {}); }

var embeddedYouTubePlayers = document.getElementById("mw-content-text").querySelectorAll("iframe[src^=\"http://www.youtube.com\"]"), playerSource;
 * (function(window, document, undefined) {

if (!embeddedYouTubePlayers.length) { return; }

for (var i = 0, len = embeddedYouTubePlayers.length; i < len; i++) { playerSource = embeddedYouTubePlayers[i].src; embeddedYouTubePlayers[i].src = playerSource.replace("autoplay=1", "autoplay=0"); } })(this, this.document);