Chrome Google Dictionary extension on local html page

Solution 1:

I think it is because you are accessing to local file, so you use the "protocol" file://path/to/test.html. But I think that in your manifest.json, you have injected your content scripts by "http://*/*" pattern.

When you load local file, you don't use HTTP protocol. So you have to modify your manifest or install a local web server on your machine (like WAMP if using windows or LAMP if using linux or MAMP if using macos).

Solution 2:

This extension doesn't work with local files. It has been suggested for future versions. A workaround suggested is importing things into google docs. I know its not an ideal solution. Good luck.

There are offline dictionary chrome extensions that will do this for you. I am not sure how they compare.