tagesspiegel_show_comments: Show all answers to comments too.

This commit is contained in:
tastytea 2019-06-14 13:54:52 +02:00
parent 548927d609
commit 492630e1c1
Signed by untrusted user: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 11 additions and 1 deletions

View File

@ -2,7 +2,7 @@
// @name Show tagesspiegel.de comments
// @description Show all comments on tagesspiegel.de
// @description:de Alle kommentare auf tagesspiegel.de anzeigen.
// @version 2019.06.08.1
// @version 2019.06.14.1
// @author tastytea
// @copyright 2019, tastytea (https://tastytea.de/)
// @license GPL-3.0-only
@ -38,6 +38,16 @@ function show_comments()
if (showcomments.length > 0)
{
showcomments[0].click();
show_all_answers();
}
}
function show_all_answers()
{
const showanswers = document.getElementsByClassName("ts-comments-expand-all");
if (showanswers.length > 0)
{
showanswers[0].click();
}
}