User:EhsanQ/monobook.js

// User:Pyrospirit/scriptpackage.js /* This is a collection of JavaScript assembled by User:Pyrospirit. I haven't written any of this myself, but I use all of it and find it very useful. These scripts are designed for use in Firefox and will all work in Firefox. Most of the scripts won't work in Internet Explorer, and I have no idea what will happen with other browsers. Solution: get Firefox. I'm somewhat of a newbie with JavaScript, so please report any problems with these scripts to whomever wrote the script or ask at Village pump (technical). To decrease loading time, I've set many scripts only to run on certain types of pages. So, if a script isn't showing up, it might be because you'd almost never use it on the page you're on anyway. /*

Scripts in this area are enabled in all browsers
importScript('User:Lupin/recent2.js'); // User:Lupin/popups.js - navigation popups if(mw.config.get('wgAction')!='edit' && mw.config.get('wgAction')!='submit') importScript('User:Lupin/popups.js'); // User:Jsimlo/shortcuts.js - customized sidebar links importScript('User:Jsimlo/shortcuts.js'); function shortcutsInit { shortcutsAddLink ( 'Monobook.js', 'Special:Mypage/monobook.js' ); shortcutsAddLink ( 'Monobook.css', 'Special:Mypage/monobook.css' ); } // User watchlist from User:Tra/userwatchlist.js importScript('User:Tra/userwatchlist.js'); // Logs link in toolbox if (mw.config.get('wgCanonicalNamespace')!='User' && mw.config.get('wgCanonicalNamespace')!='User talk') importScript('Wikipedia:WikiProject User scripts/Scripts/Logs link'); // Reformats compare button in history as a link if (mw.config.get('wgAction')=='history') importScript('MediaWiki:WikiProject User scripts/Scripts/Compare link.js'); // Performs basic formatting changes from a tab while editing if (mw.config.get('wgAction')=='edit' || mw.config.get('wgAction')=='submit') importScript('Wikipedia:WikiProject User scripts/Scripts/Formatter'); // Quick previewing button in editing toolbar if (mw.config.get('wgAction')=='edit' || mw.config.get('wgAction')=='submit') importScript('User:Alex Smotrov/qpreview.js'); // Gives assessment data for an article if (mw.config.get('wgCanonicalNamespace')=='') 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 (mw.config.get('wgAction')=='edit' && document.URL.indexOf('&section=0') != -1) $(function{ document.getElementById('wpSummary').value = "/* Intro */ "; })

// Nice formatting for Special:Log if (mw.config.get('wgCanonicalSpecialPageName') && mw.config.get('wgCanonicalSpecialPageName')=='Log') importScript('User:Alex_Smotrov/logpage.js') /*

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       :       true, openAOLAnonTalkPage            :       false, summaryAd                      :       " (TW)", deletionSummaryAd              :       " (TW)", protectionSummaryAd            :       " (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:Cacycle/wikEd in-browser text editor if (mw.config.get('wgAction')=='edit' || mw.config.get('wgAction')=='submit' || mw.config.get('wgAction')=='diff') importScript('User:Cacycle/wikEd.js'); // WP:FRIENDLY script similar to Twinkle (tagging, welcoming) importScript('User:Ioeth/friendly.js'); FriendlyConfig = { summaryAd              :  " (Friendly)", watchWelcomes          :  false, markWelcomesAsMinor    :  false, watchTaggedPages       :  false, markTaggedPagesAsMinor :  true, insertHeadings         :  true, welcomeHeading         :  "== Welcome ==", insertUsername         :  true, insertSignature        :  true }; // User:Voice of All's helper JavaScript importScript('User:Voice of All/Addtabs/monobook.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'); }