Clean Copy

Bookmarklets are tiny JavaScript programs you stash in a browser bookmark and run with a click—no extension install, no compile step. Once you know how to save one and write a few lines of JS (or ask ChatGPT to do it), you can bend almost any webpage to your will, from stripping clutter to turning the page into a game of Asteroids.

It is a light version of Greasemonkey without installing anything.

What exactly is a bookmarklet?

A bookmarklet is simply a URL whose scheme is javascript: followed by inline code. When you click the bookmark, the browser executes that code in the context of the current page, giving you direct access to the DOM, cookies, and even your clipboard—within the same-origin rules, of course. The trick first appeared in the late-1990s Netscape era and quickly became a hacker’s Swiss-army knife for one-off tweaks that didn’t merit a full browser extension.

How to Use one (in 5 seconds)

  1. Show your bookmarks bar if it is hidden in your favorite browser. (On Mac Chrome the hotkey is Command+Shift+B)
  2. Drag one of the listed bookmarklet onto your bookmark bar(say, Grayscale Images).
  3. Go to a relevant page, click the bookmarklet you added.

You can find more bookmarkes by asking ChatGPT/Grok/Gemini/Claude etc. or just search for it on internet. Heads-up on security: the code runs with the same privileges as the site you’re on, and bookmarks are stored in plain text, so only install bookmarklets you trust. One trick is to paste the link content in chatgpt and ask it for advice or just are ChatGPT to create one for you.

Some of my favorite ones

(If you find the bookmarklet title to be too long on the bookmark bar/list, just rename it after adding them)

  • Clean URL Copy: single-click way to grab the “clean” version of the page you’re on, removes common marketing/analytics query strings ( utm_*, gclid, fbclid, etc. ).
  • Grayscale Images: Turns images on a webpage to grayscale, I used this to help my kids find reference images for Sketch practice.
  • Enable Right Click & Copy: Enable right click and enable selection copy on pages that disable them. Work for most cases.
  • ChatGPT Wide: make ChatGPT conversation content wider when you have a bigger screen.

NEW: DeepWiki: Github repo to Deep Wiki, a free encyclopedia of all GitHub repos, see this.