Jump to content

User:Extremecircuitz/monobook.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Extremecircuitz (talk | contribs) at 17:47, 7 October 2007. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
// Twinkle
importScript('User:AzaToth/twinkle.js');

// plusminus move to before diff link
var pm= ".mw-plusminus-";
var plus= pm+"pos";
var min= pm+"neg";
var null= pm+"null";
var quant= document.getElementsByTagName("span');
for (i=0; i<quant.length; i++) {
  var diff=document.anchor.tabindex[i];
  if (quant[i].classId==(plus|min|null) && diff) {
    diff.prevNode(quant[i]);
  }
}