astolat: lady of shalott weaving in black and white (Default)
[personal profile] astolat
I am using the signal boost bookmarklet to signal boost this update to the signal boost bookmarklet and if any of you signal boost this and someone boosts that then eventually clearly we will create a vortex in the space-time continuum. :P

[personal profile] astolat posted: SignalBoost bookmarklet

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. :(



You can just copy and paste that code from the textarea into the URL field of the bookmarklet to upgrade it.

Also 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

Date: 2019-02-08 05:12 pm (UTC)
trobadora: (Default)
From: [personal profile] trobadora
This is so neat, thank you very much!

Date: 2019-02-08 07:00 pm (UTC)
goodbyebird: Star Trek Discovery: Michael and Tilly looking at one another. Michael has a small smile on her face. (Disco and they were roommates!)
From: [personal profile] goodbyebird
Excellent, tyvm!

Date: 2019-02-08 10:59 pm (UTC)
gingicat: (Default)
From: [personal profile] gingicat
Cool!

Date: 2019-02-09 02:45 am (UTC)
rosefox: Green books on library shelves. (Default)
From: [personal profile] rosefox
Awesome!

Does this incorporate the "check if it's a locked post" code?

Date: 2019-02-10 11:39 am (UTC)
ineptshieldmaid: Language is my playground (Default)
From: [personal profile] ineptshieldmaid
Does this version also warn you if you're accidentally linking to a locked post?

Date: 2019-02-10 01:13 pm (UTC)
ineptshieldmaid: Language is my playground (Default)
From: [personal profile] ineptshieldmaid
Fab!

Date: 2019-02-11 11:48 am (UTC)
muccamukk: Groot surrounded by his own branches and glowing pollen. (GotG: Green Man)
From: [personal profile] muccamukk
I've been using this so much. Thanks to everyone who worked on it.

Date: 2019-02-11 02:10 pm (UTC)
witchka: ((dceu) diana ; bulletproof)
From: [personal profile] witchka
This is great, thank you!

I was wondering though if there might be a reason it chops off the first two letters of titles from sites outside of DW? I can manually add them back in no problem it just seems like an odd bug.

Date: 2019-02-11 02:51 pm (UTC)
melannen: Commander Valentine of Alpha Squad Seven, a red-haired female Nick Fury in space, smoking contemplatively (Default)
From: [personal profile] melannen
Thank you for the html change! And thank you for posting the readable version of the code! It made it so much easier that I took the chance to do a couple little things that had been bugging me since the last time I mucked around with it:

1) change the locked-post method to use a slightly different test that works for a few people the other one broke for
2) Make it so signal-boost vortexes can't happen anymore (sorry, someone can add that part back in if they want!)
3) Make it work a little better with non-DW posts (including, as an unintentional side effect, fixing the part where it cuts off a few letters of the title.)

I forked it on github (I think, I'm very bad at github) so my editable code is here:
tiny Dreamwidth signal boost bookmarklet

And here's the bookmark code:

Date: 2019-02-14 08:08 am (UTC)
ljwrites: Bowing in thanks. (thanks)
From: [personal profile] ljwrites
I went from this version to add user name detection for a few more DW-recognized sites, and made small changes to the link text generated by the bookmarklet. Code posted here.

Profile

astolat: lady of shalott weaving in black and white (Default)
astolat
March 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 2021

Tags

Style Credit

Expand Cut Tags

No cut tags