---
description: |
This is some markdown content in YAML that will be output as an
.
describe the code here
you can use multiple lines. Its totally cool here
params: |
{type} describe what you expect to see as input
{type} describe what you expect to see as input
returns: |
{bool} something something
authors: |
Hong Kiat collection
Kyle Suttlemyre
originalsource: https://www.hongkiat.com/blog/100-useful-bookmarklets-for-better-productivity-ultimate-list/
layout: script
---
{{ raw }}
var t = window.getSelection && window.getSelection() || document.getSelection && document.getSelection() || document.selection && document.selection.createRange && document.selection.createRange().text;
var e = document.charset || document.characterSet;
if (t != "") {
location.href = "http://translate.google.com/translate_t?text=" + t + "&hl=en&langpair=zh-CN|en&tbb=1&ie=" + e;
} else {
location.href = "http://translate.google.com/translate?u=" + escape(location.href) + "&hl=en&langpair=zh-CN|en&tbb=1&ie=" + e;
}
;
{{ endraw }}