File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " twitch-auto-points" ,
3- "version" : " 1.1.2 " ,
3+ "version" : " 1.1.3 " ,
44 "description" : " Automatic twitch bonus point collection" ,
55 "main" : " index.js" ,
66 "scripts" : {
Original file line number Diff line number Diff line change 1- // 14 minutes 58 seconds in ms
2- const ALMOST_FIFTEEN_MINUTES_MS = 15 * 60 * 1000 - 2000 ;
3- const FIVE_SECONDS = 5 * 1000 ;
1+ // 14 minutes 57 seconds in ms
2+ const ALMOST_FIFTEEN_MINUTES_MS = 15 * 60 * 1000 - 3000 ;
3+ const THREE_SECONDS = 3 * 1000 ;
44
55const maxClickAttempts = 5 ;
66let isEnabled ;
@@ -23,7 +23,7 @@ const IntervalOperator = () => {
2323const interval = IntervalOperator ( ) ;
2424
2525function isLive ( ) {
26- return ! ! document . getElementsByClassName ( 'live-indicator' ) [ 0 ] ;
26+ return ! ! document . getElementsByClassName ( 'live-indicator-container ' ) [ 0 ] ;
2727}
2828
2929function attemptToClick ( ) {
@@ -46,7 +46,7 @@ function waitForBonusButton() {
4646 clickAttempts ++ ;
4747
4848 if ( ! clicked && clickAttempts > maxClickAttempts ) {
49- pauseFor ( FIVE_SECONDS ) ;
49+ pauseFor ( THREE_SECONDS ) ;
5050 }
5151 } , 1000 ) ;
5252}
@@ -72,7 +72,7 @@ function waitForWhenLive() {
7272 interval . clear ( ) ;
7373 waitForBonusButton ( ) ;
7474 }
75- } , FIVE_SECONDS ) ;
75+ } , THREE_SECONDS ) ;
7676}
7777
7878
Original file line number Diff line number Diff line change 22 "manifest_version" : 2 ,
33 "author" : " Daniyil Vasylenko" ,
44 "name" : " Twitch Auto Points" ,
5- "version" : " 1.1.2 " ,
5+ "version" : " 1.1.3 " ,
66 "homepage_url" : " https://github.com/Spring3/twitch-auto-points" ,
77 "description" : " Automatic twitch channel points collection" ,
88 "permissions" : [
You can’t perform that action at this time.
0 commit comments