textgrab / extension

Chrome Extension
1 stars 1 forks source link

Remove host permission #40

Closed sriharivishnu closed 2 years ago

sriharivishnu commented 2 years ago

Reading up on Google's docs, and looking at the below message from Chrome Developer Dashboard, host permissions will be manually reviewed and thus take longer to launch.

Screen Shot 2022-01-24 at 2 05 13 AM

The only place we are using the host permission is here:

  "content_scripts": [
    {
      "matches": ["http://*/*", "https://*/*"],
      "css": ["css/textgrab.css"]
    }
  ],

Similarly to how we inject out textgrab.js script, we can also inject our CSS file. We can then avoid this host permission, and our extension will go through an automatic review process hopefully.