diff --git a/catalogues/goodreads_expand.user.js b/catalogues/goodreads_expand.user.js index ea0f342..472c70a 100644 --- a/catalogues/goodreads_expand.user.js +++ b/catalogues/goodreads_expand.user.js @@ -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;"); + } })();