Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
//Emulator iframe with one of my videos as the default src
//Meant to be used with [Template:MusicPlayer] for stories
document.getElementsByTagName('body')[0].onload = function() {
if (document.getElementById('musicPlayerAllow') !== null) {
var rail = document.getElementById('WikiaRail');
var node = document.createElement("iframe");
var textnode = document.createTextNode("Loading iframe...");
node.appendChild(textnode);
node.classList.add("EmulatorFrame");
node.classList.add("rail-module");
node.style.border = 0;
node.style.frameborder = 0;
node.style.height = 120;
node.style.scrolling = 'no';
node.src = 'https://www.youtube.com/embed/BHfqz68xEY8?version=3&enablejsapi=1';
node.style.width = 160;
node.style.position = "relative";
node.style.display = "none";
rail.insertBefore(node, document.getElementById('WikiaAdInContentPlaceHolder'));
document.getElementsByClassName('EmulatorFrame')[0].startVideo();
}
};