From 94c72b3219331b532a4f5ab357d4600a7bf095a9 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Tue, 7 Sep 2021 21:41:32 -0400 Subject: [PATCH] [O] ucheck: scroll to bottom after each click --- UCheckCompleter.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/UCheckCompleter.js b/UCheckCompleter.js index c32049b..f264a1d 100644 --- a/UCheckCompleter.js +++ b/UCheckCompleter.js @@ -32,7 +32,11 @@ function report() // Array.from(document.querySelectorAll('.sc-qbELi.eWIawQ')).filter(it => it.querySelector('span').innerHTML === 'No').forEach(it => it.click()) // New method: select by content and filter by color (white means unselected) $('span:contains(No)').parent().filter((i, it) => $(it).css('background-color') === 'rgb(255, 255, 255)').click() - }, 10) + + // Scroll to bottom + window.scrollTo(0, document.body.scrollHeight); + + }, 100) } report()