MediaWiki:Gadget-script-installer.js: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
Brownlowe.2 (talk | contribs) m 1 revision imported |
No edit summary |
||
Line 1: | Line 1: | ||
⚫ | |||
/** |
|||
* 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" ) ) { |
|||
⚫ | |||
} |
|||
} |