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();
}
}
*/
Text is available under the CC BY-SA 4.0 license; additional terms may apply.
Images, videos and audio are available under their respective licenses.