Jump to content

User:LR Guanzon/common.js

From Wikipedia, the free encyclopedia
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.
$(function() {
'use strict';

/* Popups */
window.popupRevertSummaryPrompt = true;
window.popupNeverGetThumbs = true;

/* Edit counter */
if (mw.config.get('wgTitle') === mw.config.get('wgUserName') && mw.config.get('wgNamespaceNumber') === 2) {
  var subPages = true;
  mw.loader.load('/w/index.php?title=User:Kanegasi/editcounter.js&action=raw&ctype=text/javascript');
}

/* Other */
if (mw.config.get('wgTitle') === 'RecentChanges' && mw.config.get('wgNamespaceNumber') === -1) {
  setInterval(function() {
  	$('ul.special a').attr('target', '_blank');
  }, 1000);
}

//mw.loader.load('/w/index.php?title=User:LR Guanzon/test.js&action=raw&ctype=text/javascript');
});