User:Borislav/monobook.js

From Meta, a Wikimedia project coordination wiki

Jump to: navigation, search

Note: After saving, you may have to bypass your browser's cache to see the changes. Mozilla / Firefox / Safari: hold down Shift while clicking Reload, or press Ctrl-Shift-R (Cmd-Shift-R on Apple Mac); IE: hold Ctrl while clicking Refresh, or press Ctrl-F5; Konqueror: simply click the Reload button, or press F5; Opera users may need to completely clear their cache in Tools→Preferences.

/* Open a Wiktionary window on double click
document.ondblclick = wiktionary;
 
function wiktionary()
{
  if ( document.all && navigator.userAgent.indexOf('Opera') == -1 ) {
    var rng = document.selection.createRange();
    var q = new String(rng.text);
  } else { 
    var q = document.getSelection();
  }
 
  if (q.length > 0) { 
    var q = encodeURI(q);
    var w = window.open("http://bg.wiktionary.org/wiki/" + q, "w",  
               "width=700,height=600,menubar,menubar,resizable,scrollbars,status");
    w.focus();
  }
}
*/