Skip to content

Instantly share code, notes, and snippets.

@pvojnisek
Created January 9, 2009 22:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pvojnisek/45302 to your computer and use it in GitHub Desktop.
Save pvojnisek/45302 to your computer and use it in GitHub Desktop.
CmdUtils.makeBookmarkletCommand({
name: "magyar - angol fordítás",
url: "javascript:D=document;S=D.selection;Q='';l=top.length;if(l<=1){Q=(S?S.createRange().text:D.getSelection());}else{for(i=0;i<l;i++){DF=frames[i].document;SF=DF.selection;Q+=(SF?SF.createRange().text:DF.getSelection());}}if(!Q){Q=prompt('Angolr%C3%B3l%20magyarra:%20','')};if(Q){W=open('http://szotar.sztaki.hu/dict_search.php?L=ENG:HUN:EngHunDict&M=2&E=1&T=1&C=1&A=1&P=2&O=HUN&in_bookmarklet=1&W='+escape(Q),'Fordito','width=500,height=350,toolbar=no,scrollbars=yes');void(W.focus());}else{void(null)}"
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment