User:Kennydude/global.js

/* Right this is kennydude's spoiler warning */ if(document.getElementById("spoiler")){ var x = document.createElement("div"); x.setAttribute("style", "background-color:#000000;display:block;height:"+window.offsetHeight+"px;left:0;position:absolute;top:0;width:100%;z-index:100;"); var s = document.createElement("div"); s.setAttribute("style", "margin: 0pt auto; background: white; width: 400px; height: 200px;"); s.innerHTML = " WARNING! The following page contains spoilers. If you have not yet seen this episode/item then this could spoil it for you. If you are really, really sure you want to continue click the button bellow you "; x.appendChild(s); document.body.appendChild(x); }