User:Endothermic/monobook.js

importScript('User:Ioeth/friendly.js'); importScript('User:AzaToth/twinkle.js'); importScript('User:Lupin/popups.js'); if( typeof( TwinkleConfig ) == 'undefined' ) TwinkleConfig = {}; // DO NOT REMOVE THIS LINE - ALL TWINKLE SETTINGS AFTER THIS TwinkleConfig.markAIVReportAsMinor			=	true; TwinkleConfig.markSockReportAsMinor			=	true; TwinkleConfig.markUAAReportAsMinor			=	true; TwinkleConfig.markRevertedPagesAsMinor			=	[ 'vand' ]; TwinkleConfig.markSpeedyPagesAsMinor			=	false; TwinkleConfig.markSpeedyPagesAsPatrolled		=	true; TwinkleConfig.notifyUserOnDeli				=	true; TwinkleConfig.notifyUserOnSpeedyDeletionNomination	=	[ 'g1',	'g2', 'g3', 'g4', 'g10', 'g11',	'g12', 'a1', 'a2', 'a3', 'a5', 'a7', 'a9', 'f1', 'f2', 'f3', 'f4', 'f5', 'f6', 'f7', 'f9', 'f10', 'f11', 'u3', 't2', 't3', 'p2'	]; TwinkleConfig.offerReasonOnNormalRevert		=	true; TwinkleConfig.openTalkPage				=	[ 'agf', 'norm', 'vand'	]; TwinkleConfig.openTalkPageOnAutoRevert			=	false; TwinkleConfig.showRollbackLinks			=	[ 'diff', 'others' ]; TwinkleConfig.showSharedIPNotice			=	true; TwinkleConfig.summaryAd				=	' using	TW'; TwinkleConfig.userTalkPageMode				=	'window'; TwinkleConfig.watchProdPages				=	true; TwinkleConfig.watchRevertedPages			=	[ ]; TwinkleConfig.watchSpeedyPages				=	[ 'g3',	'g5', 'g10', 'g11', 'g12', 't1'	]; TwinkleConfig.watchWarnings				=	false;

//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"); } } addOnloadHook(rollbackEverythingButton); function rollbackEverything { for (var i in document.links) { if (document.links[i].href.indexOf('action=rollback') != -1) { window.open(document.links[i].href); }   } }