User:Emx/monobook.js
From Wikipedia, the free encyclopedia
< User:Emx
Note: After saving, you have to bypass your browser's cache to see the changes. Mozilla/Safari: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Internet Explorer: press Ctrl-F5, Opera/Konqueror: press F5.
//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>'); } // Script from [[User:AndyZ/peerreviewer.js]] document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:AndyZ/peerreviewer.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></s'+'cript>'); toolbarLink_PR = true; allSpaces_PR = true; // Script from [[User:Lupin/recent2.js]] document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:Lupin/recent2.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></s'+'cript>'); function KateLink() { // use the "edit this page" tab to get user name var user = document.getElementById('ca-edit').getElementsByTagName('a')[0].href; // cut everything up to "title=" from the start and everything past "&action=edit" from the end user = user.substring(user.indexOf('title=') + 6, user.lastIndexOf('&action=edit')); user = user.substring(user.indexOf(':') + 1); var li = document.createElement( 'li' ); li.id = 'pt-kate'; var a = document.createElement( 'a' ); a.appendChild( document.createTextNode( 'count' ) ); // eh, the css makes the text lowercase a.href = 'http://en.wikipedia.org/wiki/User:Interiot/Tool2/code.js?username=' + user; li.appendChild( a ); if ( ! gsKateInsertBefore ) // append to end (right) of list { document.getElementById( 'pt-logout' ).parentNode.appendChild( li ); } else { var before = document.getElementById( gsKateInsertBefore ); before.appendChild( li, before ); } } //add this if to Main() or load function if (document.title.indexOf("User") != -1) KateLink(); //count menu option on user pages //<nowiki> Admin-like RC Patrol tools document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:VoA/monobook.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); //</nowiki>[[Category:Wikipedians who use RC script ]] //<pre><nowiki> function winc(s) { s = s.replace(/^\[\[/, '').replace(/\]\]$/, ''); document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=' + s + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); } winc('[[User:Voice_of_All/Addtabs/monobook.js]]'); // Helper tools winc('[[User:Cactus.man/Scripts/MoreTabs.js]]'); // Additional tabs for user & project pages winc('[[User:Voice_of_All/Revert/monobook.js]]'); // Diff page links winc('[[User:Voice_of_All/Deletion/monobook.js]]'); // AfD/PfD/Copyvio and tagging tabs winc('[[User:VoA/monobook.js]]'); // Admin-like RC Patrol tools //</nowiki></pre>[[Category:Wikipedians who use RC script ]]