Bookmarklets to User Scripts

Bookmarklets to User Scripts is a Greasemonkey script that lets you turn any bookmarklet into a Greasemonkey script. The bookmarklet will then run every time a page in the included-sites list is loaded. If you find yourself using certain bookmarklets every time you go to certain pages, this script is for you.

15 Responses to “Bookmarklets to User Scripts”

  1. Asa Dotzler Says:

    This is great! This is a mini-revolution on the web. I wonder if it can spread beyond those of us already comfortable with things like bookmarklets.

    – A

  2. Jeremy Dunck Says:

    Thanks, Jesse. I wanted to do this myself. :)

  3. børge Says:

    Can I make it execute the same bookmarklet more than one time on the same page? This would be very helpfull in the Blogger edit template site!

  4. Jesse Ruderman Says:

    børge, do you want the bookmarklet to execute twice when the page loads? If so, edit the .user.js to include two copies of the bookmarklet or use “for (var times=0; times < 2; ++times) { … }”

  5. børge Says:

    I want it to execute about 5 times or so! Where should I put that line? I don’t know anything about JS or User Scripts or anything..
    Thanks! :)

  6. Brandon Says:

    I’m a bit lost when you say, “install any bookmarklet” as a user script. Am I to edit this userscript by adding the contents of any particular bookmarklet?

    For example, if I want this bookmarklet to run on certain sites…

    javascript:resizeTo(800,600)

    …how would I get that bookmarklet installed?

    Sorry if I’m sounding positively noobish.

  7. Jesse Ruderman Says:

    Brandon,

    1. Install “Bookmarklets to User Scripts”.
    2. Go to a page that has the javascript:resizeTo(800,600) bookmarklet.
    3. You should see a monkey icon next to the bookmarklet in the page. (If not, add this page to the included-sites list for “Bookmarklets to User Scripts”.)
    4. Right-click the monkey icon next to the bookmarklet and select “Install user script…”.
    5. Set the included-sites list for your new user script to the sites you want it to run on.

  8. Mara Says:

    Whatever Greasemonkey version I install on Firefox 1.0.4 or 1.0+ (I tried 0.3.3 and 0.3.4), when I rightclick the monkey next to the bookmarklet I don’t see “Install user script” in my context-menu. I see only a tooltip.

  9. jess Says:

    Excellent! I have now “ZAP WHITEBACKGROUND” bookmarklet auto-execute with Greasemonkey. The bookmarklet however does not quite work on this page; the main white background stays.

  10. Jesse Ruderman Says:

    The “zap white background” bookmarklet doesn’t work here because the “white background” on this page is part of a background image, http://www.squarefree.com/wp-content/themes/default/images/kubrickbgwide.jpg, rather than an element with a normal white background.

  11. Greasemonkey script to turn bookmarklets into Greasemonkey scripts - Broke Kid Says:

    […] emonkey scripts Filed under: Internets, Greasemonkey — admin @ 10:24 pm (via Squarefree.com) Bookmarklets to User Scripts is a Greasemonkey script th […]

  12. russellmz Says:

    mara proclaimed: “Whatever Greasemonkey version I install on Firefox 1.0.4 or 1.0+ (I tried 0.3.3 and 0.3.4), when I rightclick the monkey next to the bookmarklet I don’t see “Install user script” in my context-menu.”

    same here. what am i doing wrong?

  13. Me too Says:

    Me too … firefox 1.0.4 how to install .js ?

  14. Me too Says:

    Me too … firefox 1.0.4 how to install .js ?
    Oh, I got it … you have to install grease monkey and completely exit firefox.
    then the install script buttons appear

    my dnld manager was still open when I closed it the first time

  15. Jesse Ruderman Says:

    Whatever Greasemonkey version I install on Firefox 1.0.4 or 1.0+ (I tried 0.3.3 and 0.3.4), when I rightclick the monkey next to the bookmarklet I don’t see “Install user script” in my context-menu. I see only a tooltip.

    That was http://bugzilla.mozdev.org/show_bug.cgi?id=11236 , which should be fixed in the next version of Greasemonkey after 0.5.

    Workaround: right-click the space between the monkey icon and the bookmarklet.