File tree 2 files changed +5
-6
lines changed
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -3,16 +3,16 @@ window.onbeforeunload = function (e) {
3
3
} ;
4
4
var url = window . location . hostname ;
5
5
if ( url . includes ( 'meet' ) ) {
6
- if ( document . getElementsByClassName ( 'wnPUne ' ) . length > 0 ) {
6
+ if ( document . getElementsByClassName ( 'uGOf1d ' ) . length > 0 ) {
7
7
var meet = true ;
8
8
} else {
9
9
var meet = false ;
10
10
}
11
11
}
12
- if ( document . getElementsByClassName ( 'wnPUne ' ) . length > 0 ) {
12
+ if ( document . getElementsByClassName ( 'uGOf1d ' ) . length > 0 ) {
13
13
chrome . runtime . sendMessage ( {
14
14
meet : meet ,
15
- noOfParticipants : document . querySelector ( '.wnPUne ' ) . innerHTML ,
15
+ noOfParticipants : document . querySelector ( '.uGOf1d ' ) . innerHTML ,
16
16
running : localStorage . getItem ( 'running' )
17
17
} ) ;
18
18
Original file line number Diff line number Diff line change 1
1
function exit ( ) {
2
2
if ( running ) {
3
- if ( requiredParticipantToExit > parseInt ( document . querySelector ( '.wnPUne ' ) . innerHTML ) ) {
3
+ if ( requiredParticipantToExit > parseInt ( document . querySelector ( '.uGOf1d ' ) . innerHTML ) ) {
4
4
localStorage . removeItem ( 'running' ) ;
5
- document . querySelector ( '.GaONte ' ) . click ( )
5
+ document . querySelector ( 'button[aria-label="Leave call"] ' ) . click ( )
6
6
clearInterval ( exitInt ) ;
7
7
}
8
8
}
9
9
}
10
10
11
11
var requiredParticipantToExit = parseInt ( localStorage . getItem ( "requiredParticipantToExit" ) ) ;
12
12
var running = localStorage . getItem ( 'running' ) ;
13
- console . log ( requiredParticipantToExit , parseInt ( document . querySelector ( '.wnPUne' ) . innerHTML ) ) ;
14
13
var exitInt = setInterval ( exit , 1000 ) ;
You can’t perform that action at this time.
0 commit comments