북마클릿에 대한 자세한 설명은 생략합니다. 북마크에 추가해 놓고 쓰면 되는데, 클량인들이라면 이미 아실거라 믿고요.
둘다 텍스트 번역, URL 번역 됩니다. 드래그 해서 문장을 선택했으면 선택한 문장만, 아무것도 선택하지 않았으면 웹페이지를 통채로 번역합니다.
구글 번역
javascript:var%20t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection&&document.selection.createRange&&document.selection.createRange().text));var%20e=(document.charset||document.characterSet);if(t!=''){var%20w=document.open('http://translate.google.co.kr/translate_t?text='+t+'&hl=ko&langpair=auto|ko&tbb=1&ie='+e,'','');}else{var%20w=document.open('http://translate.google.co.kr/translate?u='+escape(location.href)+'&hl=ko&langpair=auto|ko&tbb=1&ie='+e,'','');};
파파고 번역
javascript:var%20t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection&&document.selection.createRange&&document.selection.createRange().text));var%20e=(document.charset||document.characterSet);if(t!=''){var%20w=document.open('https://papago.naver.com/?sk=auto&tk=ko&hn=0&st='+t,'','');}else{var%20w=document.open('https://papago.naver.net/website?locale=en&source=auto&target=ko&url='+escape(location.href),'','');};
그후에 영어로된 사이트를 보시다가 번역일 필요할때 아까만들었던 북마크(즐겨찾기)를 누르는 겁니다. 그러면 자바스크립트 코드가 동작해서...(생략) 결국 번역이 되는것이죠.
구글 북마클릿의 텍스트 중 "&langpair=auto|ko"을 "&langpair=auto|en"으로 변경하세요.
파파고 북마클릿은 "sk=auto&tk=ko"을 "sk=auto&tk=en"으로 변경 하시면 됩니다.