User:Bfigura/monobook.js

From Wikipedia, the free encyclopedia

If a message on your talk page led you here, please be wary of who left it. The code below could contain malicious content capable of compromising your account; if your account appears to be compromised, it will be blocked. If you are unsure whether the code is safe, you can ask at the appropriate village pump.
Note: After saving, you have to bypass your browser's cache to see the changes. In Internet Explorer and Firefox, hold down the Ctrl key and click the Refresh or Reload button. Opera users have to clear their caches through Tools→Preferences, see the instructions for Opera. Konqueror and Safari users can just click the Reload button.
//Lupin's AVT
//importScript("User:Lupin/recent2.js");
//importScript('User:Lupin/autoedit.js'); //[[User:Lupin/autoedit.js]]
 
//Admin Highlighter
//importScript('User:Ais523/adminrights.js');
 
//Friendly
importScript('User:Ioeth/friendly.js');
 
// [[User:Wikidudeman/wikidudemandeluxe.js]]      
//importScript('User:Wikidudeman/wikidudemandeluxe.js');
 
 
/*
//importScript('User:Bfigura/morebits.js');
importScript('User:AzaToth/morebits.js');
importScript('User:AzaToth/twinklefluff.js');
importScript('User:Bfigura/twinklewarn.js');
importScript('User:AzaToth/twinkleprotect.js');
importScript('User:AzaToth/twinklearv.js');
importScript('User:Bfigura/twinklespeedy.js');
//importScript('User:AzaToth/twinklespeedy.js'); 
importScript('User:AzaToth/twinkleimage.js');
importScript('User:AzaToth/twinklediff.js');
importScript('User:AzaToth/twinklexfd.js');
importScript('User:AzaToth/twinkleunlink.js');
importScript('User:AzaToth/twinkleprod.js'); 
*/
 
importScript('User:AzaToth/twinkle.js');
//importScript('User:AA/scripts/twinklenotices.js');
//importScript('User:Timotab/twinklefix.js');           
// [[User:Wikidudeman/wikidudemandeluxe.js]]
// importScript('User:Wikidudeman/wikidudemandeluxe.js');
TwinkleConfig = {
        revertMaxRevisions              :       50,
        userTalkPageMode                :       'window',
        showSharedIPNotice              :       true,
        openTalkPage                    :       [ 'agf', 'norm', 'vand' ],
        openTalkPageOnAutoRevert        :       false,
        openAOLAnonTalkPage             :       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              :       [ 'agf', 'norm', 'vand', 'torev' ],
        markRevertedPagesAsMinor        :       [ 'agf', 'norm', 'vand', 'torev' ],
        deleteTalkPageOnDelete          :       false,
        watchWarnings                   :       true,
        markAIVReportAsMinor            :       false,
        markSpeedyPagesAsMinor          :       false,
        offerReasonOnNormalRevert       :       true,
        orphanBacklinksOnSpeedyDelete   :       {orphan:true, exclude:['g6']}
};
 
 
// ADD UNWATCH LINKS:
 
addOnloadHook(function () {
    if (!wgCanonicalSpecialPageName || wgCanonicalSpecialPageName != "Watchlist") return;
    if (!document.forms[0] || !document.forms[0].namespace) return;
 
    //var query_prefix = "title="+encodeURIComponent(wgPageName)+"&action=submit&remove=1&id[]=";
    var query_prefix = "action=unwatch&title=";
 
    // get list of all links in content:
    var links = document.getElementById('content').getElementsByTagName('a');
 
    // make a static copy of the nodelist and lose the original for speed
    // while we're at it, prune the uninteresting links from the list
    var linksCopy = new Array ();
    for (var i = 0; i < links.length; i++) {
        if (/[?&]action=history([&#]|$)/.test(links[i].href)) linksCopy.push(links[i]);
    }
    links = linksCopy;
 
    for (var i = 0; i < links.length; i++) {
        // create unwatch link and append it after history link
        var unwatch = document.createElement('a');
        unwatch.href = wgServer + wgScriptPath + "/index.php?" + query_prefix + encodeURIComponent(links[i].title);
        unwatch.title = "Unwatch "+links[i].title;
        unwatch.appendChild(document.createTextNode("unwatch"));
        links[i].parentNode.insertBefore(unwatch, links[i].nextSibling);
 
        // insert a delimiter between the two links
        var delim = links[i].previousSibling;
        delimText = (delim.nodeType == 3 ? delim.nodeValue : ""); // kluge to handle case where "diff" is unlinked
        delim = document.createTextNode(delimText.replace(/^.*diff/, ""));
        links[i].parentNode.insertBefore(delim, unwatch);
    }
});
 
 
/**** afd helper ****/
document.write('<script type="text/javascript"' +
'src="http://en.wikipedia.org/w/index.php?title=User:Jnothman/afd_helper/' +
'script.js&action=raw&ctype=text/javascript&dontcountme=s"></script>');
 
/* This is to keep track of who is using this extension: [[User:Jnothman/afd_helper/script.js]] */
 
 
importScript('User:Wikidudeman/tags.js');
 
var FlexiTagConfig = {};
FlexiTagConfig.autosubmit = false;
FlexiTagConfig.minoredit = true; 
 
FlexiTagConfig.tabs = new Array();
 
FlexiTagConfig.tabs.push(
{ name:'Tags',
namespace:['Main'],
tagset:[['external-links|%date','See [[WP:EL]]'],
['ActiveDiscuss','ActiveDiscuss'],
['Advert','Advert'],
['cleanup','Adding Cleanup Tag'],
['Contradict','Section or article is contradictory'],
['Copyedit','Copyedit'],
['Disputeabout|%prompt(Point of dispute.)'],
['Merge|%prompt(Merge with)'],
['Mergeto|%prompt(Merged into)'],
['Notenglish|%prompt(language is?)'],
['Underconstruction','Underconstruction'],
['Original research','Original research'],
['POV','POV tag added'],
['POV-section','POV section tag added'],
['trivia','Adding Trivia Section'],
['Uncat','Uncat'],
['Unreferenced','Section is not referenced'],
['Wikify','Wikify needed']]
}
);
 
FlexiTagConfig.tabs.push(
{ name:'uw',
namespace:['User_talk'],
tagset:[['subst:nn-warn|%twinkarticle','Creation Warning'],
['subst:spam-warn|%twinkarticle','Creation Warning'],
['subst:Warning|%prompt(Warning is?)','Warning'],
['subst:test1article|%twinkAarticle','Creation Warning'],
['subst:Gblock-i|%prompt(reason for indef block)','Blocked'],
['subst:GBlock|%prompt(reason for temp block)|*DURATION*','Blocked']]
});
 
FlexiTagConfig.tabs.push(
{ name:'banned',
namespace:['User'],
tagset:[['banned user','This user is banned'],
['sockpuppet|%prompt(username)|confirmed','Sockpuppet'],
['Indefblockeduser','This user is blocked indef.']]
}
);
//</nowiki>
//</pre>