User:JimTittsler/vector.js

importScript('User:JimTittsler/googlesearch.js');

// reader mode for narrow screens // should follow googlesearch.js if used // window.weReader = true; // force to always use reader mode, regardless of width importScript('User:JimTittsler/reader.js');

$(function {  $('#n-recentchanges').after('New pages');  $('#pt-mytalk')    .after('My blog')    .after('My projects')    .after('' + document.getElementById('content').offsetHeight + 'px');  // change the font and size used for edit box  $('#wpTextbox1').css('font-family', 'Courier New').css('font-size', '14px');  // gardening tool  if (wgPageName === 'Special:NewPages') {    $.getScript('/skins/common/we/spam.js');  }  if (wgAction === 'history') {    $.getScript('/skins/common/we/deleterevs.js');  } });

/* http://en.wikipedia.org/wiki/Wikipedia:WikiProject_User_scripts/Scripts/External_editor */ addOnloadHook(function {   var editTab = document.getElementById("ca-edit");    if (!editTab) return;    var editURL = editTab.getElementsByTagName("a")[0].href;    addPortletLink("p-cactions", editURL + "&externaledit=true", "EE", "ca-exted", "External editor", ""); });

/* hide the watch checkbox on LQT postings */ addOnloadHook(function {  var ef, labels;  if (document.getElementById("lqt_method")) {    ef = document.getElementById('editform'); /* narrow the search for labels */    if (ef) {      document.getElementById('wpMinoredit').style.display = 'none';      document.getElementById('wpWatchthis').style.display = 'none';      labels = ef.getElementsByTagName('label');      for (var i=0; i<labels.length; ++i) {        if ((labels[i].htmlFor === 'wpMinoredit') || (labels[i].htmlFor === 'wpWatchthis')) {          labels[i].style.display = 'none';        }      }    }  } });