Minecraft Wiki
Advertisement

Documentation may be created at User:Numbermaniac/common.js/doc.

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.

// Begin Edit Counter Script

// Counts all your edits and saves them to a page ( http://en.wikipedia.org/wiki/User:Kanegasi/editcounter )
if (mw.config.get('wgTitle') === mw.config.get('wgUserName') && mw.config.get('wgNamespaceNumber') === 2) {
    var pageName = 'edit count';
    var summaryLink = 'wikipedia:User:Kanegasi/editcounter';
    var transcludeAll = true;
    var tableHeaders = true;
    var bottomRowAttrib = 'style = "font-size:16px; color:#6088EB"'
    mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Kanegasi/editcounter.js&action=raw&ctype=text/javascript');
}

// End Edit Counter Script
// Begin Go To Top script

// Go To Top Script from ultradude25

importScript('User:Numbermaniac/goToTop.js');

// End Go To Top script
// Begin advisor.js
// Thanks Kanegasi for the help here! I originally
// copied the entire code from Wikipedia, but
// this removed 52,818 characters of it. Yay!

mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Cameltrader/Advisor.js&action=raw&ctype=text/javascript');

// End advisor
// Begin editsummarypresets from Kanegasi
   if (mw.config.get( 'wgAction' ) === 'edit' || mw.config.get( 'wgAction' ) === 'submit') {
       var customSummaries = [
           'your first preset summary',
           'your second preset summary',
           'a third preset using [[a wiki hotlink' + ']]',
       ];
       mw.loader.load( 'User:Kanegasi/editsummarypresets.js' );
   }
Advertisement