Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readability Bookmarklet Fails to Run #81

Open
taylordolan opened this issue Aug 10, 2023 · 1 comment
Open

Readability Bookmarklet Fails to Run #81

taylordolan opened this issue Aug 10, 2023 · 1 comment

Comments

@taylordolan
Copy link

Hi there, thanks so much for your work on this extension! Without it I'd have to switch from Arc back to Chrome.

For some reason I can’t get this Readability bookmarklet to work in Powerlet. (For reference, the source is here on GitHub.)

It works as a normal bookmarklet in Chrome, but when I try to run the script from Powerlet, I get Uncaught ReferenceError: Readability is not defined in the console. This happens in both Arc and Chrome.

@anthonyec
Copy link
Owner

anthonyec commented Oct 29, 2023

Thanks for reporting! This is related to how Chrome executes custom scripts in their own "world", they don't have access to global variables.

There is a way to execute scripts in the same world as the page in the latest version of Chrome's extension API (manifest v3), though currently I can't upgrade Powerlet to that until some APIs are supported.

Soo there would need to be some other way execute the scripts, possibly injecting a <script> tag into the page. I'll need to experiment!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants