Skip to content

Commit

Permalink
Fix user URL detection, reduce chance of rate limiting
Browse files Browse the repository at this point in the history
  • Loading branch information
dmstern committed Dec 20, 2021
1 parent 63c25ac commit dd68aa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LikersBlocker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export default class LikersBlocker {
let userCells: NodeListOf<HTMLAnchorElement> = this.isLegacyTwitter
? (await this.getScrollList()).querySelectorAll("a.js-user-profile-link")
: (await this.getScrollList()).querySelectorAll(
'[data-testid="UserCell"] > div > div > div > a'
'[data-testid="UserCell"] a[aria-hidden="true"]'
);

let users: Array<HTMLAnchorElement> = Array.from(userCells);
Expand Down Expand Up @@ -802,7 +802,7 @@ export default class LikersBlocker {
this.collectedUsers = [];
this.scrollInterval = window.setInterval(async () => {
await this.scrollDown();
}, 800);
}, 1_600);
}

private stopScrolling = () => {
Expand Down

0 comments on commit dd68aa5

Please sign in to comment.