User:Sir Arthur Williams/twinkle.js

importScript('User:Sir Arthur Williams/morebits.js'); importScript('User:AzaToth/twinklefluff.js'); importScript('User:Sir Arthur Williams/twinklewarn.js'); importScript('User:AzaToth/twinklearv.js'); importScript('User:AzaToth/twinklespeedy.js'); importScript('User:AzaToth/twinklediff.js'); importScript('User:AzaToth/twinkleprotect.js'); importScript('User:AzaToth/twinkleprod.js'); importScript('User:AzaToth/twinklexfd.js'); importScript('User:AzaToth/twinkleimage.js'); importScript('User:AzaToth/twinkleunlink.js'); importScript('User:AzaToth/twinkledelimages.js'); importScript('User:AzaToth/twinkledeprod.js'); importScript('User:AzaToth/twinklebatchdelete.js'); importScript('User:AzaToth/twinklebatchprotect.js'); importScript('User:AzaToth/twinkleimagetraverse.js'); importScript('User:AzaToth/twinklebatchundelete.js'); if( typeof( TwinkleConfig ) == 'undefined' ) TwinkleConfig = {}; TwinkleConfig.openTalkPageOnAutoRevert			=	true; TwinkleConfig.watchRevertedPages			=	[ ]; TwinkleConfig.watchSpeedyPages				=	[ ]; TwinkleConfig.watchWarnings				=	false; TwinkleConfig.showRollbackLinks				=	[ ]; function openTalkPageForWarningAfterRollback { if(document.URL.lastIndexOf("&action=rollback") > 0) { var startingIndex = document.URL.indexOf("from=") + 5; location.assign("/w/index.php?title=User_talk:" + document.URL.substr(startingIndex, document.URL.indexOf("&token=") - startingIndex) + "&action=edit&vanarticle=" + wgPageName.replace(/_/g, ' ')); } } $(openTalkPageForWarningAfterRollback);