-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathHeiseThreadEnabler.user.js
More file actions
20 lines (18 loc) · 1007 Bytes
/
HeiseThreadEnabler.user.js
File metadata and controls
20 lines (18 loc) · 1007 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// ==UserScript==
// @author PotcFdk
// @name HeiseThreadEnabler
// @namespace https://github.com/PotcFdk
// @description Auto-expands the thread view in the forums / comment sections.
// @match https://www.heise.de/forum/heise-online/Kommentare/*/posting-*/show/
// @version 0.0.1
// @grant none
// @icon https://avatars.githubusercontent.com/u/8555894
// @homepageURL https://github.com/PotcFdk/userscripts/tree/master/HeiseThreadEnabler
// @supportURL https://github.com/PotcFdk/userscripts/issues
// @downloadURL https://raw.githubusercontent.com/PotcFdk/userscripts/master/HeiseThreadEnabler/HeiseThreadEnabler.user.js
// @updateURL https://raw.githubusercontent.com/PotcFdk/userscripts/master/HeiseThreadEnabler/HeiseThreadEnabler.meta.js
// ==/UserScript==
const showThreadLink = Array.from (document.getElementsByTagName ("a")).filter (a => a.href.includes("show-thread-below-posting"))[0];
if (showThreadLink) {
location.replace (showThreadLink.href);
}