User:JimTittsler/vector.js
From WikiEducator
Note: After saving, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Clear the cache in Tools → Preferences
importScript('User:JimTittsler/googlesearch.js'); //importScript('User:JimTittsler/AddThis.js'); // reader mode is now a gadget, and must be configured with userjs option $(function () { $('#n-recentchanges').find('a:first').attr('href', '/index.php?title=Special:RecentChanges&hidebots=0'); $('#n-recentchanges').after('<li><a href="/Special:NewPages?namespace=all" title="The list of newly created pages">New pages</a></li>'); var st = $('#pt-mytalk').attr('style'); st = st ? ' style="' + st + '"': ''; $('#pt-mytalk') .after('<li class="pt-wenotes"' + st + '><a href="/User:JimTittsler/WEnotes">WEnotes</a></li>') .after('<li class="pt-blog"' + st + '><a href="/User:'+wgUserName+'/Blog">Blog</a></li>') .after('<li class="pt-projects"' + st + '><a href="/User:'+wgUserName+'/Projects">Projects</a></li>') .after('<li class="pt-height"' + st + '>' + document.getElementById('content').offsetHeight + 'px</li>'); // gardening tool if ($.inArray(wgPageName, ['Special:NewPages', 'Special:RecentChanges']) > -1) { $.getScript('/extensions/WE/spam.js'); } if (wgAction === 'history') { $.getScript('/extensions/WE/deleterevs.js'); } $('#p-coll-create_a_book li a[href*="add_article"]').parent() .after('<li><a id="t-bookmaker" title="Add the current page and its subpages" rel="nofollow" href="#">Add page & subpages</a></li>'); $('#t-bookmaker').click(function() { $.getScript('/extensions/WE/bookmaker.js'); return false; }); });