Things I want someone to create for me, volume 1

A mechanism that automatically expands all collapsed merges in a pushlog view. I don’t care if it’s a Firefox extension or modification to the pushloghtml source that adds an expand=1 parameter to the query string; I am tired of manually expanding each one.

8 Responses to “Things I want someone to create for me, volume 1”

  1. $(‘.expand’).click();

    See https://twitter.com/passcod/status/191579360262758402

  2. Make it into a userscript if you want it to be automatic or something.

  3. Heh. I was going to post exactly the same thing, except with Ctrl-Shift-K preceding it.

    1. Ctrl-Shift-K (open web console)
    2. $(‘.expand’).click()

    This does suggest a handy developer tool extension — when entering stuff into the web console command line, give an easy mechanism to save as a user script of some sort, either to apply from a menu or auto-apply based on (configurable) URL match.

    “Let the browser help you grease your monkey”. Wait, that didn’t come out right…

  4. Not exactly sure why, but jQuery doesn’t seem to be available at load (end in page-mod), but this seems to work https://builder.addons.mozilla.org/xpi/prepare_download/1048915/revision/0/

  5. Apparently you can’t link to the builder like that… https://builder.addons.mozilla.org/addon/1048915/latest/ and then click download

  6. Thanks everybody; that was very helpful!

  7. bookmarklet:

    javascript:(function()%20{%20$(“.expand”).each(function()%20{%20%20%20%20%20var%20pushid%20=%20$(this).attr(“class”);%20pushid%20=%20′.’%20+%20pushid.match(/id\d+/);%20$(pushid).nextAll(pushid).toggle();%20})%20})();

  8. Asa’s bookmarklet above has fancy double- and single-quotes (probably from blog munging), which breaks it.

    For convenience, here’s the bookmarklet with normal quotes (in a “keep forever” pastebin to avoid any blog-quote-character-munging):
    http://pastebin.mozilla.org/1573469

Leave a Reply