bit dojo labs : file explorer
Inspecting: home > js > bookmarklet > google-dictionary.html (download)<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Google Dictionary Bookmarklet</title>
<style type="text/css">
body {
color: #444;
font-family: "Calibri", Arial, Helvetica, sans-serif;
width: 800px;
margin: 40px;
}
</style>
</head>
<body>
<h1>Google Dictionary Bookmarklet</h1>
To setup:<br/>
Drag one of the links below into your browser's bookmarks panel.<br/><br/>
To look up something: <br/>
Select some text in your browser, then click on the bookmarklet.<br/><br/>
<b>
English to Traditional Chinese: <a href="javascript:void(open('http://www.google.com/dictionary?langpair=en|zh-TW&q='+encodeURI(document.selection?document.selection.createRange().text:(window.getSelection?window.getSelection():(document.getSelection?document.getSelection:''))),'w1','width=810,height=646,top=30,left=30,resizable=1,scrollbars=1,status=0'))">Google Dictionary</a><br/>
English to Simplified Chinese: <a href="javascript:void(open('http://www.google.com/dictionary?langpair=en|zh-CN&q='+encodeURI(document.selection?document.selection.createRange().text:(window.getSelection?window.getSelection():(document.getSelection?document.getSelection:''))),'w1','width=810,height=646,top=30,left=30,resizable=1,scrollbars=1,status=0'))">Google Dictionary</a><br/>
English: <a href="javascript:void(open('http://www.google.com/dictionary?langpair=en|en&q='+encodeURI(document.selection?document.selection.createRange().text:(window.getSelection?window.getSelection():(document.getSelection?document.getSelection:''))),'w1','width=810,height=646,top=30,left=30,resizable=1,scrollbars=1,status=0'))">Google Dictionary</a><br/>
</b>
</body>
</html>