I build PullClip, a free browser-based video downloader, and the feature people ask about most is the smallest one: a bookmarklet. You click it on a video page and the same video opens in the downloader, ready to save.
Here is the whole thing, how each part works, and why bookmarklets are still worth knowing in 2026.
The code
javascript:(function(){location.href='https://pullclipvid.com/?url='+encodeURIComponent(location.href)})(); That is the entire feature. One line.
How it works
-
javascript:tells the browser to run the bookmark as code instead of opening it as a web address. -
(function(){ ... })()is an IIFE (immediately invoked function expression). It keeps any variables out of the page's global scope, so the bookmarklet never clashes with the site's own scripts. -
location.href(on the right) reads the address of the page you are on. -
encodeURIComponent()is the part people skip and then wonder why it breaks. Video links are full of?,&and=. Without encoding,https://site.com/watch?v=abc&t=30would split the query string, and the downloader would only receive half the link. -
location.href = ...(on the left) navigates to the downloader with the encoded link in?url=, and the page fills the input box for you.
Why a bookmarklet and not an extension?
- No install and no store review
- No permissions: it reads nothing on the page except its address
- Works in Chrome, Firefox, Edge and Safari on desktop
- Easy to audit: you can read every character of it above
The trade-off is that bookmarklets don't work well on mobile browsers, where bookmarks bars are hidden. For phones, PullClip uses the system Share menu instead.
Install it
- Show your bookmarks bar (Ctrl+Shift+B on Windows and Linux, Cmd+Shift+B on Mac).
- Right-click the bar and add a new bookmark. Name it PullClip it.
- Paste the code above as the URL and save.
Make your own
The pattern works for any web tool that accepts a link in the query string. Swap the base URL and you have a bookmarklet for an archiver, a translator, a QR code generator or a link checker:
javascript:(function(){location.href='https://example.com/?url='+encodeURIComponent(location.href)})(); If you would rather keep the current tab, use window.open(...) instead of assigning location.href, so the tool opens in a new tab.
Links
- Code and install steps on GitHub: shahroz-su/pullclip-bookmarklet
- PullClip works with public videos from 28 sites, including YouTube, TikTok, Instagram, VK and OK.ru: pullclipvid.com
What small bookmarklets do you still use every day? I'd like to hear about them in the comments.
