summaryrefslogtreecommitdiff
path: root/crocoite
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2018-03-30 10:43:16 +0200
committerLars-Dominik Braun <lars@6xq.net>2018-03-30 10:43:16 +0200
commit52bbeacfe6adb09dcaa32dd867a8a8c17f848a09 (patch)
treef99d4e7e1eb22f4974e2ccd4498dbdc357c63848 /crocoite
parent6e5087160953eb1ee7754453e10e68d40928e06c (diff)
downloadcrocoite-52bbeacfe6adb09dcaa32dd867a8a8c17f848a09.tar.gz
crocoite-52bbeacfe6adb09dcaa32dd867a8a8c17f848a09.tar.bz2
crocoite-52bbeacfe6adb09dcaa32dd867a8a8c17f848a09.zip
Add click selectors for Instagram
Load more comments/images for posts.
Diffstat (limited to 'crocoite')
-rw-r--r--crocoite/data/click.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/crocoite/data/click.js b/crocoite/data/click.js
index 03e9f37..d19ec9f 100644
--- a/crocoite/data/click.js
+++ b/crocoite/data/click.js
@@ -43,6 +43,14 @@ const sites = Object.freeze ([
* frequent */
{s: 'span.morecomments a', flags: selectorFlag.none, throttle: 500},
],
+ }, {
+ hostname: /^www\.instagram\.com$/i,
+ selector: [
+ /* posts may have multiple images that load dynamically, click the arrow */
+ {s: 'a[role=button].coreSpriteRightChevron', flags: selectorFlag.multi, throttle: 500},
+ /* load more comments */
+ {s: 'article div ul li a[role=button]', flags: selectorFlag.multi},
+ ],
}
]);