summaryrefslogtreecommitdiff
path: root/crocoite/data
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2018-04-04 09:02:33 +0200
committerLars-Dominik Braun <lars@6xq.net>2018-04-04 09:02:33 +0200
commita947333da221d8a8f74c1971f1a09fe21ccfebcf (patch)
tree5bfb33140a55c00a88900c863f850d86580e5082 /crocoite/data
parent52bbeacfe6adb09dcaa32dd867a8a8c17f848a09 (diff)
downloadcrocoite-a947333da221d8a8f74c1971f1a09fe21ccfebcf.tar.gz
crocoite-a947333da221d8a8f74c1971f1a09fe21ccfebcf.tar.bz2
crocoite-a947333da221d8a8f74c1971f1a09fe21ccfebcf.zip
behavior: Add selector for YouTube.
Diffstat (limited to 'crocoite/data')
-rw-r--r--crocoite/data/click.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/crocoite/data/click.js b/crocoite/data/click.js
index d19ec9f..f6f2852 100644
--- a/crocoite/data/click.js
+++ b/crocoite/data/click.js
@@ -51,6 +51,12 @@ const sites = Object.freeze ([
/* load more comments */
{s: 'article div ul li a[role=button]', flags: selectorFlag.multi},
],
+ }, {
+ hostname: /^www\.youtube\.com$/i,
+ selector: [
+ /* expand comment thread */
+ {s: 'ytd-comment-thread-renderer div.more-button', flags: selectorFlag.none},
+ ],
}
]);