Skip to content

Rainyan/userscript-twitch-vod-accurate-timestamps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Download stats CodeQL code style: prettier

userscript-twitch-vod-accurate-timestamps

Userscript for desktop browsers. Replace the fuzzy Twitch VOD dates with accurate timestamps.

Example

example

Installation

Userscript installation

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.

Twitch API config

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.

  1. 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".

register_twitch_extension_app

  1. In your Twitch developer apps Console, click "Manage" for your newly created app:

twitch_app_manage

Warning

Do not expose the secret key value to others.

  1. 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.

twitch_app_id_and_secret

  1. 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:

popup_clientid

Prompt for the Client Secret:

popup_clientsecret

And that's it! The "fuzzy" VOD timestamps should now hopefully get appended with the accurate information.

Troubleshooting

  • 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?

    • At least for the Violentmonkey userscript manager, you can manually edit (or delete) the stored values through the extension's script options page: violentmonkey_edit_vals
    • For other userscript managers, please see the relevant user manual for help

Contributing

  • PRs are welcome
    • Please open an issue or discussion before submitting a patch with large changes

About

Userscript that replaces the fuzzy Twitch VOD dates with accurate timestamps.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published