Jump to content

User:Dividing/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.
/*
== Scripts in this area are enabled in all browsers ==
*/
 
// [[User:Jsimlo/shortcuts.js]] - customized sidebar links
// I've included a few example links, you'll probably want to customize them.
importScript('User:Jsimlo/shortcuts.js');
 
function shortcutsInit ()
{
 
shortcutsAddLink ( 'monobook.js', 'User:Dividing/monobook.js' );
shortcutsAddLink ( 'User scripts', 'Wikipedia:WikiProject_User_scripts/Scripts' );
shortcutsAddLink ( 'Unusual articles', 'Unusual articles' );
shortcutsAddLink ( 'Backlog', 'CAT:RDBACK' );
shortcutsAddLink ( 'S:RC', 'Special:Recentchanges' );
shortcutsAddLink ( 'WP:AIV', 'WP:AIV' );
shortcutsAddLink ( 'Bot Requests', 'WP:BOTREQ' );
 
}
 
// Purge tab
importScript('Wikipedia:WikiProject User scripts/Scripts/Add purge to tabs');
 
// User watchlist from [[User:Tra/userwatchlist.js]]
importScript('User:Tra/userwatchlist.js');
 
// Logs link in toolbox
importScript('Wikipedia:WikiProject User scripts/Scripts/Logs link');
 
// Performs basic formatting changes from a tab while editing
importScript('Wikipedia:WikiProject User scripts/Scripts/Formatter');
 
// Quick previewing button in editing toolbar
importScript('User:Alex Smotrov/qpreview.js');
 
// Gives assessment data for an article
importScript('User:Outriggr/metadata.js');
 
// Adds extra edit/hist tabs for both discussion page and article page
importScript('Wikipedia:WikiProject User scripts/Scripts/Six tabs');
 
// Edit top link by [[User:Alex Smotrov]]
importScript('User:Alex_Smotrov/edittop.js');
if (wgAction=='edit' && document.URL.indexOf('&section=0') != -1)
$(function(){
document.getElementById('wpSummary').value = "/* Intro */ ";
})
 
// Tab for tagging articles
importScript('Wikipedia:WikiProject User scripts/Scripts/Add LI menu');
importStylesheet('Wikipedia:WikiProject User scripts/Scripts/Add LI menu/css');
importScript('User:LilDice/flexitags.js');
// You may wish to configure this; see [[User:LilDice/Flexitags]] for how.
 
/*
 
== Scripts in this area are disabled in Internet Explorer due to compatibility issues ==
*/
var detect = navigator.userAgent.toLowerCase();
var IE;
var place = detect.indexOf('msie') + 1;
if (place) IE=true;
if (!IE) {
 
// Twinkle script (reverting, warning, reporting, csd, xfd, prod, rpp)
importScript('User:AzaToth/twinkle.js');
 
TwinkleConfig = {
 
revertMaxRevisions : 50,
userTalkPageMode : 'tab',
showSharedIPNotice : true,
openTalkPage : [ 'agf', 'norm', 'vand' ],
openTalkPageOnAutoRevert : false,
openAOLAnonTalkPage : false,
summaryAd : " ([[WP:TWINKLE|TW]])",
deletionSummaryAd : " ([[WP:TWINKLE|TW]])",
protectionSummaryAd : " ([[WP:TWINKLE|TW]])",
watchSpeedyPages : [ ],
watchProdPages : true,
openUserTalkPageOnSpeedyDelete : [ 'g1', 'g2', 'g10', 'g11', 'g12', 'a1', 'a7', 'i3', 'i4', 'i5', 'i6', 'i7', 'u3', 't1' ],
watchRevertedPages : [ ],
markRevertedPagesAsMinor : [ 'agf', 'norm', 'vand', 'torev' ],
deleteTalkPageOnDelete : false,
watchWarnings : false,
markAIVReportAsMinor : false,
markSpeedyPagesAsMinor : false,
offerReasonOnNormalRevert : true
};
 
// [[User:Voice of All]]'s helper JavaScript
importScript('User:Voice of All/Addtabs/monobook.js');
 
// UTC time clock with double-click purge function
importScript('User:Voice of All/UTCclock.js');
 
// Some history-related script from VoA
importScript('User:Voice of All/History/monobook.js');
 
// [[User:Lupin/recent2.js]] anti-vandalism script
importScript('User:Lupin/recent2.js');
 
}