Goodreads expand: Expand book details too.

This commit is contained in:
tastytea 2021-04-20 09:47:44 +02:00
parent 5f5cc9257a
commit c555e69ad1
Signed by untrusted user: tastytea
GPG Key ID: CFC39497F1B26E07

View File

@ -1,10 +1,10 @@
// ==UserScript==
// @name Goodreads expand
// @description Show the whole description / author information on goodreads.com.
// @description:de Zeige die ganze beschreibung / author·inneninformation auf goodreads.com an.
// @version 2020.08.18.1
// @description Show the whole description / author information / book details on goodreads.com.
// @description:de Zeige die ganze beschreibung / author·inneninformation / buchdetails auf goodreads.com an.
// @version 2021.04.20.1
// @author tastytea
// @copyright 2020, tastytea (https://tastytea.de/)
// @copyright 2020, 2021, tastytea (https://tastytea.de/)
// @license GPL-3.0-only
// @namespace tastytea.de
// @homepageURL https://schlomp.space/tastytea/userscripts
@ -39,4 +39,11 @@
const links = root.getElementsByTagName("a");
links[links.length - 1].text = "(less)";
}
const bookdata = document.getElementById("bookDataBox");
if (bookdata !== null)
{
bookdata.setAttribute("style", "display: block;");
document.getElementById("bookDataBoxShow").setAttribute("style", "display: none;");
}
})();