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

Use userScripts API for JavaScript actions #633

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

tjhorner
Copy link
Contributor

@tjhorner tjhorner commented Jul 2, 2024

This fixes #599.

The implementation is mostly complete (if a bit sloppy), but there is one missing piece: as part of this change, IDs for each shortcut are introduced. Shortcuts with missing IDs will be added on next save. This means users will need to go to the config page at least once before their JS shortcuts will work.

It's possible to perform this migration on extension update but I'm not sure how you wanted to go about it.

@crittermike crittermike merged commit 31746ae into crittermike:master Jul 17, 2024
0 of 4 checks passed
@hababr
Copy link
Contributor

hababr commented Aug 6, 2024

@tjhorner Nice fix, thank you. After building a release for Chrome I had to fix service_worker.js, a function name was missing (registerHandlers).

@niksumeiko
Copy link

niksumeiko commented Aug 14, 2024

@crittermike, when do you plan to publish a new release with this fix? I still see 4.1.3 from May in https://github.com/crittermike/shortkeys/releases

@crittermike
Copy link
Owner

@niksumeiko #621 (comment)

@tjhorner
Copy link
Contributor Author

@tjhorner Nice fix, thank you. After building a release for Chrome I had to fix service_worker.js, a function name was missing (registerHandlers).

Ahh, the name was minified wasn't it? Nice catch

@hababr
Copy link
Contributor

hababr commented Aug 14, 2024

@tjhorner Yes, right. I'm going to create a PR to fix that and to add missing IDs upon update. Or may be you would like to do that?

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

Successfully merging this pull request may close these issues.

Nonce or hash neded for inline JS execution with Shortkeys
4 participants