Jump to content

User:AlysTarr/monobook.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
importScript('User:AzaToth/morebits.js');
importScript('Wikipedia:WikiProject User scripts/Scripts/addLink');
importScript('Wikipedia:WikiProject User scripts/Scripts/Add LI menu');

importScript('User:AzaToth/twinklefluff.js');
importScript('User:AzaToth/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');
TwinkleConfig = {
        revertMaxRevisions              :       50,
        userTalkPageMode                :       'tab',
        showSharedIPNotice              :       true,
        openTalkPage                    :       [ 'agf', 'norm', 'vand' ],
        openTalkPageOnAutoRevert        :       false,
        openAOLAnonTalkPage             :       false,
        summaryAd                       :       " using [[WP:TWINKLE|TW]]",
        deletionSummaryAd               :       " using [[WP:TWINKLE|TW]]",
        protectionSummaryAd             :       " using [[WP:TWINKLE|TW]]",
        watchSpeedyPages                :       [ 'g3', 'g5', 'g10', 'g11', 'g12' ],
        openUserTalkPageOnSpeedyDelete  :       [ ],
        watchRevertedPages              :       [ 'agf', 'norm', 'vand', 'torev' ],
        markRevertedPagesAsMinor        :       [ 'agf', 'norm', 'vand', 'torev' ],
        deleteTalkPageOnDelete          :       true,
        markWarningsAsMinor             :       true,
        markAIVReportAsMinor            :       true,
        markSpeedyPagesAsMinor          :       true,
        confirmUsernameToAIV            :       true
};

importScript('User:AzaToth/salt.js');

importScript('User:AzaToth/VoA.js');
importScript('User:AzaToth/liveclock.js');
//importScript('User:Interiot/Tool2/code.js');
//importScript('User:GeorgeMoney/UserScripts/RemExternalLinks');

// [[User:Outriggr/metadatatest.js]]      
//importScript('User:Outriggr/metadatatest.js'); 
//defaultProject = "WPBiography";

//importScript('User:Voice_of_All/Deletion/monobook.js');
//importScript('User:Lupin/recent2.js');

// Lousy hack ↓
function getParamValue(paramName, h) {
	if (typeof h == 'undefined' ) { h = document.location.href; }
	var cmdRe=RegExp('[&?]'+paramName+'=([^&]*)');
	var m=cmdRe.exec(h);
	if (m) {
		try {
			return decodeURI(m[1]);
		} catch (someError) {}
	}
	return null;
}
$(function () {
var summary=getParamValue('autosummary');

if (document.editform && summary) { document.editform.wpSummary.value=summary; }
});