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.
// Expand all grouped RC/Watchlist entries, if you use preference "Group changes by page in recent changes and watchlist". 
// $( function () { 
//	mw.hook('structuredChangeFilters.ui.initialized').add(function() {
//		$('.mw-enhancedchanges-arrow').trigger( 'click' );
//	} );
//} );
 
// Highlight my username everywhere. From [[w:User:Ais523/highlightmyname2.js]]. See also global.css
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Ais523/highlightmyname2.js&action=raw&ctype=text/javascript&oldid=714853643');
window.hmn2username="quiddity"; // This line is only needed if it differs from your full account name
 
// Default expand the "View templates on this page" and "View hidden categories on this page" on initial preview
mw.loader.using('mediawiki.cookie', function(){ mw.cookie.set('templates-used-list', 'expanded'); });
mw.loader.using('mediawiki.cookie', function(){ mw.cookie.set('hiddencats-list', 'expanded'); });

// Strikeout locally blocked or locked username links
mw.loader.load('https://meta.wikimedia.org/w/index.php?title=MediaWiki:Gadget-markblocked.js&action=raw&ctype=text/javascript&oldid=25578980');
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:GeneralNotability/mark-locked.js&action=raw&ctype=text/javascript&oldid=1133031755');

// Navpopups. See also global.css
mw.loader.load( 'https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-popups.js&action=raw&ctype=text/javascript&oldid=1151460389' );
mw.loader.load( 'https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-navpop.css&action=raw&ctype=text/css', 'text/css');
// window.popupDelay=0.3; // default 0.5
// window.popupHideDelay=0.3; // default 0.5
window.popupFixDabs=true;
window.popupOnEditSelection=false;
window.popupAdminLinks=false;
window.popupImages=true;
window.popupImageSize = 150; // default 65
window.imagePopupsForImages=false;
// window.popupPreviewKillTemplates=false;
window.popupPreviewRawTemplates=false;
window.popupMaxWidth=500; //default 350
window.popupDiffMaxLines = 200; // default 100
window.popupOnlyArticleLinks=false;

// Add an [Edit section] to the top/intro/lede/section0
// mw.loader.load('https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-edittop.js&action=raw&ctype=text/javascript&oldid=675636814');

var ns = mw.config.get("wgNamespaceNumber"),
	action = mw.config.get('wgAction');
if (ns == 2 || ns == 3) {
	// Add info on userpages listing their flags, account-age, contributions-count, and last-edit-time
    // See screenshot at https://en.wikipedia.org/wiki/User:PleaseStand/User_info
	mw.loader.load('https://meta.wikimedia.org/w/index.php?title=User:SMcCandlish/userinfo.js&action=raw&ctype=text/javascript&oldid=19571934');
}

if (ns == 2 || ns == 3 || ns == -1) {
    // Gives some useful links on user, user talk, and user contribution pages
    // by [[m:user:Hoo man]] <http://meta.wikimedia.org/wiki/User:Hoo_man/Scripts/Useful_links>
    mw.loader.load('https://meta.wikimedia.org/w/index.php?title=User:Hoo_man/useful_links.js&action=raw&ctype=text/javascript&oldid=25037824');
    if(typeof(usefulLinksConfig) == 'undefined') usefulLinksConfig = {};
    usefulLinksConfig.toolLinkMethod = 'p-cactions';
}

/* Override annoying purge dialog */
if ( mw.config.get( 'wgAction' ) === 'purge' ) {$('form.mw-htmlform').submit();}

// Add a toolbox link to display the current page with MediaWiki message names replacing their text
mw.loader.using( 'mediawiki.util', function () {mw.loader.load('https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-ShowMessageNames.js&action=raw&ctype=text/javascript&oldid=554722666');
} );

// Show EventLogging validation errors in a dismissible bar at the top of page.
var $el = $( '<pre style="background: yellow; margin: 0; padding: 8px; position: fixed; top: 0; width: 100%; z-index: 99"></pre>' );
$el.click( function () { $el.empty().detach(); } );
mw.trackSubscribe( 'eventlogging.error', function ( topic, err ) {
    $el.text( function ( idx, text ) {
        return ( text && text + '\n' ) + err;
    } ).appendTo( 'body' );
} );

// TESTING STUFF and OLD, BELOW

// [[File:User:He7d3r/Tools/HighlightSmallDiffs.js]] (workaround for [[phab:T35355]])
//mw.loader.load( 'https://meta.wikimedia.org/w/index.php?title=User:He7d3r/Tools/HighlightSmallDiffs.js&action=raw&ctype=text/javascript' );
// Testing cleanDiff instead...  [[:de:Benutzer:TMg/cleanDiff]]  ... revert, there seems to be a Firefox specific bug preventing it from working
//mw.loader.load('https://de.wikipedia.org/w/index.php?title=Benutzer:TMg/cleanDiff.js&action=raw&ctype=text/javascript');

// Article Map (proof of concept)
// mw.loader.load('https://meta.wikimedia.org/w/index.php?title=User:Matma_Rex/article-map.js&action=raw&ctype=text/javascript');

// Sidebar ToC
// mw.loader.load( 'https://cdn.rawgit.com/prtksxna/persistent-toc/master/ptoc.css', 'text/css' );
// mw.loader.load( 'https://cdn.rawgit.com/prtksxna/persistent-toc/master/ptoc.js', 'text/javascript' );

// [[m:User:Hedonil/XTools]]
// mw.loader.load('https://meta.wikimedia.org/w/index.php?title=User:Hedonil/XTools/XTools.js&action=raw&ctype=text/javascript');

// Wiki-Labels [[File:User:EpochFail/WikiLabels.js]] - details at [[:en:WP:Labels]]
//mw.loader.load( 'https://labels.wmflabs.org/gadget/loader.js' );

// Hide "Beta" in the personal bar
// $('#pt-betafeatures').hide();

// TheDJ's responsive vector
// mw.loader.load('https://www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-responsiveContentBase.css&action=raw&ctype=text/css', 'text/css');
// mw.loader.load('https://www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-responsiveContent.js&action=raw&ctype=text/javascript&oldid=2535212');
// mw.loader.load('https://www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-mobileVectorBase.css&action=raw&ctype=text/css', 'text/css');
// mw.loader.load('https://www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-mobileVector.js&action=raw&ctype=text/javascript&oldid=2535230');
// I also use this with it: https://userstyles.org/styles/149276/wikimedia-gadget-responsivecontentbase-1900-tweak

// Add anchors to every heading (until Phab:T18691 is completed)
// mw.loader.load( 'https://www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-vector-headanchor.js&oldid=3092404&action=raw&ctype=text/javascript	' );
// mw.loader.load( 'https://www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-vector-headanchor.css&action=raw&ctype=text/css', 'text/css');

// ShortURL in the 'Tools' sections of sidebar
mw.loader.load('https://fr.wikipedia.org/w/index.php?title=MediaWiki:Gadget-ShortenUrl.js&action=raw&ctype=text/javascript&oldid=198209935');

// TheDJ's floating table headers
mw.loader.load('https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-StickyTableHeaders.css&action=raw&ctype=text/css', 'text/css');
mw.loader.load('https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-StickyTableHeaders.js&action=raw&ctype=text/javascript&oldid=1050561989');

// Null edit and Purge links in "More" menu
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:BrandonXLF/NullEdit.js&action=raw&ctype=text/javascript&oldid=1083287384');
mw.loader.load('https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-purgetab.js&action=raw&ctype=text/javascript&oldid=1105285063');

// commentlinks creator
mw.loader.load('https://meta.wikimedia.org/w/index.php?title=User:ESanders_(WMF)/commentlinks.js&action=raw&ctype=text/javascript');

// Add a link to Special:Contributions/YourUsername into personal toolbar
mw.util.addPortletLink(
 'p-vector-user-menu-overflow',
 mw.util.getUrl( 'Special:Contributions/' + mw.config.get( 'wgUserName' ) ),
 'cont.',
 'pt-contribs',
 'Your contributions',
 null,
 null
 );
 
 // Add a link to Special:Random after search bar
mw.util.addPortletLink(
 'p-vector-user-menu-preferences',
 mw.util.getUrl('Special:Random'),
 'R.',
 'pt-random',
 'Random article',
 null,
 '#ca-uls'
 );

importScriptURI('https://meta.wikimedia.org/wiki/User:Quiddity II/responsive-test.js?action=raw&ctype=text/javascript');