User:JJPMaster/install.js
Jump to navigation
Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes.
- Internet Explorer: hold down the Ctrl key and click the Refresh or Reload button, or press Ctrl+F5.
- Firefox: hold down the Shift key while clicking Reload; alternatively press Ctrl+F5 or Ctrl-Shift-R.
- Opera, Konqueror and Safari users can just click the Reload button.
- Chrome: press Ctrl+F5 or Shift+F5
/**
* script-installer loader
*/
if( mw.config.get( "wgNamespaceNumber" ) > 0 ) {
var jsPage = mw.config.get( "wgPageName" ).slice( -3 ) === ".js" ||
mw.config.get( "wgPageContentModel" ) === "javascript";
if( jsPage || document.getElementsByClassName( "scriptInstallerLink" ).length ||
document.querySelector( "table.infobox-user-script" ) ) {
mw.loader.load('/w/index.php?title=User:JJPMaster/install.js/code.js&action=raw&ctype=text/javascript');
}
}