Relative Content

Tag Archive for javascriptgoogle-chrome-extensiongoogle-chrome-devtoolsbackendchrome-extension-manifest-v3

Trouble with Chrome Extension in Manifest V3: Executing Script in to Fetch Translation from Google Translate

I’m working on a Chrome extension that allows users to highlight a word, right-click to translate it using Google Translate, and then log the translation pair to Chrome’s local storage. I have included Google Translate in both permissions and host_permissions (and have tried each individually), but I keep encountering the following error: Unchecked runtime.lastError: Cannot access contents of the page. Extension manifest must request permission to access the respective host.