User:J.delanoy/monobook.js

// SCRIPT:    Quick preview importScript('User:CBM/quickpreview.js')

// SCRIPT:    Animum's easyblock script importScript('User:Animum/easyblock.js'); //User:Animum/easyblock.js

// SCRIPT:    Twinkle (modified) importScript('User:AzaToth/morebits.js'); importScript('User:AzaToth/twinklefluff.js'); importScript('User:AzaToth/twinklediff.js'); importScript('User:AzaToth/twinklespeedy.js'); importScript('User:AzaToth/twinkleprod.js');; importScript('User:AzaToth/twinkleprotect.js'); importScript('User:AzaToth/twinklewarn.js'); importScript('User:AzaToth/twinklexfd.js'); //importScript('User:AzaToth/twinklebatchdelete.js'); //importScript('User:AzaToth/twinklebatchprotect.js'); TwinkleConfig = { defaultWarningGroup            :       8, revertMaxRevisions             :       50, userTalkPageMode               :       'tab', showSharedIPNotice             :       false, openTalkPage                   :       [ 'agf', 'norm', 'vand' ], openTalkPageOnAutoRevert       :       false, summaryAd                      :       " (TW)", deletionSummaryAd              :       " (TW)", protectionSummaryAd            :       " (TW)", watchSpeedyPages               :       [], watchProdPages                 :       false, openUserTalkPageOnSpeedyDelete :       [], markRevertedPagesAsMinor       :       [ 'agf', 'norm', 'vand', 'torev' ], deleteTalkPageOnDelete         :       false, watchWarnings                  :       true, watchRevertedPages             :       [], markAIVReportAsMinor           :       true, markSpeedyPagesAsMinor         :       true, offerReasonOnNormalRevert      :       true, orphanBacklinksOnSpeedyDelete  :       {orphan:true, exclude:['g6']} };

// SCRIPT:    NewPagePatrol

// The code for this was originally copied from User:TheJosh/Scripts/NewPagePatrol.js // User:Thingg tweaked it a little. // I did literally nothing at all. // I moved it to a subpage because it is SO LONG and I hate scrolling past it every time I look at this page

importScript('User:J.delanoy/newpage.js');

// Links for my logs, my dashboard, and the Abuse Filter in personal toolbar (at top, with preferences, watchlist, contribs, etc.) // Logs $(function {     url = "http://en.wikipedia.org/w/index.php?title=Special:Log&user=J.delanoy";    mw.util.addPortletLink("p-personal", url, "logs", "pt-logs"); });

// Dashboard $(function {     url = "http://en.wikipedia.org/wiki/User:J.delanoy/dashboard";    mw.util.addPortletLink("p-personal", url, "dashboard", "pt-dashboard"); });

// Checkuser $(function {     url = "http://en.wikipedia.org/wiki/Special:CheckUser";    mw.util.addPortletLink("p-personal", url, "CheckUser", "pt-checkuser"); });

// Abuse Filter $(function {     url = "http://en.wikipedia.org/wiki/Special:AbuseFilter";    mw.util.addPortletLink("p-personal", url, "Abuse Filter", "pt-abusefilter"); });

//SCRIPT: Clock (added here because if I use the gadget in Special:Preferences, it shows the link for "logs" (above ^^) on the right of the clock)

//from MediaWiki:Gadget-UTCLiveClock.js //clock shows up in incorrect position due to above code function liveClock {	liveClock.node = mw.util.addPortletLink( 'p-personal', mw.config.get('wgServer') + mw.config.get('wgScriptPath') + '/index.php?title=' + encodeURIComponent(mw.config.get('wgPageName')) + '&action=purge', '', 'utcdate' ); liveClock.node.style.fontSize = 'larger'; liveClock.node.style.fontWeight = 'bolder'; showTime; } $(liveClock) function showTime {	var dateNode = liveClock.node; if( !dateNode ) { return; }   var now = new Date; var hh = now.getUTCHours; var mm = now.getUTCMinutes; var ss = now.getUTCSeconds; var time = ( hh < 10 ? '0' + hh : hh ) + ':' + ( mm < 10 ? '0' + mm : mm ) + ':' + ( ss < 10 ? '0' + ss : ss ); dateNode.firstChild.replaceChild( document.createTextNode( time ), dateNode.firstChild.firstChild ); window.setTimeout(showTime, 1000); }

// SCRIPT:    Deleted edits link in toolbox $(function {    if ( wgCanonicalNamespace == "Special" )        return;  // don't display link for special pages

url = wgServer + "/w/index.php?title=Special:Undelete/" + encodeURIComponent(mw.config.get('wgPageName'));

mw.util.addPortletLink("p-tb", url, "Deleted edits", "pt-undelete"); });

// SCRIPT:    Page logs link in toolbox // from Wikipedia:WikiProject User scripts/Scripts/Logs link $(function {    if ( wgCanonicalNamespace == "Special" )        return;  // don't display link for special pages

url = wgServer + "/w/index.php?title=Special:Log&page=" + encodeURIComponent(mw.config.get('wgPageName'));

mw.util.addPortletLink("p-tb", url, "Page logs", "pt-logs"); });

// SCRIPT:    AFD closure script importScript('User:Mr.Z-man/closeAFD.js');

// SCRIPT:    Page-move vandalism reverter importScript('User:Mr.Z-man/moverevert2.js');

// SCRIPT:    Mass blocker mw.loader.load('https://meta.wikimedia.org/w/index.php?title=MediaWiki:Gadget-massblock.js&action=raw&ctype=text/javascript');

// SCRIPT:    Friendly importScript('User:AzaToth/morebits.js'); importScript('User:Ioeth/friendlyshared.js'); importScript('User:Ioeth/friendlytag.js');