User:CliffC/monobook.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
The accompanying .css page for this skin is at User:CliffC/monobook.css. |
// if all else fails, read the instructions. this version works.
var book_source_URL = "http://www.amazon.com/gp/s?search-alias=stripbooks&field-isbn=MAGICNUMBER";
importScript('User:Lunchboxhero/externISBN.js');
if( typeof( TwinkleConfig ) == 'undefined' ) TwinkleConfig = {}; // DO NOT REMOVE THIS LINE - ALL TWINKLE SETTINGS AFTER THIS
TwinkleConfig.batchdeleteChunks = 50;
TwinkleConfig.batchDeleteMinCutOff = 5;
TwinkleConfig.batchMax = 5000;
TwinkleConfig.batchProtectChunks = 50;
TwinkleConfig.batchProtectMinCutOff = 5;
TwinkleConfig.batchundeleteChunks = 50;
TwinkleConfig.batchUndeleteMinCutOff = 5;
TwinkleConfig.blankTalkpageOnIndefBlock = false;
TwinkleConfig.defaultWarningGroup = 1;
TwinkleConfig.deleteTalkPageOnDelete = false;
TwinkleConfig.deletionSummaryAd = ' using [[WP:TW|TW]]';
TwinkleConfig.deliChunks = 500;
TwinkleConfig.deliMax = 5000;
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.openUserTalkPageOnSpeedyDelete = [ 'g1', 'g2', 'g3', 'g4', 'g5', 'g10', 'g11', 'g12', 'a1', 'a3', 'a7', 'a9', 'f3', 'f4', 'f5', 'f6', 'f7', 'f9', 'f11', 'u3', 't2' ];
TwinkleConfig.orphanBacklinksOnSpeedyDelete = {exclude:['g6'], orphan:true};
TwinkleConfig.proddeleteChunks = 50;
TwinkleConfig.protectionSummaryAd = ' using [[WP:TW|TW]]';
TwinkleConfig.revertMaxRevisions = 50;
TwinkleConfig.showRollbackLinks = [ 'diff', 'others' ];
TwinkleConfig.showSharedIPNotice = true;
TwinkleConfig.summaryAd = ' using [[WP:TW|TW]]';
TwinkleConfig.unlinkNamespaces = [ 0, 100 ];
TwinkleConfig.userTalkPageMode = 'window';
TwinkleConfig.watchProdPages = true;
TwinkleConfig.watchRevertedPages = [ 'agf', 'norm', 'vand', 'torev' ];
TwinkleConfig.watchSpeedyPages = [ 'g3', 'g5', 'g10', 'g11', 'g12', 't1' ];
TwinkleConfig.watchWarnings = true;
TwinkleConfig.welcomeUserOnSpeedyDeletionNotification = TwinkleConfig.notifyUserOnSpeedyDeletionNomination;
importScript('User:AzaToth/morebits.js');
importScript('User:AzaToth/twinklewarn.js');
importScript('User:AzaToth/twinklespeedy.js');
importScript('User:AzaToth/twinklediff.js');
//---------------------------------------------------------------------------
// --MASS REVERSION--
// [[User:John254/mass rollback.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);
}
}
}
//---------------------------------------------------------------------------