Anonymous

Ask at the forum if you have an Ancient or Modern Greek query!

MediaWiki:Common.js: Difference between revisions

From LSJ
m
no edit summary
mNo edit summary
mNo edit summary
Line 35: Line 35:
document.addEventListener("dblclick", function () {
document.addEventListener("dblclick", function () {
     var w = String(window.getSelection());
     var w = String(window.getSelection());
     if (w){
    var urlParams = new URLSearchParams(window.location.search);
     if (w && !urlParams.has("veaction")){
       location.href="https://lsj.gr/index.php?search=" + encodeURIComponent(w);
       location.href="https://lsj.gr/index.php?search=" + encodeURIComponent(w);
     }
     }
});
});