Jump to content

User:Sgeureka/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.
// [[User:Lupin/popups.js]]
/*importScript('User:Lupin/popups.js');
popupDelay = 1.5;
popupHideDelay = 0.1;
popupImages = false;
popupPreviews = false; */
popupFixDabs=true; 

// Twinkle
//importScript('User:AzaToth/twinklefluff.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              :       [],
        markRevertedPagesAsMinor        :       [ 'agf', 'norm', 'vand', 'torev' ],
        deleteTalkPageOnDelete          :       false,
        watchWarnings                   :       false,
        markAIVReportAsMinor            :       true,
        markSpeedyPagesAsMinor          :       true,
        offerReasonOnNormalRevert       :       true,
        orphanBacklinksOnSpeedyDelete   :       {orphan:true, exclude:['g6']}
};
//below per [[Wikipedia talk:Twinkle#Twinkle menu on Vector]] (11 May 2010)
//if( typeof( TwinkleConfig ) == 'undefined' ) TwinkleConfig = {};
TwinkleConfig.portletArea = 'column-one';
TwinkleConfig.portletId   = 'p-cactions';
TwinkleConfig.portletName = 'Twinkle';
TwinkleConfig.portletNext = 'p-search';*/

importScript('User:Cacycle/wikEdDiff.js');  // Linkback  [[User:Cacycle/wikEdDiff]] enhanced diff view using ajax
importScript('User:Anomie/linkclassifier.js'); // Linkback: [[User:Anomie/linkclassifier.js]]
importScript('User:Ais523/adminrights.js'); // Linkback: [[User:Ais523/adminrights.js]]
importScript('User:Alex Smotrov/wlunwatch.js'); //immediate watchlist entry removal, Linkback: [[User:Alex Smotrov/wlunwatch.js]]

importScript('User:EnterpriseyBot/delsort.js'); // Linkback: [[User:EnterpriseyBot/delsort.js]]
window.delsortWatchlist = "watch";

// [[user:js/watchlist]]
//var unwatchLinksOnLoad = true; //add (x) links on page load
//if (mw.config.get('wgCanonicalSpecialPageName') == 'Watchlist') 
//  importScript('user:js/watchlist.js');

// http://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)#Article_sub-pages (August 28, 2008)
addOnloadHook(function () {
    mw.util.addPortletLink('p-personal', mw.config.get('wgArticlePath').replace("$1", "Money Heist"), 'Money Heist', 'pt-sandbox', 'Money Heist', null, document.getElementById('pt-preferences'));
    mw.util.addPortletLink('p-personal', mw.config.get('wgArticlePath').replace("$1", "Wikipedia:WikiProject Deletion sorting/Fictional elements"), 'DelSortFict', 'pt-sandbox', 'Wikipedia:WikiProject Deletion sorting/Fictional elements', null, document.getElementById('pt-preferences'));
});

// http://en.wikipedia.org/wiki/User:Tony1/Information_on_the_removal_of_DA (date auto formatting)
importScript('User:Lightmouse/monobook.js/script.js');

importScript('User:Dr_pda/prosesize.js'); // Linkback: [[User:Dr_pda/prosesize.js]]
importScript('User:GregU/dashes.js');  // Linkback [[User:GregU/dashes.js]]
importScript('User:Markhurd/hidetopcontrib.js'); // Linkback [[User:Markhurd/hidetopcontrib.js]]

$('head').one('reftoolbarbase', function() {  // [[Wikipedia:RefToolbar_2.0#Automatic parsing]]
  CiteTB.UserOptions['autoparse'] = false;
});

// [[de:Benutzer:NetAction/WikiTrust/WikiPraise]]
/*$.holdReady(true);
mediaWiki.loader.load("https://toolserver.org/~netaction/wikitrust.js");*/

// Linkback: [[Wikipedia:Wikidata]]
mw.loader.load('//www.wikidata.org/enwiki/w/index.php?title=User:Yair_rand/checksitelinks.js&action=raw&ctype=text/javascript');

importScript('User:Lourdes/Backlinks.js'); // Linkback: [[User:Lourdes/Backlinks.js]]
importScript( 'User:Enterprisey/reply-link.js' ); // Backlink: [[User:Enterprisey/reply-link.js]]