Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
importScript('User:Frietjes/findargdups.js'); // [[User:Frietjes/findargdups]]
importScript('User:Andy M. Wang/pageswap.js'); // Backlink: [[User:Andy M. Wang/pageswap]]
// importScript('User:Frietjes/addcheckforunknownparameters.js');
importScript('User:Zackmann08/addcheckforunknownparameters.js');
importScript('User:Frietjes/docsandboxtestcaseslinks.js');
importScript('User:Frietjes/infoboxgap.js');
importScript('User:Frietjes/indent.js');
importScript('User:Zackmann08/insert-template.js');
importScript('User:PrimeHunter/My_subpages.js'); // Linkback: [[User:PrimeHunter/My subpages.js]]
importScript('User:Galobtter/Shortdesc helper.js'); // [[User:Galobtter/Shortdesc helper]]
importScript('User:Technical_13/Scripts/OneClickArchiver.js' ); // Backlink: [[User:Technical_13/Scripts/OneClickArchiver]]
importScript('User:Zackmann08/convert24hourtime.js');
importScript('User:Zackmann08/unwatch_deleted.js');
importScript( 'User:Enterprisey/reply-link.js' ); // Backlink: [[User:Enterprisey/reply-link.js]]
/*
 * Automatically tick the "Move subpages" option when moving pages.
 */
var moveSubpagesBox = document.getElementsByName("wpMovesubpages")[0];
if (moveSubpagesBox !== undefined) {
  moveSubpagesBox.checked = true;
}

// Alt + O clicks the "Show Diff" button
document.onkeyup = function(e) {
  if (e.altKey && e.which == 79) {
  	document.getElementById('wpDiff').click();
  }
};

// document.onkeyup = function(e) {
//   if (e.altKey && e.which == 75) {
//   	// var x = $x('//li[@data-mw-logaction="delete/delete"]/span[1]/a');
//   	var x = document.evaluate('//li[@data-mw-logaction="delete/delete"]/span[1]/a', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null)
//   	console.log('RAN')
//   	$.each( x, function( key, value ) {
//   		value.click();
//   	});
//   }
// };


$.when( mw.loader.using( ['mediawiki.util'] ), $.ready ).done( function() {
  mw.util.addPortletLink(
    'p-personal',
    mw.util.getUrl( 'User:Zackmann08/Notes' ),
    'Notes',
    'pt-mynotes',
    'Show your notes',
    null,
    '#pt-preferences'
  );
});