Jump to content

User:Sgeureka/common.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Sgeureka (talk | contribs) at 17:54, 23 January 2009 (Revert to revision 260329521 dated 2008-12-27 15:14:43 by Sgeureka using popups). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
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;

//popupRevertSummary = 'revert vandal [[special:contributions/$3|$3]] ([[user talk:$3|talk]]) to last version by ';

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']}
};

// importScript('User:AndyZ/peerreviewer.js'); //[[User:AndyZ/peerreviewer.js]]

importScript('User:Alex Smotrov/wlunwatch.js'); //immediate watchlist entry removal

importScript('User:Splarka/watchimages.js'); //watchlist images in watchlisted articles

// http://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)#Article_sub-pages (August 28, 2008)
addOnloadHook(function () {
    addPortletLink('p-personal', wgArticlePath.replace("$1", "Special:Mypage/Sandbox"), 'My sandbox', 'pt-sandbox', 'Your personal sandbox', 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'); // [[User:Dr_pda/prosesize.js]]

/*
//this function bolds and darkgreen-izes large positive additions to the watchlist - from [[User:Franamax/monobook.js]] 2008-10-08
function bold_pos_watchlist() {
   if (wgPageName != "Special:Watchlist" && wgPageName != "Special:RecentChangesLinked") return;
   var spanlist = document.getElementsByTagName("span");
   for (x=0;x<spanlist.length;++x) {
      elt = spanlist[x]; 
if (elt.className != "mw-plusminus-pos") continue;
      if (elt.innerHTML.indexOf(",") < 0) continue;
      elt.style.fontWeight = "bold";
      elt.style.color = "DarkGreen";
      }
   }
addOnloadHook(bold_pos_watchlist);
// end of watchlist bolding function
*/

importScript('User:Anomie/linkclassifier.js'); // Linkback: [[User:Anomie/linkclassifier.js]]