User:Nux/common.js

/** See also:
 * https://pl.wikipedia.org/wiki/Wikipedysta:Nux/common.js
 * https://meta.wikimedia.org/wiki/User:Nux/global.css
 * https://meta.wikimedia.org/wiki/User:Nux/global.js

// Example gadget with Wikiploy // if (mw.config.get('wgNamespaceNumber') == 2 && mw.config.get('wgTitle', '-').startsWith('Nux')) { // 	importScript('User:Nux/yourGadgetName-dev.js'); // }

// custom VE sequences (triggers) importScript('User:Nux/veAutocorrect.js');

// move to meta: meta:User:Nux/global.js // User:Nux/WikilinQs.js //if ( mw.config.get('wgNamespaceNumber') === 0 ) { //	importScript('User:Nux/WikilinQs.js'); //}

// translate link //importScript('User:Nux/content-translate-helper.js');

// edit 0-section mw.loader.load('https://pl.wikipedia.org/wiki/MediaWiki:Gadget-edit-first-section.js?action=raw&ctype=text/javascript');

// replay links importScript('User:Nux/replylinks.js');

// Show sort keys for articles in a category if ( mw.config.get('wgCanonicalNamespace') === 'Category' ) { importScript('User:Nux/CategorySortKeys.js'); }

// popups // only on devices that can hover (not on touch-only) if (!window.matchMedia("(hover: none)").matches) { importStylesheet('MediaWiki:Gadget-navpop.css'); // MediaWiki:Gadgets-definition mw.loader.using( "mediawiki.api,mediawiki.user,mediawiki.util,user.options,mediawiki.jqueryMsg".split(','), function {		window.popupMaxPreviewCharacters = 12000;		//importScript('MediaWiki:Gadget-popups.js');		importScript('User:Nux/popups-dev.js');	}); }