File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
Expand file tree Collapse file tree 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) {
33} ;
44var url = window . location . hostname ;
55if ( url . includes ( 'meet' ) ) {
6- if ( document . getElementsByClassName ( 'wnPUne ' ) . length > 0 ) {
6+ if ( document . getElementsByClassName ( 'uGOf1d ' ) . length > 0 ) {
77 var meet = true ;
88 } else {
99 var meet = false ;
1010 }
1111}
12- if ( document . getElementsByClassName ( 'wnPUne ' ) . length > 0 ) {
12+ if ( document . getElementsByClassName ( 'uGOf1d ' ) . length > 0 ) {
1313 chrome . runtime . sendMessage ( {
1414 meet : meet ,
15- noOfParticipants : document . querySelector ( '.wnPUne ' ) . innerHTML ,
15+ noOfParticipants : document . querySelector ( '.uGOf1d ' ) . innerHTML ,
1616 running : localStorage . getItem ( 'running' )
1717 } ) ;
1818
Original file line number Diff line number Diff line change 11function exit ( ) {
22 if ( running ) {
3- if ( requiredParticipantToExit > parseInt ( document . querySelector ( '.wnPUne ' ) . innerHTML ) ) {
3+ if ( requiredParticipantToExit > parseInt ( document . querySelector ( '.uGOf1d ' ) . innerHTML ) ) {
44 localStorage . removeItem ( 'running' ) ;
5- document . querySelector ( '.GaONte ' ) . click ( )
5+ document . querySelector ( 'button[aria-label="Leave call"] ' ) . click ( )
66 clearInterval ( exitInt ) ;
77 }
88 }
99}
1010
1111var requiredParticipantToExit = parseInt ( localStorage . getItem ( "requiredParticipantToExit" ) ) ;
1212var running = localStorage . getItem ( 'running' ) ;
13- console . log ( requiredParticipantToExit , parseInt ( document . querySelector ( '.wnPUne' ) . innerHTML ) ) ;
1413var exitInt = setInterval ( exit , 1000 ) ;
You can’t perform that action at this time.
0 commit comments