高品質な・迅速な・安心できるベトナム語翻訳

言語プロフェッショナルによる高品質なベトナム語翻訳
DỊCH VĂN BẢN TÀI LIỆU KHÓ CHUYÊN MÔN CAO TIẾNG NHẬT * VIETNAMESE ENGLISH HIGH QUALITY TRANSLATION * DICTIONARY AND LANGUAGE TOOL DEVELOPMENT
Showing posts with label chrome custom right-click menu. Show all posts
Showing posts with label chrome custom right-click menu. Show all posts

Thursday, February 14, 2019

[Diary] Add Chrome right-click context menu for my online dictionary

(See the simplest way to add right-click menu to look up in customized dictionaries below - no need to code)

I want to add a right-click context menu in Chrome browser to search a selected word or phrase in my online dictionary, for example:

https://my.meonn.com/look.php?mylook=XXX
(This dictionary is for test only, not a practical one)

When I selected a word XXX in Chrome and right-click it, there will be an option to look up it in my online dictionary (URL above).

It's like 'Search Google for "XXX"' in this picture:


So I follow this tutorial Can I add right-click options in Google Chrome? to:
- Create a manifest file call "manifest.json"
- Create a html file call "yurica.html" (function script)
- Create icon files: "icon16.png" and "icon48.png"

"manifest.json"