Bookmarklet help wanted
June 12, 2012 1:44 PM Subscribe
Help me find a good set of tools for creating bookmarklets.
I want to write some bookmarklets to fix some problems / add feature on some web sites I visit. I've written one or two small ones previously, but in a very hack-ish way that I can see will quickly become a PITA. Looking for development tools (free, hopefully).
As I understand it, bookmarklets are just javascript that gets run against the DOM of the currently loaded HTML page. So I guess I need a good Javascript environment, that will let me load HTML from any URL. I'd also want something like Firefox's DOM Inspector, and then the editor window where I write my code. I'm thinking it'll go "write code, reload page, run script, find problems, repeat".
Once I get my javascript working then there's turning it into a bookmarklet. I've got a hackish Perl script that strips comments and escapes quotation marks, etc., which would do the job, but maybe there's something better.
Preferred environment
- Prefer Windows, rather not have to use Linux, Mac is not possible.
- Prefer Firefox, Chrome is doable, I'd be surprised if someone recommends IE.
- Editor: I have my preferred one (Textpad) but I don't need anything fancy like context coloring or automatic completion.
- jQuery? Should I be using jQuery? It seems like it's almost standard these days, but I've never touched it. And is it sensible, or even possible in a bookmarklet?
Thanks for any suggestions.
posted by benito.strauss to computers & internet (9 answers total) 4 users marked this as a favorite
posted by backwards guitar at 1:50 PM on June 12, 2012 [1 favorite]