User:P858snake/common.js
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.
The accompanying .css page for this skin can be added at User:P858snake/common.css. |
/*
* 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');