ssborbis / ContextSearch-web-ext

Search engine manager for modern browsers
315 stars 35 forks source link

Access pages with the scheme "chrome-extension://": hypothes.is PDF annotations #689

Open yue-dongchen opened 3 months ago

yue-dongchen commented 3 months ago

I wonder if it is possible to access extension pages. My use case is looking up words when reading a PDF using the hypothes.is annotations extension, which spawns a PDF.js viewer with the URL chrome-extension://.... I searched around a bit and it apparently has to do with the manifest permissions, whose "" does not include such URLs. Is it possible?

Thank you

ssborbis commented 3 months ago

(edit) There is a fix in the repo to repair some functions. I'll try to get a new release out soon.

I don't think any major browsers allow extension to access other extension pages via injected code. I have seen cases where this extension's context menu entry will still be available on pretty much every page, but there are a lot of functions that only work via injected code, and as such are unavailable on those pages.

yue-dongchen commented 2 months ago

Thank you for the reply. If it's not possible then please close this issue.

ssborbis commented 2 months ago

This may be working now, when using the context menu. I've had some success searching from pdfs and other extension pages after the latest update