User:J. Finkelstein/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.
importScript('User:AzaToth/morebits.js'); importScript('User:AzaToth/twinklefluff.js'); importScript('Wikipedia:WikiProject User scripts/Scripts/Add LI menu'); importStylesheet('Wikipedia:WikiProject User scripts/Scripts/Add LI menu/css'); importScript('User:AzaToth/twinklewarn.js'); importScript('User:AzaToth/twinklearv.js'); importScript('User:AzaToth/twinklespeedy.js'); importScript('User:AzaToth/twinklediff.js'); importScript('User:AzaToth/twinkleprotect.js'); // install [[User:Cacycle/wikEdDiff]] enhanced diff view using ajax document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEdDiff.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); //*************Navigation Pop-ups start here // [[User:Lupin/popups.js]] document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); popupFixDabs=true; popupRedlinkRemoval=true; // initialize the array - only do this once extraPopupFilters=[]; // define the function function popupFilterHtmlTable (wikiText) { if (/<table/i.test(wikiText)) return 'HTML TABLE'; else return ''; }; function popupFilterNumberedLists (wikiText) { if (/1\./i.test(wikiText)) return 'NUMBERED LIST'; else return ''; }; // add the function to the array (you can repeat this for lots of functions) extraPopupFilters.push(popupFilterHtmlTable); extraPopupFilters.push(popupFilterNumberedLists); //*************Navigation Pop-ups end here //*************Interiot's Tool starts here //Interiot's javascript edit counter TOOL2 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>'); } // Add a "Interiot" link to your monobook "personal menu" list at the very // top of the page. // // Indicate where you would like "Interiot" to appear: // pt-userpage, pt-mytalk, pt-preferences, // pt-watchlist, pt-mycontris, pt-logout // gsInteriotInsertBefore = 'pt-mycontris'; // leave blank to append after "logout" function InteriotLink() { var user = document.getElementById('ca-edit').getElementsByTagName('a')[0].href; 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-interiot'; var a = document.createElement( 'a' ); a.appendChild( document.createTextNode( 'user stats' ) ); // eh, the css makes the text lowercase // KATE"S TOOL LINK // a.href = 'http://tools.wikimedia.de/~kate/cgi-bin/count_edits?dbname=enwiki&user=' + user; //INTERIOT'S TOOL // a.href = 'http://tools.wikimedia.de/~interiot/cgi-bin/count_edits?dbname=enwiki&user=' + user; //INTERIOT'S TOOL2 // a.href = 'http://en.wikipedia.org/wiki/User:Interiot/Tool2/code.js?username=' + user; //Interiot's Wannabe Kate tool a.href = 'http://tools.wikimedia.de/~interiot/cgi-bin/Tool1/wannabe_kate?site=en.wikipedia.org&username=' + user; li.appendChild( a ); if ( ! gsInteriotInsertBefore ) // append to end (right) of list { document.getElementById( 'pt-logout' ).parentNode.appendChild( li ); } else { var before = document.getElementById( gsInteriotInsertBefore ); before.appendChild( li, before ); } } if ( window.addEventListener ) window.addEventListener( 'load', InteriotLink, false ); else if ( window.attachEvent ) window.attachEvent ( 'onload', InteriotLink ); //Interiot's Tool ENDS HERE************************************** //*************Picture pop-ups start here // [[User:Zocky/PicturePopups.js]] - please include this line document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:Zocky/PicturePopups.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); //*************Picture pop-ups end here