User:Hasteur/monobook.js

importScript('User:AzaToth/twinkle.js'); if( typeof( TwinkleConfig ) == 'undefined' ) TwinkleConfig = {}; // DO NOT REMOVE THIS LINE - ALL TWINKLE SETTINGS AFTER THIS TwinkleConfig.openTalkPage = [ 'norm', 'vand' ]; TwinkleConfig.userTalkPageMode = 'tab'; TwinkleConfig.watchSpeedyPages = [ 'g1', 'g2', 'g3', 'g4', 'g5', 'g6', 'g7', 'g8', 'g10', 'g11', 'g12', 'a1', 'a2', 'a3', 'a5', 'a7', 'a9', 'a10', 'r2', 'r3', 'f1', 'f2', 'f3', 'f4', 'f5', 'f5', 'f6', 'f7', 'f8', 'f9', 'f10', 'f11', ]; TwinkleConfig.xfdWatchDiscussion = "yes"; TwinkleConfig.xfdWatchPage = "yes"; importScript('User:Ioeth/friendly.js'); if( typeof( FriendlyConfig) == 'undefined' ) FriendlyConfig= {}; // DO NOT REMOVE THIS LINE - ALL FRIENDLY SETTINGS AFTER THIS FriendlyConfig.markTaggedPagesAsPatrolled = false;

/***** Begin deletion-sorting code *************************************** Substituted from Template:Deltab From code by raylu, updates made by User:Dinoguy1000 This script adds a "X Deletion" tab to the top of XfD pages when in edit mode.

function addDelsortMessage { document.editform.wpTextbox1.value = document.editform.wpTextbox1.value.rtrim; document.editform.wpTextbox1.value += '\{\{subst:deletion sorting|X| -- \~\~\~\~\}\}\n'; if( document.editform.wpSummary.value.match(/[^\*\/\s][^\/\s]?\s*$/) ){ document.editform.wpSummary.value += '; '; } document.editform.wpSummary.value += 'tagged as a X-related deletion (script-assisted)'; document.editform.wpMinoredit.checked = true; document.editform.submit; }

$(function {   if( wgNamespaceNumber == 4 && wgTitle.match( / for d(elet|iscuss)ion/ ) && ( wgAction == "edit" || wgAction == "submit" ) ) {        mw.util.addPortletLink( 'p-cactions', 'javascript:addDelsortMessage', 'X deletion', 'ca-Xdeletion', 'X Deletion', '' );    } });

/***** End deletion-sorting code *****************************************/