seems i forgot to commit the last changes... :(
This commit is contained in:
parent
4ca756a5eb
commit
53b16f5e00
27 changed files with 294 additions and 31 deletions
16
chrome/content/overlay.js
Normal file
16
chrome/content/overlay.js
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
var leo_search = {
|
||||
onLoad: function() {
|
||||
this.initialized = true;
|
||||
this.strings = document.getElementById("leo_search-strings");
|
||||
},
|
||||
onSearchCommand: function(e, lang, sitelang) {
|
||||
var query = window._content.window.getSelection();
|
||||
if(query != null)
|
||||
{
|
||||
var myURL = "http://dict.leo.org/" + lang + "de?lang=" + sitelang + "&search=" + query;
|
||||
openNewTabWith(myURL, null, null, true);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
window.addEventListener("load", leo_search.onLoad, false);
|
||||
Loading…
Add table
Add a link
Reference in a new issue