Live data from Hacker News

For your next side project, make a browser extension

geoffreylitt.com

121–130 of 286 posts

Re: For your next side project, make a browser extension

#121

Earlier quoted context omitted.

If your intentions are to only use the extension for yourself, why not just side load it?

side loaded extensions are not persisted every restart of the browser.

Chrome does keep side loaded extensions through restarts. Firefox doesn't unless you submit to Mozilla for signing. But once signed you can install from a file or even your own site.

Re: For your next side project, make a browser extension

#122

Browser extensions are useful. I've made some simple ones and published a few: https://addons.mozilla.org/en-US/firefox/user/14310707/ But it's also worth considering where the browser gives priority. For example, while browser extensions can add custom keyboard shortcuts, they can't override the keybindings a website uses. Want to use the keyboard shortcut Ctrl-Shift-1 for a browser extension while a Google Docs pag…

there are several ways to get around this, including natively via chrome://extensions/shortcuts

Re: For your next side project, make a browser extension

#123

I try to stay away from browser extensions as much as I can, it will only bloat my browser even further. Firefox + Tampermonkey should be enough in my case. Is there anything a browser extension can do that Tampermonkey cannot?

Tampermonkey can change what's on the web page, but extensions can do much more than that, e.g. add toolbar menus and items to the context menu, add keyboard shortcuts, manage bookmarks, and so on. (See the API guide for an overview [1])

It's true that many extensions could "just be" Tampermonkey scripts. I'd guess they ship as standalone extensions due to a combination of: less friction to install, more discoverable, can extend with fancier features later on, and probably just inertia/ignorance from developers unaware of Tampermonkey.

1. https://developer.chrome.com/docs/extensions/reference/

Re: For your next side project, make a browser extension

#124

I have a personal browser extension that I use as a grab bag of assorted tools and fixes for sites that annoy me. It's half way between a userscript, a bookmarklet directory, and a UNIX shell, with little commands that run automatically on certain sites or operate on the DOM, and can pipe output to other commands. Here's a very old video of it in action: https://vimeo.com/118090094 (It's no longer open source because…

oh cool ive built my own version of this from scratch; didn't know others did this too

Re: For your next side project, make a browser extension

#125
Would recommend waiting a few weeks for Firefox to ship Manifest V3 because Chrome store isn't accepting new V2 extensions and Mozilla isn't yet accepting V3.

Firefox MV3 is also a bit different, requiring some swapping / toggling that wasn't needed for MV2.

Worth the pain though as extensions are like magic fairy dust for websites you otherwise cannot control.

Re: For your next side project, make a browser extension

#126
It's also a good way of interviewing. As part of your cover letter, explain that you decided to improve the website of your future employer in some way and give a link to the extension.

Someone I interviewed once did something like this and we couldn't think of a reason not to hire them because they effectively showed us they were capable of understanding and modifying our existing code which was basically what we wanted in a candidate.

Re: For your next side project, make a browser extension

#127

PSA: If you're making a browser extension, please support Firefox as well, not just Chrome. Firefox makes it easy since they support the `chrome` namespace for functions [0]. You can also use React/Next.js or another frontend library too if you prefer. I had created an extension a while ago out of pure HTML, CSS, and TypeScript but I found that was quite annoying to add more complex features with lots of state. I swi…

I have made this even easier with Rosegarden, so that you can just use a promisified browser object in both Firefox and Chrome!

The library is tiny, under 5 kb.

https://github.com/peterhil/rosegarden

Re: For your next side project, make a browser extension

#128
I have already made one browser extension for easily adding bookmarks into the category (folder) you want to, or create a new subcategory while adding a bookmark. Try it out!

peterhil/spellbook: Spellbook is a bookmark extension for Chrome and Firefox https://github.com/peterhil/spellbook

Re: For your next side project, make a browser extension

#130

Earlier quoted context omitted.

If your intentions are to only use the extension for yourself, why not just side load it?

side loaded extensions are not persisted every restart of the browser.

This was my experience as well and the reason I saw myself forced to use the web store. I think there was a time where it was not required, where side loading was ok, but then they changed it and I saw no other way to do it. IIRC there was an alternative way for enterprise users, but I never understood it.

That was around 5-7 years ago and I haven't checked if there was a new alternative, easier way to do it nowadays. I'm still using my extensions but have no need to modify them. Let's see what Manifest v3 has to tell me about this. I'll probably drop Chrome then.

Post reply on HN