User:StevenJ81/common.js

From Simple English Wikipedia, the free encyclopedia

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.
$.when( $.ready, mw.loader.using( ['mediawiki.util'] )).then( function() {
   $('<div class="portal" id="p-mu" role="navigation"><h3>My tools</h3><div class="pBody body"></div>').insertAfter("#p-tb");
   mw.util.addPortletLink("p-mu", "//simple.wikipedia.org/w/index.php?title=Special%3APrefixIndex&prefix=StevenJ81&namespace=2", "My user pages");
   mw.util.addPortletLink("p-mu", "//simple.wikipedia.org/w/index.php?title=Special%3APrefixIndex&prefix=StevenJ81&namespace=3", "My user talk pages");
//});
//$.when( $.ready, mw.loader.using( ['mediawiki.util'] )).then( function() {
//   $('<div class="portlet portal expanded" id="p-pc" role="navigation"><h3>New page patrol</h3><div class="pBody body"></div>').insertAfter("#p-tb");
   mw.util.addPortletLink("p-mu", "//simple.wikipedia.org/wiki/Special:NewPages", "New page patrol on simplewiki");
});
LocalComments = {
        dateDifference: true,
        dateFormat: 'mdy',
        timeFirst: true,
        twentyFourHours: false,
        dayOfWeek: true,
        dropDays: 0,
        dropMonths: 0
};
//mw.loader.load(['ext.gadget.Twinkle']);
mw.loader.load( 'https://simple.wikipedia.org/w/index.php?title=User:Djsasso/enWPTab.js&action=raw&ctype=text/javascript' );