User:Enigmaman/monobook.js

//Mass rollback function //Written by John254 //Adapted from User:Mr.Z-man/rollbackSummary.js //Instructions: Selecting the "rollback all" tab when viewing a user's contributions history //will open all rollback links displayed there. (Use with caution) function rollbackEverythingButton { var hasRollback = getElementsByClassName(document, "span", "mw-rollback-link"); if (hasRollback[0] && (document.title.indexOf("User contributions") != -1) ) { mw.util.addPortletLink('p-cactions', 'javascript:rollbackEverything', "rollback all", "ca-rollbackeverything", "rollback all edits displayed here"); } } $(rollbackEverythingButton); function rollbackEverything { for (var i in document.links) { if (document.links[i].href.indexOf('action=rollback') != -1) { window.open(document.links[i].href); }   } }

importScript('User:AzaToth/twinkle.js'); TwinkleConfig = { revertMaxRevisions             :       50, userTalkPageMode               :       'tab', showSharedIPNotice             :       false, openTalkPage                   :       [ 'vand' ], openTalkPageOnAutoRevert       :       false, openAOLAnonTalkPage            :       true, summaryAd                      :       "", deletionSummaryAd              :       "", protectionSummaryAd            :       "", watchSpeedyPages               :       [ ], watchProdPages                 :       false, openUserTalkPageOnSpeedyDelete :       [ 'g1', 'g2', 'g10', 'g11', 'g12', 'a1', 'a7', 'i3', 'i4', 'i7', 'u3', 't1' ], watchRevertedPages             :       [ ], markRevertedPagesAsMinor       :       [ 'agf', 'norm', 'vand', 'torev' ], deleteTalkPageOnDelete         :       false, watchWarnings                  :       false, markAIVReportAsMinor           :       true, markSpeedyPagesAsMinor         :       true, markProdPagesAsMinor           :       true, confirmUsernameToAIV           :       true, toolboxButtons                 :       [ ] }; importScript('User:ais523/editcount.js'); importScript('User:TheDJ/qui.js'); importScript('User:Mr.Z-man/rollbackSummary.js'); importScript('User:Steel359/protection.js'); importScript('User:Animum/easyblock.js'); //User:Animum/easyblock.js importScript('User:Dr_pda/prosesize.js'); //User:Dr_pda/prosesize.js importScript('User:Dr pda/prosesize.js'); //User:Dr pda/prosesize.js /*** BEGIN WIKIBREAK ENFORCER ***/ $(function {       /*** Start editing here ***/        // When you want to end your break?        // no leading zeroes. (example: 7 - correct, 07 - incorrect)        var date = { year: 2010, month: 8, day: 16};        var time = { hours: 10, minutes: 10, seconds: 36 };        /*** Stop editing here ***/        var currentDate = new Date;        var enforcedBreakEnd = new Date( date.year,date.month-1,date.day,time.hours,time.minutes,time.seconds);       if (currentDate <= enforcedBreakEnd) {                alert("Enforced wikibreak until "+enforcedBreakEnd.toLocaleString + "\n(now is "+currentDate.toLocaleString+")\n\nBye!");               location = "http://"+location.host+"/w/index.php?title="                        + "Special:Userlogout&returnto=Main_Page";        } }); /*** END WIKIBREAK ENFORCER ***/