This simple extension shows you the actual video duration at any playback speed. See the duration of the video for different playback speed easily!
Note
Theoretically it should work on any chromium / firefox forks. (mobile versions are not currently supported)
- Supports Sponsorblock addon
I had this topic on my exam. Read more below.
- Visit the Official Firefox Add-ons Store
- Click "Add to Firefox"
- Done!
- Head over to releases and download the
yt-pb-calc-x.x.signed.crx
file. - On your browser, goto
chrome://extensions
- Enable Developer Mode (toggle in top-right or center-right for Edge)
- Drag N Drop the crx file into the extension page.
- Confirm installation when prompted.
- Enjoy!
Tip
Why Different Methods?
- Firefox extensions can be published openly on AMO
- Chrome requires paid developer accounts ($5 one-time fee)
Before you begin, ensure you have the followings:
-
Runtime:
-
Signing:
- A keypair for CRX signing. I used this tool from plasmo.
- Add the generated public key to the
key
field in chrome-manifest.json
-
Clone the repository:
git clone https://github.com/kurtnettle/yt-pb-calc.git
-
Enter the directory:
cd yt-pb-calc
-
Install the dependencies
pnpm i
-
Make your changes to the source code. π«
-
Build the extensions:
chmod +x build.sh ./build.sh
This will generate a
.xpi
and.crx
file inside thedist/
directory.
Important
Chromium CRX
If you want auto-update then don't forget to fill the update_url
field in the chrome-manifest.json
You know, there's always one more tutorial video to watch, but never enough hours before the exam.
It's 1 AM before your exam. You've got three 30-minute tutorials left:
- At normal speed: 90 minutes total
- You need to sleep in 70 minutes
- At 1.5x speed... is that 60 minutes? 45?
Your tired brain struggles with the math while the clock keeps ticking.
"Is this 60 minutes now? 45? Can I actually finish this and sleep?"
That's when I realized - in the crucial moments when every minute counts, we shouldn't waste mental energy on speed calculations. This extension was born from that midnight circus.
I am also sorry for such dry extension name :) Couldn't find any better.
Contributions are welcome! If you'd like to improve the tool or fix bugs, feel free to submit a pull request. Please ensure your changes align with the project's coding standards and include appropriate tests.
Browser icons used in this README are from Wikimedia Commons
All icons are used under their respective licenses.
I am grateful to these amazing open-source projects:
- Pnpm - Fast, disk space efficient package manager
- Rollup - JS module bundler
- web-ext - Firefox extension tooling
- Jest - Delightful JavaScript testing
- XO - ESLint wrapper with great defaults
- @types/chrome - Chrome extension type definitions
- @types/firefox-webext-browser - Firefox-webext-browser type definitions
And all their maintainers and contributors!
This project is licensed under the GPLv3 License. See the LICENSE file for full details.
By contributing to this project, you agree that your contributions will be licensed under the GPLv3 License as well.