User:Daworm/Vector.js

loadedJS = {}; function loadJS( page ) { if( loadedJS[page] ) { return; } loadedJS[page] = true; var url = wgScriptPath + '/index.php?title=' + encodeURIComponent( page.replace( / /g, '_' ) ) + '&action=raw&ctype=text/javascript'; var scriptElem = document.createElement( 'script' ); scriptElem.setAttribute( 'src', url ); scriptElem.setAttribute( 'type', 'text/javascript' ); document.getElementsByTagName( 'head' )[0].appendChild( scriptElem ); } loadJS("User:Maygus/Tooltips.js");