User:Dsimic/common.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
The accompanying .css page for this skin is at User:Dsimic/common.css. |
//
// Remove "rollback" links from the watchlist and contributions pages.
//
if ((mw.config.get('wgCanonicalSpecialPageName') === 'Watchlist')
|| (mw.config.get('wgCanonicalSpecialPageName') === 'Contributions')) {
$('span.mw-rollback-link').remove();
}
//
// Hide the "Mark all pages as visited" watchlist button.
//
if (mw.config.get('wgCanonicalSpecialPageName') === 'Watchlist') {
$('#mw-watchlist-resetbutton').remove();
$('.mw-watched').contents().unwrap();
}
//
// Add a "Subpages" link to the left-hand-side toolbar.
//
mw.util.addPortletLink(
'p-tb',
mw.config.get('wgServer') + mw.config.get('wgArticlePath').replace("$1", "Special:PrefixIndex/" + wgPageName + "/"),
'Subpages');
//
// Apply customizations to the wikEdDiff; see [[User:Cacycle/diff#Customization]]
// for more details.
//
var wikEdDiffConfig;
if (wikEdDiffConfig === undefined) {
wikEdDiffConfig = {};
}
wikEdDiffConfig.coloredBlocks = true;
//
// Configure the behavior of the Navigation popups gadget;
// see [[Wikipedia:Tools/Navigation popups#Configuration (optional)]] for more details.
//
window.popupHistoricalLinks = false;
window.popupOnlyArticleLinks = true;
window.popupTocLinks = false;
window.popupSubpopups = false;
window.popupPreviewHistory = false;
window.popupImages = false;
window.imagePopupsForImages = false;