Jump to content

User:Captain-tucker/monobook.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.
/****** Used to size DYK articles *******/
importScript('User:Dr_pda/prosesize.js'); //[[User:Dr_pda/prosesize.js]]

/**** afd helper ****/
/****   importScript('User:Jnothman/afd_helper/script.js');  ****/

/* This is to keep track of who is using this extension: [[User:Jnothman/afd_helper/script.js]] */

importScript('User:AzaToth/twinkle.js');
TwinkleConfig = {
revertMaxRevisions              :       50,
userTalkPageMode                :       'window',
showSharedIPNotice              :       true,
openTalkPage                    :       [ 'agf', 'norm', 'vand' ],
openTalkPageOnAutoRevert        :       false,
summaryAd                       :       " using [[WP:TWINKLE|TW]]",
deletionSummaryAd               :       " using [[WP:TWINKLE|TW]]",
protectionSummaryAd             :       " using [[WP:TWINKLE|TW]]",
watchSpeedyPages                :       [ 'g3', 'g5', 'g10', 'g11', 'g12' ],
watchProdPages                  :       true,
openUserTalkPageOnSpeedyDelete  :       [ 'g1', 'g2', 'g10', 'g11', 'g12', 'a1', 'a7', 'i3', 'i4', 'i5', 'i6', 'i7', 'u3', 't1' ],
watchRevertedPages              :       [ 'norm' ],
markRevertedPagesAsMinor        :       [ 'agf', 'norm', 'vand', 'torev' ],
deleteTalkPageOnDelete          :       false,
watchWarnings                   :       false,
markAIVReportAsMinor            :       true,
markSpeedyPagesAsMinor          :       true,
offerReasonOnNormalRevert       :       true,
orphanBacklinksOnSpeedyDelete   :       {orphan:true, exclude:['g6']}
};

/******* Provides cleanup advice for articles   **************/
importScript('User:Cameltrader/Advisor.js');

/**********  Adds edit count links to user contrib screens  ***************/
importScript('User:ais523/editcount.js'); //[[User:ais523/editcount.js]]

/*********  Add Google Search Box  *******************/
importScript('User:Mr.Z-man/gsearch.js');

/****    importScript('User:Ultraexactzz/afdsort.js');  ****/

/*********   Commons Helper  ***************/
// [[User:Krimpet/CH2.js]]
importScript('User:Krimpet/CH2.js');

/********* Add purge tab  **************/

// addPurge
addOnloadHook(function () {
    var hist; var url;
    if (!(hist = document.getElementById('ca-history') )) return;
    if (!(url = hist.getElementsByTagName('a')[0] )) return;
    if (!(url = url.href )) return;
    mw.util.addPortletLink('p-cactions', url.replace(/([?&]action=)history([&#]|$)/, '$1purge$2'),
                   'purge', 'ca-purge', 'Purge server cache for this page', '0');
});

//