User:Psychless/monobook.js

// install User:Cacycle/wikEd in-browser text editor document.write(''); // User:Outriggr/metadatatest.js importScript('User:Outriggr/metadatatest.js'); assessmentMarkAsMinor = false; assessmentDefaultProject = "WPBiography"; assessmentMyTemplateCode = ["{"+"{Project Iowa\n|class=\n|importance=\n|government=\n}}","{"+"{WPBiography\n|living=\n|class=\n|priority=\n|needs-infobox=\n|listas=\n|needs-photo=\n}}"]; importScript("User:Lupin/recent2.js"); importScript('User:Lupin/autoedit.js'); //User:Lupin/autoedit.js importScript('User:AzaToth/morebits.js'); importScript('User:AzaToth/twinklefluff.js'); importScript('User:AzaToth/twinklewarn.js'); importScript('User:AzaToth/twinklespeedy.js'); importScript('User:AzaToth/twinkleimage.js'); importScript('User:AzaToth/twinkleprod.js'); importScript('User:AzaToth/twinklexfd.js'); TwinkleConfig = { revertMaxRevisions             :       50, userTalkPageMode               :       'tab', showSharedIPNotice             :       false, openTalkPage                   :       [ 'vand' ], openTalkPageOnAutoRevert       :       false, openAOLAnonTalkPage            :       false, summaryAd                      :       " using TW", deletionSummaryAd              :       " using TW", protectionSummaryAd            :       " using TW", watchSpeedyPages               :       [ 'g3', 'g5', 'g10', 'g11', 'g12' ], watchProdPages                 :       true, openUserTalkPageOnSpeedyDelete :       [ 'g1', 'g2', 'g10', 'g11', 'g12', 'a1', 'a7', 'i3', 'i4', 'i5', 'i6', 'i7', 'u3', 't1' ], watchRevertedPages             :       [ 'agf', 'norm', 'vand', 'torev' ], markRevertedPagesAsMinor       :       [ 'agf', 'norm', 'vand', 'torev' ], deleteTalkPageOnDelete         :       false, watchWarnings                  :       true, markAIVReportAsMinor           :       true, markSpeedyPagesAsMinor         :       true, offerReasonOnNormalRevert      :       true, orphanBacklinksOnSpeedyDelete  :       {orphan:true, exclude:['g6']} }; // skip talk page on categories when assessing - time saver function catSwapButton { if(document.title.indexOf('Category:' == 0)) { mw.util.addPortletLink('p-cactions','javascript:catSwap;','De-Talkify','ca-catswap','change category links from talk pages to article pages'); } } $(catSwapButton);

function catSwap { var cat = document.getElementById('mw-pages'); cat.innerHTML = cat.innerHTML.replace(/Talk\:/g,'').replace(/[_\s]talk\:/g,':'); } //saving tab $(addsaveaction); function addsaveaction { if(document.title.indexOf('Editing ') == 0) mw.util.addPortletLink('p-cactions','javascript:document.getElementById("wpSave").click;','save','Save'); } //ISBN goes directly to WorldCat. Default is amazon (link: http://www.amazon.com/exec/obidos/ASIN/MAGICNUMBER/wikipedia08-20) function externISBN { var magicURL = "http://worldcat.org/isbn/MAGICNUMBER"; var magicRegex = /MAGICNUMBER/ig; if(wgPageName != "Special:Booksources" && wgPageName != "Wikipedia:Book_sources"){ for (var i = 0; i < document.links.length; i++) {              if( document.links[i].href.match(/isbn=(.*)/) ) { document.links[i].href=magicURL.replace(magicRegex, RegExp.$1); }   }  } } $(externISBN);