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 1
1
{
2
2
"name" : " twitch-auto-points" ,
3
- "version" : " 1.1.2 " ,
3
+ "version" : " 1.1.3 " ,
4
4
"description" : " Automatic twitch bonus point collection" ,
5
5
"main" : " index.js" ,
6
6
"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 ;
4
4
5
5
const maxClickAttempts = 5 ;
6
6
let isEnabled ;
@@ -23,7 +23,7 @@ const IntervalOperator = () => {
23
23
const interval = IntervalOperator ( ) ;
24
24
25
25
function isLive ( ) {
26
- return ! ! document . getElementsByClassName ( 'live-indicator' ) [ 0 ] ;
26
+ return ! ! document . getElementsByClassName ( 'live-indicator-container ' ) [ 0 ] ;
27
27
}
28
28
29
29
function attemptToClick ( ) {
@@ -46,7 +46,7 @@ function waitForBonusButton() {
46
46
clickAttempts ++ ;
47
47
48
48
if ( ! clicked && clickAttempts > maxClickAttempts ) {
49
- pauseFor ( FIVE_SECONDS ) ;
49
+ pauseFor ( THREE_SECONDS ) ;
50
50
}
51
51
} , 1000 ) ;
52
52
}
@@ -72,7 +72,7 @@ function waitForWhenLive() {
72
72
interval . clear ( ) ;
73
73
waitForBonusButton ( ) ;
74
74
}
75
- } , FIVE_SECONDS ) ;
75
+ } , THREE_SECONDS ) ;
76
76
}
77
77
78
78
Original file line number Diff line number Diff line change 2
2
"manifest_version" : 2 ,
3
3
"author" : " Daniyil Vasylenko" ,
4
4
"name" : " Twitch Auto Points" ,
5
- "version" : " 1.1.2 " ,
5
+ "version" : " 1.1.3 " ,
6
6
"homepage_url" : " https://github.com/Spring3/twitch-auto-points" ,
7
7
"description" : " Automatic twitch channel points collection" ,
8
8
"permissions" : [
You can’t perform that action at this time.
0 commit comments