User:Waldyrious/common.js

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
window.HotCatAutoRemoveCheckCatOptOut = true;

function importScript(page) {
  mw.loader.load( '//commons.wikimedia.org/w/index.php?title='
  + page + '&action=raw&ctype=text/javascript' );
}

if (mw.config.get('wgNamespaceNumber') === 6) {	importScript('User:Rillke/SVGedit.js'); }

//importScript('User:Magog the Ogre/cleanup.js');

importScript('User:Waggers/degrandparent.js');

// Replace upload link (which uses the Upload Wizard) with the simple upload form
importscript( 'MediaWiki:Replaceuploadlink.js' );

// Allow viewing and editing regions spefified in "depicts" structured data statements
//importScript( 'User:Lucas_Werkmeister/wd-image-positions.js' );
mw.loader.load( 'https://commons.wikimedia.org/w/index.php?title=User:Lucas_Werkmeister/wd-image-positions.js&action=raw&ctype=text/javascript' );