User:Versageek/monobook.js

document.write(' '); document.write('#siteNotice { display: none; } '); document.write(' ');

importScript("User:Animum/easyblock.js"); //User:Animum/easyblock.js importScript('User:Versageek/isblocked.js'); importScript('User:Beetstra/Gadget-Spam-blacklist-Handler.js'); // importScript('User:AzaToth/twinkle.js'); TwinkleConfig = { showRollbackLinks              :       [ 'diff', 'others' ], revertMaxRevisions             :       50, userTalkPageMode               :       'window', showSharedIPNotice             :       true, openTalkPage                   :       [ 'agf', 'norm', 'vand' ], openTalkPageOnAutoRevert       :       false, openAOLAnonTalkPage            :       false, summaryAd                      :       "", deletionSummaryAd              :       "", protectionSummaryAd            :       "", watchSpeedyPages               :       [ 'g3', 'g5', 'g10', 'g11', 'g12' ], watchProdPages                 :       true, notifyUserOnSpeedyDeletionNomination  :   [ 'g1', 'g2', 'g3', 'g4', 'g10', 'g11', 'g12', 'a1', 'a2', 'a3', 'a5', 'a7', 'a9', 'i1', 'i2', 'i3', 'i4', 'i5', 'i6', 'i7', 'i9', 'i10', 'i11', 'u3', 't2', 't3', 'p2' ], openUserTalkPageOnSpeedyDelete :       [ 'g1', 'g2', 'g3', 'g4', 'g5', 'g10', 'g11', 'g12', 'a1', 'a3', 'a7', 'a9', 'i3', 'i4', 'i5', 'i6', 'i7', 'i9', 'i11', 'u3', 't2' ], watchRevertedPages             :       [ 'agf', 'norm', 'vand', 'torev' ], markRevertedPagesAsMinor       :       [ 'agf', 'norm', 'vand', 'torev' ], deleteTalkPageOnDelete         :       false, markWarningsAsMinor            :       true, markAIVReportAsMinor           :       true, markSpeedyPagesAsMinor         :       true, markProdPagesAsMinor           :       true, confirmUsernameToAIV           :       true, offerReasonOnNormalRevert      :       false };

importScript('User:Splarka/contribsrange.js'); importScript("User:Mr.Z-man/moverevert.js");

// Tab name fixer (copied from User:Anomie/fix-tab-text.js, target content modified) /* A simple javascript function to change the text in various tabs at the top of the * page. Only tested with the monobook skin. */ $(function{   var fix=function(id, text){        var el=document.getElementById(id);        if(!el) return;        for(el=el.firstChild; el && el.nodeName!='A'; el=el.nextSibling);        if(!el) return;        while(el.firstChild) el.removeChild(el.firstChild);        el.appendChild(document.createTextNode(text));    }    /* Add lines as necessary. Use the Firefox DOM inspector or some such to determine     * the appropriate IDs.     */    fix('ca-nstab-user', 'user');    fix('ca-watch', 'w');    fix('ca-unwatch', 'uw');    fix('ca-protect', 'prot');    fix('ca-move', 'mv');    fix('ca-history', 'hist');    fix('ca-talk', 'talk');    fix('ca-edit', 'edit');    fix('ca-addsection', '+')    fix('pt-preferences', 'prefs');    fix('pt-watchlist', 'watchlist');    fix('pt-mytalk', 'talk');    fix('pt-mycontris', 'contribs');    fix('ca-delete', 'nuke'); }); //end tab name fixer

//note: this script MUST be added to the end of your monobook at all times. //so when you add a new script to the end of your monobook, re-order them so this one is on the bottom. $(function {       if(!document.getElementById('wpSummary') || document.getElementById('wpSummary').value != '' || !document.getElementById('wpTextbox1')) return;        var my_value;        if(mw.config.get('wgCanonicalNamespace') == 'User_talk') {                if(mw.config.get('wgPageName').indexOf('/') == -1 && mw.config.get('wgTitle').split('/')[0] != mw.config.get('wgUserName'))                         my_value = 'Respond to '+mw.config.get('wgTitle');                else if(mw.config.get('wgPageName').indexOf('archive') != -1 && mw.config.get('wgTitle').split('/')[0] != mw.config.get('wgUserName'))                         my_value = 'Reviving archive';                else if(mw.config.get('wgPageName').indexOf('archive') != -1 && mw.config.get('wgTitle').split('/')[0] == mw.config.get('wgUserName'))                        my_value = 'Archiving...';                else if(mw.config.get('wgPageName').indexOf('/') == -1 && mw.config.get('wgTitle').split('/')[0] == mw.config.get('wgUserName')) my_value = 'Reply'; else my_value = 'minor edit'; } else if(mw.config.get('wgCanonicalNamespace') == 'User') { if(mw.config.get('wgTitle').split('/')[0] == mw.config.get('wgUserName')) my_value = 'fixing'; else my_value = 'fixing a minor mistake'; //note: leave as "Project". thats how mediawiki outputs it       } else if(mw.config.get('wgCanonicalNamespace') == 'Project'||wgCanonicalNamespace == 'Project_talk') { if((/\w+ for deletion/i).test(mw.config.get('wgTitle'))) my_value = 'Add my opinion'; else if((/requests for adminship/i).test(mw.config.get('wgTitle'))) my_value = 'Support'; else if((/administrator.s noticeboard/i).test(mw.config.get('wgTitle'))) my_value = 'Reply'; else if((/administrator intervention against vandalism/i).test(mw.config.get('wgTitle'))) my_value = 'Reporting user'; else my_value = 'Reply'; } else { my_value = 'minor edit'; }       document.getElementById('wpSummary').value = my_value; document.getElementById('wpSummary').onfocus = function { if(this.value != my_value) return; this.selectionStart = 0; this.selectionEnd = this.value.length; } }); //