DEV Community

[Comment from a deleted post]
Collapse
 
grahamthedev profile image
GrahamTheDev • Edited

I use bookmarklets extensively while testing things on other people's websites.

A couple of things to add to your article.

  1. There is a 2000 character limit in some browsers for the URL on a bookmark so watch out if you are trying to inline it all.
  2. A cleaner way to handle bookmarklets is to simply use them to inject a script from a server you control. This means you can just FTP a new version of the script and not have to change the bookmarklet if you are trying to test something or have a bookmarklet that needs to update regularly.

A couple of ones I have been working on

This one is an editor for dev.to I am working on, just drag it to your bookmarks bar and then navigate to the new article page and press the bookmarklet and voila, a full editor (with a tonne of bugs!):-

and this one is a bookmarklet to switch off animated GIFs on dev.to for people who find them distracting.

.
Collapse
 
ironcladdev profile image
Conner Ow

Thanks for the tips. Those bookmarklets look really nice!