User:Eckserah/popup.js

document.write("// Tools/Navigation popups\n" + "var popScript    = '//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=MediaWiki:Gadget-popups.js&oldid=883914659';\n" + "var popStyleSheet = '//en.wikipedia.org/w/index.php?action=raw&ctype=text/css&title=MediaWiki:Gadget-navpop.css';\n"+ "if ( window.localCSS ) { popStyleSheet = 'http://localhost:8080/js/navpop.css'; }\n"+ "function popups_importScriptURI(url) {\n"+    "var s = document.createElement('script');\n"+    "s.setAttribute('src',url);\n"+    "s.setAttribute('type','text/javascript');\n"+    "document.getElementsByTagName('head')[0].appendChild(s);\n"+    "return s;\n"+ "}\n"+

"function popups_importStylesheetURI(url) {\n"+ "return document.createStyleSheet ? document.createStyleSheet(url) : popups_appendCSS('@import \"' + url + '\";');\n"+ "}\n"+

"function popups_appendCSS(text) {\n"+ "var s = document.createElement('style');\n"+ "s.type = 'text/css';\n"+ "s.rel = 'stylesheet';\n"+ "if (s.styleSheet) s.styleSheet.cssText = text\n"+ "else s.appendChild(document.createTextNode(text + ''))\n"+ "document.getElementsByTagName('head')[0].appendChild(s);\n"+ "return s;\n"+ "}\n"+

"popups_importStylesheetURI(popStyleSheet);\n"+ "popups_importScriptURI(popScript);\n"+ " "); function siteArticlePath{ return 'wiki'; } function siteBotInterfacePath{ return ''; }