ContextSearch-web-ext icon indicating copy to clipboard operation
ContextSearch-web-ext copied to clipboard

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

Open yue-dongchen opened this issue 1 year ago • 3 comments

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 "<all_urls>" does not include such URLs. Is it possible?

Thank you

yue-dongchen avatar Mar 29 '24 08:03 yue-dongchen

(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.

ssborbis avatar Mar 31 '24 03:03 ssborbis

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

yue-dongchen avatar Apr 17 '24 11:04 yue-dongchen

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

ssborbis avatar Apr 24 '24 16:04 ssborbis