MAM search on Goodreads

Add "Search Goodreads" button to MAM

ئاپتورى
Alistair1231
بۈگۈن قاچىلانغىنى
0
جەمئىي قاچىلانغىنى
286
باھا نومۇرى
0 0 0
نەشرى
0.7.9
قۇرۇلغان ۋاقتى
2021-04-29
يېڭىلانغان ۋاقتى
2023-06-04
ئىجازەتنامىسى
يوق
قوللايدىغىنى

Adds a search on goodreads button which searches goodreads with "title author" in the following example it would be "Portland Derek Slaton"

image

Update 0.2: now supports authors like "A B Name". Goodreads expect author to be "AB Name", so I replace it in code. Example: Beast: Werewolves, Serial Killers, and Man-Eaters: The Mystery of the Monsters of the Gévaudan from Gustavo Sanchez Romero and S R Schwalb

Update 0.3: now all links are piped through dereferer.org for added security. Also ' and % get replaced in names since I am being told it breaks things! I couldn't find an example, so it wasn't tested.

Update 0.4: Fixed regex. Some names like William D Arand were shortened to WilliamD Arand.

Update 0.5: dereferer.org is down? Uses url.rw now. But old code is only commented out and I provide the possibility to use de-ref.com. Just use any of these three lines (currently 29-31 and '//' makes it a comment)

//    var dereferedUrl = "http://www.dereferer.org/?"+encodeURIComponent(mamSearchUrl);
//    var dereferedUrl = "http://de-ref.com/?"+mamSearchUrl;
    var dereferedUrl = "https://url.rw/?"+encodeURIComponent(mamSearchUrl);

Added bonus, url.rw uses https!

Update 0.6: Also added nullrefer.com and set it as default since it seems to be a popular site. I want something reliable!