Difference between revisions of "MediaWiki:Common.js"
From Tycoon Gaming
Line 1: | Line 1: | ||
− | |||
/*mw.loader.load( '/wiki/index.php?title=MediaWiki:LastPage.js&action=raw&ctype=text/javascript');*/ | /*mw.loader.load( '/wiki/index.php?title=MediaWiki:LastPage.js&action=raw&ctype=text/javascript');*/ | ||
mw.loader.load( '/wiki/index.php?title=Mediawiki:Middleclick.js&action=raw&ctype=text/javascript'); | mw.loader.load( '/wiki/index.php?title=Mediawiki:Middleclick.js&action=raw&ctype=text/javascript'); | ||
Line 5: | Line 4: | ||
/*Disabled Scripts*/ | /*Disabled Scripts*/ | ||
/*mw.loader.load( '/wiki/index.php?title=MediaWiki:ReplaceWordWithLink.js&action=raw&ctype=text/javascript');*/ | /*mw.loader.load( '/wiki/index.php?title=MediaWiki:ReplaceWordWithLink.js&action=raw&ctype=text/javascript');*/ | ||
+ | |||
+ | function iniFrame() { | ||
+ | if (window.location == window.parent.location ) | ||
+ | { | ||
+ | mw.loader.load( '/wiki/index.php?title=MediaWiki:ServerList.js&action=raw&ctype=text/javascript'); | ||
+ | } | ||
+ | } | ||
+ | iniFrame(); |
Revision as of 23:11, 20 October 2019
/*mw.loader.load( '/wiki/index.php?title=MediaWiki:LastPage.js&action=raw&ctype=text/javascript');*/ mw.loader.load( '/wiki/index.php?title=Mediawiki:Middleclick.js&action=raw&ctype=text/javascript'); /*Disabled Scripts*/ /*mw.loader.load( '/wiki/index.php?title=MediaWiki:ReplaceWordWithLink.js&action=raw&ctype=text/javascript');*/ function iniFrame() { if (window.location == window.parent.location ) { mw.loader.load( '/wiki/index.php?title=MediaWiki:ServerList.js&action=raw&ctype=text/javascript'); } } iniFrame();