MAM search on Goodreads

Add "Search Goodreads" button to MAM

作者
Alistair1231
今日安裝
0
安裝總數
288
評價
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!