User:Rezonansowy/global.js
Appearance
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
window.catALotPrefs = {editpages: true};
mw.loader.load('jquery.ui');
mw.loader.load('//commons.wikimedia.org/w/index.php?action=raw&ctype=text/javascript&title=MediaWiki:Gadget-Cat-a-lot.js');
mw.loader.load('//commons.wikimedia.org/w/index.php?action=raw&ctype=text/css&title=MediaWiki:Gadget-Cat-a-lot.css', 'text/css' );
mw.loader.load('//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Incnis_Mrsi/edithysteria.js');
mw.loader.load('//en.wikipedia.org/w/index.php?action=raw&ctype=text/css&title=User:Rezonansowy/FloatHead.css', 'text/css' );
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Rezonansowy/SimpleLightbox.js&action=raw&ctype=application/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Cacycle/wikEd.js');
mw.loader.load('//commons.wikimedia.org/w/index.php?action=raw&ctype=text/javascript&title=MediaWiki:Gadget-HotCat.js');
mw.loader.load('//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:PleaseStand/userinfo.js');
mw.loader.load('//www.mediawiki.org/w/index.php?action=raw&ctype=text/javascript&title=MediaWiki:Gadget-vector-headanchor.js');
mw.loader.load('//www.mediawiki.org/w/index.php?action=raw&ctype=text/css&title=MediaWiki:Gadget-vector-headanchor.css', 'text/css' );
mw.loader.load('//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Ais523/adminrights.js');
mw.loader.load('//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:PleaseStand/highlight-comments.js');
mw.loader.load('//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:ערן/veReplace.js');
mw.loader.load('//commons.wikimedia.org/w/index.php?action=raw&ctype=text/javascript&title=MediaWiki:Gadget-PrettyLog.js');
mw.loader.load('//commons.wikimedia.org/w/index.php?action=raw&ctype=text/javascript&title=MediaWiki:Gadget-CropTool.js');
mw.loader.load( '//commons.wikimedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Rillke/SVGedit.js');
//CropTool code begins, see https://commons.wikimedia.org/wiki/Commons:CropTool
(function(mw, $){
if (mw.config.get( 'wgNamespaceNumber' ) !== 6) return;
if (mw.config.get( 'wgAction' ) != 'view') return;
$( function () {
var title = mw.config.get('wgServer') + mw.config.get('wgArticlePath').replace('$1', wgPageName),
croplink = '//tools.wmflabs.org/croptool/?title=' + encodeURIComponent(title);
mw.util.addPortletLink(
"p-tb",
croplink,
"CropTool",
"t-crop",
"Crop this image"
);
});
})(mediaWiki, jQuery);
//config for HotCat
mw.loader.using("mediawiki.user", function () {
$('body').delegate('#hotcatCommitForm', 'submit', function () {
// The variable "this" refers to the form. Its fields can be accessed directly, e.g.
// this.wpTextbox1 gives you the textarea containing the page text of the edit.
var submitType = this.wpDiff;
if (submitType && (!this.oldid || this.oldid.value == '0')) {
// Switch form submission from diff to save. Don't do this if "oldid" is set to anything but '0':
// that indicates an edit conflict with yourself, and in that case you really, really do want
// to see the diff!
this.wpEditToken.value = mw.user.tokens.get("csrfToken");
submitType.name = submitType.value = 'wpSave';
}
return true;
});
});
$( ".thumbinner:has(img:not([src^='//upload.wikimedia.org/wikipedia/commons/']))" ).css('background-color','#FFDBDB'); //NON-COMMONS IMAGE HIGHLIGHTER