User:P858snake/common.js

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)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* 
 * Name        : Contributions tab on User pages
 * Description : Add contribs tab on user pages
 * Source      : Modified from [[:MediaWiki:Gadget-blocktab.js]]
 */
$(function() {
	if ( mw.config.get('wgNamespaceNumber') != "2" && mw.config.get('wgNamespaceNumber') != "3" ) {
		return;  // restrict to User and User talk
	}

	var title = mw.config.get('wgTitle');

	mw.util.addPortletLink(
		'p-cactions',
		'/wiki/Special:Contributions/' + title,
		'Contributions', 't-contributions2', 'Contributions for "' + title + '"'
	);
 
});

/* 
 * Name        : Mark blocked users
 * Description : Blocked users with strike through, indef with strike and italics
 * Source      : http://en.wikipedia.org/wiki/User:NuclearWarfare/Mark-blocked_script.js
 */
mw.loader.getScript('//ru.wikipedia.org/w/index.php?title=MediaWiki:Gadget-markblocked.js&action=raw&ctype=text/javascript');