Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It would be great if snippets could be used in bookmarklets. Instead of:

    javascript:some_code
You would write:

    snippet:name
Snippets are much easier to write because snippets are edited in normal multiline editor with console and stuff.


> Snippets are much easier to write because snippets are edited in normal multiline editor with console and stuff.

Most of my bookmarklets are specific to work projects and I save them in the repo itself in a top-level bookmarklets.js file so I can use VSCode to edit them. (Then I just copy and paste them into the browser bookmark.)


https://bugzilla.mozilla.org/show_bug.cgi?id=1315549

Mhm, snippets seem to be chrome only


I use snippets all the time. When I'm ready to make a bookmarklet, I just add javascript: to the front and then drag them to my toolbar.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: