From d4c24bbeff86e27d9c6c5adc41b33a942baaf957 Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 7 Jun 2019 14:39:39 +0200 Subject: [PATCH] Added script that expands rbb24.de-comments. --- .../rbb24_expand_comments.user.js | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 comment-sections/rbb24_expand_comments.user.js diff --git a/comment-sections/rbb24_expand_comments.user.js b/comment-sections/rbb24_expand_comments.user.js new file mode 100644 index 0000000..e998ebe --- /dev/null +++ b/comment-sections/rbb24_expand_comments.user.js @@ -0,0 +1,26 @@ +// ==UserScript== +// @name Expand rbb24.de comments +// @description Expand comments under articles on rbb24.de. +// @version 2019.06.07.1 +// @author tastytea +// @copyright 2019, tastytea (https://tastytea.de/) +// @license GPL-3.0-only +// @namespace tastytea.de +// @homepageURL https://schlomp.space/tastytea/userscripts +// @supportURL https://schlomp.space/tastytea/userscripts/issues +// @downloadURL https://schlomp.space/tastytea/userscripts/raw/branch/main/comment-sections/rbb24_expand_comments.user.js +// @grant none +// @match https://*.rbb24.de/*/beitrag/* +// @run-at document-end +// @inject-into content +// ==/UserScript== + +function expand_comments() +{ + for (let comment of document.getElementsByClassName("manualteasershorttext")) + { + comment.click(); + } +} + +expand_comments();