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

Time updating script #8

Open
jcushman opened this issue Nov 21, 2017 · 2 comments
Open

Time updating script #8

jcushman opened this issue Nov 21, 2017 · 2 comments

Comments

@jcushman
Copy link
Contributor

As perennially requested in metatalk, how about a script that loads your preferences page once per day, compares "(your preferences time: 8:21 AM)" against your actual current time taken from javascript, and updates the server offset if they don't match?

@shirlston
Copy link

This shouldn't be too hard as a greasemonkey script that changes the offset on document ready (only if it needs to be changed) when the user loads their profile page edit. I'm not so sure about running every day on a schedule if it's not an extension, but I could be wrong about that. I might take a whack this weekend after the turkey coma wears off.

@jcushman
Copy link
Contributor Author

Great!

My idea for "once per day" was basically, on load of any mefi page, if local storage says the last check was > 24 hours ago, check again. But just running on the profile page might be less finicky.

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