Live data from Hacker News

A bookmarklet to kill sticky headers (2013)

alisdair.mcdiarmid.org

31–40 of 91 posts

Re: A bookmarklet to kill sticky headers (2013)

#31
post #24

These things are so annoying. Is there a website benchmark not for speed, not for security but for "annoyingness"? I guess there is some overlap with accessibility, but that's not exactly what I'm thinking of. I asked Copilot and searched Google but couldn't really come up with anything.

CLS was roughly designed to measure annoyingness in terms of "moving layout elements". I'm sure Google has even more nuanced signals to measure e.g. ad coverage vs content coverage

Re: A bookmarklet to kill sticky headers (2013)

#33
post #23

Bookmarklet aficionado and maintainer of bookmarkl.ink here. Took the liberty of posting this bookmarklet: https://bookmarkl.ink/ashtonmeuser/849a972686e1505093c6d4fc5...

Wow, the Doom bookmarklet is kind of cool. https://bookmarkl.ink/ashtonmeuser/04710d3befc446e849108a587... It seems there isn't a way to browse existing bookmarklets, other than the small, curated lists?

Thanks! Re: listing bookmarklets, that's something I'd like to do but have yet to find a cheap/easy way to do it. One way would be to search gists for relevant metadata [1] but GitHub does not include searching gists in their API. Another way might be logging paths in an edge function. Open to suggestions/PRs.

[1] https://gist.github.com/search?q=bookmarklet-title

Re: A bookmarklet to kill sticky headers (2013)

#34

Bookmarklet aficionado and maintainer of bookmarkl.ink here. Took the liberty of posting this bookmarklet: https://bookmarkl.ink/ashtonmeuser/849a972686e1505093c6d4fc5...

I have a couple bookmarklets scattered in a couple blog posts that you may find interesting / want to add:

* https://river.me/blog/bookmarklet-stay-here/

* https://river.me/blog/firefox-keep-bookmark-keywords/

* https://river.me/blog/url-bar-is-a-cli/

Re: A bookmarklet to kill sticky headers (2013)

#35
I'm using the Bar Breaker Firefox Extension[1], it's particularly helpful on Android devices with smaller screens.

It completely gets rid of the bars, which is sometimes great, but sometimes too much. I occasionally have to turn it off for workflows where the "next" button is in a fixed bar, such as checkout for US Mobile, or saving a Yoto playlist.

[1]: https://addons.mozilla.org/en-US/firefox/addon/bar-breaker/

Re: A bookmarklet to kill sticky headers (2013)

#36

Bookmarklet aficionado and maintainer of bookmarkl.ink here. Took the liberty of posting this bookmarklet: https://bookmarkl.ink/ashtonmeuser/849a972686e1505093c6d4fc5...

I have a couple bookmarklets scattered in a couple blog posts that you may find interesting / want to add: * https://river.me/blog/bookmarklet-stay-here/ * https://river.me/blog/firefox-keep-bookmark-keywords/ * https://river.me/blog/url-bar-is-a-cli/

Your wish is my command.

- https://bookmarkl.ink/ashtonmeuser/a36be4b6c835276f1a22a8c49...

- https://bookmarkl.ink/ashtonmeuser/a36be4b6c835276f1a22a8c49...

- https://bookmarkl.ink/ashtonmeuser/a36be4b6c835276f1a22a8c49...

Interestingly, in the URL CLI article, you mentioned the difficulty of maintaining such bookmarklets. That was a huge motivator for bookmarkl.ink. You can keep your verbose, commented code in a gist while the actual bookmarklet is tree shaken, stripped of comments, minified, and encoded. As of late, you even get some creature comforts like TypeScript support. Finally, every gist is a repo behind the scenes so you get version control for free.

Re: A bookmarklet to kill sticky headers (2013)

#37

I've been using the Kill-Sticky Chrome extension for years: https://chromewebstore.google.com/detail/kill-sticky/lekjlgf... Because it has a configurable keyboard shortcut. Can't imagine browsing the web without it. At this point hitting Cmd+K when I visit an article is pure reflex. A bookmarklet would be more secure, but I don't know of a way to assign keyboard shortcuts to one.

You can add a Chrome site shortcut whose URL is a bookmarklet, so it will run the bookmarklet when you type "bm" in the address bar (for example).

Taking it even further so it will run with just one keystroke, on my Mac I used Karabiner to run a terminal script that types the bookmarklet in the address bar for me:

    tell application "System Events"
        keystroke "l" using {command down} -- Select the address bar (Cmd+L)
        keystroke "bm" -- Type "bm"
        delay 0.2  # Let Chrome recognize the site shortcut
        keystroke return -- Press Enter
    end tell
In my script I open a new Chrome window before this because the bookmarklet submits a nag screen from my job, but for stickies you could have it just switch back to the window you're reading instead.

Re: A bookmarklet to kill sticky headers (2013)

#40

I've been using the Kill-Sticky Chrome extension for years: https://chromewebstore.google.com/detail/kill-sticky/lekjlgf... Because it has a configurable keyboard shortcut. Can't imagine browsing the web without it. At this point hitting Cmd+K when I visit an article is pure reflex. A bookmarklet would be more secure, but I don't know of a way to assign keyboard shortcuts to one.

You can add a Chrome site shortcut whose URL is a bookmarklet, so it will run the bookmarklet when you type "bm" in the address bar (for example). Taking it even further so it will run with just one keystroke, on my Mac I used Karabiner to run a terminal script that types the bookmarklet in the address bar for me: tell application "System Events" keystroke "l" using {command down} -- Select the address bar (Cmd+L) ke…

this is awesome. thanks
Post reply on HN