goodreadsReply

Quote only the selected text on a Goodreads comment reply; allow user to use Markdown

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Skaber
auspex
Daglige installationer
0
Installationer i alt
22
Bedømmelser
1 0 0
Version
0.6.3
Oprettet
07.02.2017
Opdateret
25.04.2017
Size
2,86 kB
Licens
N/A
Gælder for

In GoodReads comments, allow the user to choose the text they wanted to quote. This javascript attaches a click handler to every "reply" link that will either quote the selected text in the comment, or the first 200 characters (the GoodReads default).

You may now use markdown (* or _ surround a word or phrase for italics; two *s or _s for bold, and numerous other possibilities).

Because Showdown wraps paragraphs in <p> tags, and GoodReads makes comments within <p> tags look different from other comment text, I strip those tags from the result. This could, however, cause you to lose some formatting if you are used to using <p> tags. Also, GoodReads doesn't support many things in Markdown (like bulleted lists), so you may have to escape some constructs (lines beginning "* ", for instance, will need to use "\* "). Sorry about that, but I'm not sure there's much I can do about it. Possibly I can create a ShowDown extension to suppress processing lists and any other unusable Markdown, but that's for another day.