rNeomy / reader-view

Access Firefox's built in reader view from right click context menu
https://webextension.org/listing/chrome-reader-view.html
Mozilla Public License 2.0
471 stars 74 forks source link

What is `Block content on any page` permission for? #164

Closed solzard closed 1 year ago

solzard commented 1 year ago

Reader View version 0.7.0 requested Block content on any page permission. What's this for? Would you mind clarifying the purpose and usage, please?

Environment: Reader View: 0.7.0 Brave Browser: 1.48.164 Chromium: 110.0.5481.100 (Official Build) (arm64) macOS: 12.6.3 (21G419)

Screenshot 2023-02-22 at 16 28 42

rNeomy commented 1 year ago

This message refers to the "declarativeNetRequest" permission authorization, which we require to substitute the "origin" and "referer" headers for remote TTS (Text-to-Speech) engines. Ideally, we intended to categorize this permission as optional since it's only necessary if the user intends to use remote voices. Nonetheless, it turned out that it's not possible to list this permission as optional!

https://github.com/rNeomy/reader-view/blob/master/v3/manifest.json#L13

rNeomy commented 1 year ago

I'm replacing the "declarativeNetRequest" permission with "declarativeNetRequestWithHostAccess." As a result, the warning message is no longer present!