User:Dragoniez/common.js: Difference between revisions

From Test Wiki
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'.
No edit summary
Tag: Reverted
(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);
195

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.