User:Wtmitchell/monobook.js
From Wikipedia, the free encyclopedia
If a message on your talk page led you here, please be wary of who left it. The code below could contain malicious content capable of compromising your account; if your account appears to be compromised, it will be blocked. If you are unsure whether the code is safe, you can ask at the appropriate village pump.
Note: After saving, you have to bypass your browser's cache to see the changes. In Internet Explorer and Firefox, hold down the Ctrl key and click the Refresh or Reload button. Opera users have to clear their caches through Tools→Preferences, see the instructions for Opera. Konqueror and Safari users can just click the Reload button.
//Interiot's javascript edit counter if (document.title.indexOf('User:Interiot/Tool2/code.js') != -1) { document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:Interiot/Tool2/code.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); } importScript('Wikipedia:WikiProject User scripts/Scripts/Edit_Top'); importScript('Wikipedia:WikiProject User scripts/Scripts/Add_edit_section_0'); /* importScript('Wikipedia:WikiProject User scripts/Scripts/Unwatch'); */ /* importScript('Wikipedia:WikiProject User scripts/Scripts/AJAX Unwatch'); */ /* from User talk:Alex Smotrov/wlunwatch.js */ if (wgCanonicalSpecialPageName && wgCanonicalSpecialPageName=='Watchlist' && wgAction=='view') addOnloadHook(function () { var frm = document.getElementsByTagName('form')[0]; frm.parentNode.insertBefore(document.createTextNode(' | '), frm); var lnk = document.createElement('a'); lnk.appendChild(document.createTextNode('Unwatch…')); lnk.href = 'javascript:importScript("User:Alex_Smotrov/wlunwatch.js")'; frm.parentNode.insertBefore(lnk, frm); }) // [[User:Lupin/popups.js]] // importScript('User:Lupin/popups.js'); // Script by [[User:DatRoot]] to footnote text to the tooltips on footnote links addOnloadHook(function refTooltips() { var linkElem, linkHref, noteElem; // Get list of footnote links (they all have class: 'reference') var refElems = getElementsByClassName(document.body, "SUP", "reference"); for(var i = 0; i < refElems.length; i++) { if(linkElem = refElems[i].getElementsByTagName("a")[0]) { linkHref = linkElem.href; // Get footnote id from link href and add text content to link tooltip if(noteElem = document.getElementById(linkHref.substr(linkHref.indexOf("#") + 1))) linkElem.title = noteElem.innerText || noteElem.textContent || ""; } } }); //Twinkle -- see http://en.wikipedia.org/wiki/Wikipedia:WikiProject_User_scripts/Scripts/Twinkle/doc importScript('User:AzaToth/twinkle.js'); TwinkleConfig = { revertMaxRevisions : 50, userTalkPageMode : 'window', showSharedIPNotice : true, openTalkPage : [ 'agf', 'norm', 'vand' ], openTalkPageOnAutoRevert : false, summaryAd : " using [[WP:TWINKLE|TW]]", deletionSummaryAd : " using [[WP:TWINKLE|TW]]", protectionSummaryAd : " using [[WP:TWINKLE|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']} }; // see [[User:Mr.Z-man/refToolbar]] importScript('User:Mr.Z-man/refToolbar.js'); //temporarily commented out importScript('User:Wtmitchell/refToolbar.js'); //WikEd editor /* COMMENTED OUT -- really buggy as on July 2007 // install [[User:Cacycle/wikEd]] in-browser text editor document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js' + '&action=raw&ctype=text/javascript"></' + 'script>'); */

