User:Leopard~enwiki/monobook.js

/* 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; } }