Userscript for desktop browsers. Replace the fuzzy Twitch VOD dates with accurate timestamps.
First, you'll need a userscript manager for your browser. If you don't have a preference, I'd suggest Violentmonkey.
Click here for a direct download link to the userscript, which should initiate the installation for most managers. If not, copy-paste the code contents to your userscript manager as appropriate.
Tested with Violentmonkey/Firefox, but it should probably work with other userscript managers/browsers as well.
The userscript needs access to the Twitch API to work properly. Follow the instructions below to generate your own "Client ID" and "Client Secret" values for this purpose.
- Register a new Twitch app here
Important
Your app name will have to be unique, and it cannot contain the word "Twitch".
You can fill the redirect URI as http://localhost
, and set the category as "Browser Extension".
- In your Twitch developer apps Console, click "Manage" for your newly created app:
Warning
Do not expose the secret key value to others.
- In the app page, press "New Secret". Now you'll have the app Client ID, and the app Client Secret. You need to paste these two values to the extension the first time you use it.
- Go to a Twitch VOD page (any URL that starts with
https://www.twitch.tv/videos/
). You should see two popup prompts, asking you to fill in first the Client ID, and then the Client Secret for the app you just created. Copy-paste these values in the two popups.
Prompt for the Client ID:
Prompt for the Client Secret:
And that's it! The "fuzzy" VOD timestamps should now hopefully get appended with the accurate information.
-
Timestamps aren't being replaced
- Please see the developer console for any related error messages, and/or file a new bug for the problem
- Make sure your Twitch API key (the Client ID & Secret values) is still valid
- Make sure you aren't hitting any Twitch API rate limits with the API key you are using for the extension
-
How to reset the app Client ID or Client Secret values stored by the userscript?
- PRs are welcome
- Please open an issue or discussion before submitting a patch with large changes