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 39: Line 39:




function doSearch(word) {
$( function () { doSearch(word) {
if (!word) return;
if (!word) return;
word = word.replace(/[\r\n ]+/g, " ").trim();
word = word.replace(/[\r\n ]+/g, " ").trim();
Line 45: Line 45:
browser.tabs.create({
browser.tabs.create({
"url": "https://www.thefreedictionary.com/_/search.aspx?word=" + encodeURIComponent(word)
"url": "https://www.thefreedictionary.com/_/search.aspx?word=" + encodeURIComponent(word)
});
}());
}