User:JimTittsler/vector.js

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('New pages');  var st = $('#pt-mytalk').attr('style');  st = st ? ' style="' + st + '"': '';  $('#pt-mytalk')    .after('WEnotes')    .after('Blog')    .after('Projects')    .after('' + 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('<a id="t-bookmaker" title="Add the current page and its subpages" rel="nofollow" href="#">Add page &amp; subpages</a></li>'); $('#t-bookmaker').click(function {   $.getScript('/extensions/WE/bookmaker.js');    return false;  }); });