astolat (astolat) wrote,

SignalBoost bookmarklet

Okay, here is the little bookmarklet -- it's pretty limited, but it serves my own laziness, so I share it FWIW and if anyone has the time and wants to upgrade it, go for it and drop me a comment and I'll (ha ha) signal boost any new versions!

Here's the underlying javascript in much more readable/editable form for anyone who wants to muck around with it: signal_boost.js on Gist (now 1.4 by [personal profile] lj_writes)

  1. Create a new bookmark on your browser's bookmarks bar, then edit it. Copy and paste the code from this textarea into the URL field (sorry I can't make a draggable version here on DW as the javascript is being yanked, understandably).

    eta: [personal profile] melannen has already made the first improved version, which now warns you if you try to signal boost an access-locked post!

    eta2: I've now updated the bookmarklet so that it preserves the HTML encoding in the selected text, so for instance if you select a chunk of text that includes an image or links to an AO3 story or to another DW post, the links will be preserved. It does NOT work on embedded video, sorry. :(

    eta3: v1.4 with fixes and stripping excess Signal Boost: prefixes from [personal profile] melannen, more support for non-DW sites and better formatting from [personal profile] lj_writes!

  2. Go to a Dreamwidth post that you want to signal boost. You have to be ON the post itself; sadly this doesn't work from within your reading list. Also, you need to be logged in.

  3. If you want an excerpt, select some text in the post.

  4. Click the bookmarklet. You should be taken to the Dreamwidth post form with the signal boost content prefilled. You can add any other content you want, copy and paste the content to create posts with multiple signal boosts, etc. Whenever you're happy, you post it like any other post.

eta2: Safari for iOS install instructions by [personal profile] gingicat and Chrome for Android install instructions by [personal profile] falena!

Pre-Github versions preserved:

1.1, access lock, no HTML copying

1.0, no access lock check

You can also read this entry on Dreamwidth (comment count unavailable comments)
Tags: coding, dreamwidth
  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded