User:Daask/common.js: Difference between revisions

Content deleted Content added
Add User:Joeytje50/JWB / JavaScript Wiki Browser
Prefer importScript instead of mw.loader.load for local scripts
Line 48:
 
// For editing redirect pages
// [[User:Wugapodes/Capricorn]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AWugapodes%2FCapricorn.js&action=raw&ctype=text/javascript'); // Backlink: [[User:Wugapodes/Capricorn.js]]
importScript('User:Wugapodes/Capricorn.js'); // Backlink: [[User:Wugapodes/Capricorn.js]]
// [[User:Kephir/gadgets/sagittarius]]
//importScript('User:Daask/sandbox/sagittarius.js'); // Backlink: [[User:Daask/sandbox/sagittarius.js]]
Line 80 ⟶ 81:
/// WIKIPEDIA TOOLS
 
// [[User:Joeytje50/JWB]]
mw.loader.loadimportScript( '/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Joeytje50/JWB.js/load.js]]
 
// http://sam.zoy.org/wikipedia/