Initial commit
This commit is contained in:
commit
7bc2d97112
9 changed files with 185 additions and 0 deletions
25
chrome/leo_search/content/leo_search/leo_searchOverlay.js
Normal file
25
chrome/leo_search/content/leo_search/leo_searchOverlay.js
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
function leo_search()
|
||||
{
|
||||
var query = window._content.document.getSelection();
|
||||
if(query != null)
|
||||
{
|
||||
var myURL = "http://dict.leo.org/?lp=ende&lang=de&searchLoc=0&cmpType=relaxed&relink=on§Hdr=on&spellToler=std&search=" + query;
|
||||
openNewTabWith(myURL, null, null, true);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
function hide_show_meuitem()
|
||||
{
|
||||
var query = window._content.document.getSelection();
|
||||
if(query != null)
|
||||
{
|
||||
document.getElementById("leo_search").hidden = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById("leo_search").hidden = true;
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue