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

[Feature] Prevent scripts from running until sync is done on opening browser. #2067

Open
goofedup opened this issue Apr 8, 2024 · 1 comment

Comments

@goofedup
Copy link

goofedup commented Apr 8, 2024

Motivation
I have some scripts that get data from fetch GET requests. Because some of this data is based off stored date info stored in GM_setValue when I update the scripts and move to different devices to extract other info from the fetch requests it isn't reflected and then causes issues when making a PUT request as data is missing as the script hasn't updated on the new devices. Obviously a niche issue but if there's an easy fix I'd love to see it added.

Proposed Solution
Add an option to disable scripts when opening browser until scripts have synced.

@tophf
Copy link
Member

tophf commented Apr 8, 2024

I don't think such an option would make sense in general. Can you use GM_addValueChangeListener?

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

No branches or pull requests

2 participants