2 hours of coding and I’m fully done with my first browser extension!
I mostly made this to teach myself how to make extensions for both
Chromium and Firefox (which are actually extremely similar, good to
know!)
All it does is listen for when a new YouTube tab is opened, checks
how many you already have open, and closes it if there are too many. It
also uses the storage API to save the user preference of how many they
can have open at a time. Hopefully this helps to stop someone’s (and my)
future unhealthy binging session.
Making this was basically a sequence of copying generic code from
Chrome’s docs, making some slight tweaks by looking at docs, rinse and
repeat. AI was occasionally used when debugging the insanely vague error
messages JS gives.
Comments 1
librewolf == peak
Sign in to join the conversation.