HACKER Q&A
📣 nbbaier

What are the most useful bookmarklets you use?


What are the most useful bookmarklets you use?


  👤 Leftium Accepted Answer ✓
I have 3 bookmarklets:

1. I made a custom "Toggle" bookmarklet that toggles between various sites. For example between:

- https://hw.leftium.com/#/item/39745425 and https://news.ycombinator.com/item?id=39745425

- Kagi.com and Google.com

- Google form/sheet and my beautifier: https://g.leftium.com/pretty

2. Allow Paste: https://bookmarkl.ink/ashtonmeuser/6e3869d8e468e016f22a4b4de...

3. Special toggle between Kagi Summarize, Kagi Key Moments, and original URL

I also run several "permanent bookmarklets" via ViolentMonkey/TamperMonkey: https://hw.leftium.com/#/item/39621056

---

Related HN post/discussion: https://hw.leftium.com/#/item/38014069


👤 vmoore

👤 madacol
- Open npm package on socket.dev

    javascript:location.href=document.location.href.replace("www.npmjs.com/", 'socket.dev/npm/');

- Edit any text on any page

    javascript: (function() {   document.body.contentEditable = true;   document.body.spellcheck = false;  })();

- Highlight selected text (wraps selection in tags)

this one is complex, see it here: https://getbookmarklets.com/scripts/https%3A%2F%2Fraw.github...

---

BTW, I am building https://getbookmarklets.com precisely because I want a place to share bookmarklets

I am trying to make the site as simple as possible on the server-side by only storing the URL of the bookmarklet, everything else is derived on the client side from the URL, similar to how bookmarkl.ink does it

I am still figuring out how to make it resistant to spam, I don't want it to become like the userscript sites where you can't find a simple useful script, they all seem to be ultra specific and very complex scripts that are hard to verify.

Any feedback is appreciated


👤 adiabatty
https://alisdair.mcdiarmid.org/kill-sticky-headers/

Also, to nicely format the Jira issue I'm looking at, to paste into task trackers:

    javascript: (() => {
      const tagEl = document.querySelector(
        '[data-testid="issue.views.issue-base.foundation.breadcrumbs.current-issue.item"]'
      );
      if (!(tagEl instanceof HTMLElement)) return;
      const tag = tagEl.innerText;
    
      const nameEl = document.querySelector(
        '[data-testid="issue.views.issue-base.foundation.summary.heading"]'
      );
      if (!(nameEl instanceof HTMLElement)) return;
      const name = nameEl.innerText;
    
      const text = `[${tag}] ${name}`;
      navigator.clipboard.writeText(text);
    })();

👤 treetalker

👤 perilunar
I have a couple I use constantly to kill fixed and sticky page elements. Makes the web much more usable. Also use the pinboard bookmarklet quite often.

👤 wruza
Images: presents an overlay with all images found in tags.

Unshorts:

  javascript:(function(){location.href=location.href.replace('/shorts/','/watch?v=')})();

👤 kcrwfrd_
A “show passwords” bookmarklet, turns any password input into normal text.

👤 cranberryturkey