diff --git a/src/LikersBlocker.ts b/src/LikersBlocker.ts index 1e3ff07a7..703a2e943 100644 --- a/src/LikersBlocker.ts +++ b/src/LikersBlocker.ts @@ -107,10 +107,18 @@ export default class LikersBlocker { return this.likesCount > settings.LIKERS_LIMIT; } - private get isTweetPage(): boolean { + private get isListPage(): boolean { return location.href.includes("status"); } + private get isTweetPage(): boolean { + return ( + location.href.includes("list") && + (location.href.endsWith("members") || + location.href.endsWith("subscribers")) + ); + } + private get limitMessage() { if (this.isBlockPage) { return `${browser.i18n.getMessage( @@ -614,7 +622,8 @@ export default class LikersBlocker { return; } - var shouldDisplayOnThisPage = this.isBlockPage || this.isTweetPage; + var shouldDisplayOnThisPage = + this.isBlockPage || this.isTweetPage || this.isListPage; if (!shouldDisplayOnThisPage) { return;