Ask HN: Share Your Favorite Bookmarklets
28 takinola 11 3/27/2025, 12:00:30 AM
Here are a couple bookmarklets I find myself using often:
Post current web page to HN
javascript:window.location="http://news.ycombinator.com/submitlink?u="+encodeURIComponent(document.location)+"&t="+encodeURIComponent(document.title)
Find Archive.is link javascript:window.location="http://archive.is/newest/"+document.location
In short, it pulls code from GitHub Gists (which have the benefit of being backed by git repos), transpiles, minifies, bundles, and wraps in an IIFE. It's also got a basic module resolver that allows you to include libraries or remote files.
This allows you to use creature comforts like TS and libraries and maintain code readability while still ending up with the smallest possible bookmarklet. It also allows you to link to a particular version (git hash), present user-defined variables, edit code in an inline editor, etc.
Enjoy!
[0]: https://bookmarkl.ink
2. As someone who works across frontend and backend development, I still find bookmarklets incredibly useful for quick debugging and automation. While browser restrictions have tightened, tools like Tampermonkey or custom browser extensions can still help power users retain control. What are some creative ways you've found to keep bookmarklets alive?
I beefed up the 'kill sticky' one <https://news.ycombinator.com/item?id=32998091> but that's not very interesting. Here are some other ones:
* Re-enable zoom on iPhone (for pages that disable it)
* Open same page in new tab with js script tags removed (you must click to allow it to open a new tab) * Show page source * Re-enable long-press context menu (for pages that disable it) * Re-enable text selection (for pages that disable it)javascript:(function(){ if (location.hostname === "www.reddit.com") { location.href = location.href.replace("www.reddit.com", "old.reddit.com"); }})();
Necessary due to Google search results on Reddit leading to the new.reddit.com version of a page which demands a login more often than not.
Convert fixed position to absolute:
Convert sticky position to absolute: Though looking at them now I should combine and update them.It's unfortunate that browser developers want to fully derisk all potential security holes, because that also means removing the choice from the end user. This ends up being security by infantilization.
> It's unfortunate that browser developers want to fully derisk all potential security holes, because that also means removing the choice from the end user.
I agree with you, it is unfortunate. (There are other cases of this too, though.) (I think there are other ways to fix security issues though, while allowing more and better control by the end user; but, they don't tend to do such things.)