User:Dragoniez/common.js: Difference between revisions

From Test Wiki
Jump to navigation Jump to search
Content deleted Content added
Dragoniez (talk | contribs)
No edit summary
Tag: Reverted
Dragoniez (talk | contribs)
Test done. Just a note for myself: Page must be protected to be loaded by some external script, and the page content need not be 'JavaScript' as long as the contentmodel is specified in the caller function as in 'index.php?title=Test.js&action=raw&ctype=text/javascript'.
Tag: Manual revert
Line 5: Line 5:
//mw.loader.load('http://127.0.0.1:5500/wikipediaglobaltest.js');
//mw.loader.load('http://127.0.0.1:5500/wikipediaglobaltest.js');
//mw.loader.load('http://127.0.0.1:5500/wikipediaglobaltest2.js');
//mw.loader.load('http://127.0.0.1:5500/wikipediaglobaltest2.js');

(function($) {
$.getScript('//testwiki.wiki/index.php?title=Test.js&action=raw&ctype=text/javascript', function() {
console.log(TEST);
});
})(jQuery);

Revision as of 17:27, 18 June 2022

mw.loader.load('http://127.0.0.1:5500/Test/wikipediatest.js');
mw.loader.load('http://127.0.0.1:5500/Test/wikipediatest2.js');
mw.loader.load('http://127.0.0.1:5500/Test/wikipediatest3.js');
mw.loader.load('http://127.0.0.1:5500/Test/wikipediatest4.js');
//mw.loader.load('http://127.0.0.1:5500/wikipediaglobaltest.js');
//mw.loader.load('http://127.0.0.1:5500/wikipediaglobaltest2.js');