File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { BaseContainer } from "../base/container";
55import { Handle } from "../base/handler" ;
66import { addHistoryStateListener } from "../base/historyStateListener" ;
77import { observe } from "@utils/utils-common" ;
8+ import { Logger } from "@utils/logger" ;
89
910class TwitchChatExtractor extends ChatExtractor {
1011 extract ( node : Node ) : ChatInfo | undefined {
@@ -93,5 +94,12 @@ observe('.community-points-summary', async (elem) => {
9394
9495 const boxBtn = elem . querySelector ( 'button.bCfhNy' ) as HTMLButtonElement ;
9596
96- if ( boxBtn ) boxBtn . click ( ) ;
97+ if ( boxBtn ) {
98+ const isPointAutoOn = ( await browser . storage . local . get ( 'pointBoxAuto' ) ) . pointBoxAuto ;
99+
100+ if ( isPointAutoOn === 'off' ) return ;
101+
102+ boxBtn . click ( ) ;
103+ Logger ( 'observe .community-points-summary callback: ' , '포인트 박스를 클릭했어요!' )
104+ }
97105} , false )
You can’t perform that action at this time.
0 commit comments