Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
bing cloud dict bookmarklet
javascript:(function(){javascript:(function(){if(document.location.protocol=="https:"){alert("bing bookmarklet: https not supported!");}else{script=document.createElement('script');script.src='http://dict.bing.com.cn/cloudwidget/Scripts/Generated/BingTranslate_Hover_Phrase_Selection_ShowIcon.js';script.onload=function(){BingCW.Init({AppID:"dict",MachineTranslation:true,WebDefinition:true});};document.body.appendChild(script);}})();})();
  • api via Bing
  • made by @caoyue
javascript: (function() {
if (document.location.protocol == "https:") {
alert("bing bookmarklet: https not supported!");
} else {
script = document.createElement('script');
script.src = 'http://dict.bing.com.cn/cloudwidget/Scripts/Generated/BingTranslate_Hover_Phrase_Selection_ShowIcon.js';
script.onload = function() {
BingCW.Init({
AppID: "dict",
MachineTranslation: true,
WebDefinition: true
});
};
document.body.appendChild(script);
}  
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.