SEBWIN-623, SEBWIN-628, SEBWIN-641, #521: Fixed hacks to control Zoom user interface.
This commit is contained in:
		
							parent
							
								
									b69280731a
								
							
						
					
					
						commit
						669b51d5ff
					
				
					 1 changed files with 41 additions and 20 deletions
				
			
		|  | @ -18,30 +18,43 @@ | ||||||
| 			var join = 0; | 			var join = 0; | ||||||
| 
 | 
 | ||||||
| 			function controlUserInterface(_) { | 			function controlUserInterface(_) { | ||||||
| 				var appSignal = document.getElementById('app-signal'); | 				var audioButton = document.getElementsByClassName('join-audio-container__btn')[0]; | ||||||
| 				var audioButton = document.getElementsByClassName('join-audio-by-voip__join-btn')[0]; | 				var audioContainer = audioButton ? audioButton.parentElement : null; | ||||||
| 				var audioContainer = document.getElementsByClassName('join-audio-container')[0]; | 				var chat = document.querySelector("div[feature-type='chat']"); | ||||||
|  | 				var fullScreenButton = document.getElementsByClassName('full-screen-icon')[0]; | ||||||
|  | 				var info = document.getElementsByClassName('meeting-info-container')[0]; | ||||||
|  | 				var joinAudioButton = document.getElementsByClassName('join-audio-by-voip__join-btn')[0]; | ||||||
| 				var joinButton = document.getElementsByClassName('joinWindowBtn')[0]; | 				var joinButton = document.getElementsByClassName('joinWindowBtn')[0]; | ||||||
| 				var leave = document.getElementsByClassName('footer__leave-btn-container')[0]; | 				var leave = document.getElementsByClassName('footer__leave-btn-container')[0]; | ||||||
| 				var more = document.getElementsByClassName('more-button')[0]; | 				var more = document.querySelector("div[feature-type='more']"); | ||||||
| 				var participantControls = document.getElementsByClassName('participants-item__buttons')[0]; | 				var participants = document.querySelector("div[feature-type='participants']"); | ||||||
| 				var raiseHandContainer = document.getElementsByClassName('participants-section-container__participants-footer')[0]; | 				var reaction = document.querySelector("div[feature-type='reaction']"); | ||||||
|  | 				var settings = document.querySelector("div[feature-type='settings']"); | ||||||
|  | 				var sharing = document.querySelector("div[feature-type='sharing']"); | ||||||
| 				var videoButton = document.getElementsByClassName('send-video-container__btn')[0]; | 				var videoButton = document.getElementsByClassName('send-video-container__btn')[0]; | ||||||
| 				var videoContainer = document.getElementsByClassName('send-video-container')[0]; | 				var videoContainer = videoButton ? videoButton.parentElement : null; | ||||||
| 
 |  | ||||||
| 				if (appSignal) { |  | ||||||
| 					appSignal.style.visibility = 'hidden'; |  | ||||||
| 				} |  | ||||||
| 
 |  | ||||||
| 				if (audioButton && !'%_AUDIO_MUTED_%' && audioJoin < 500) { |  | ||||||
| 					audioButton.click(); |  | ||||||
| 					audioJoin++; |  | ||||||
| 				} |  | ||||||
| 
 | 
 | ||||||
| 				if (audioContainer && !'%_AUDIO_MUTED_%') { | 				if (audioContainer && !'%_AUDIO_MUTED_%') { | ||||||
| 					audioContainer.style.visibility = 'hidden'; | 					audioContainer.style.visibility = 'hidden'; | ||||||
| 				} | 				} | ||||||
| 
 | 
 | ||||||
|  | 				if (chat && !'%_ALLOW_CHAT_%') { | ||||||
|  | 					chat.style.visibility = 'hidden'; | ||||||
|  | 				} | ||||||
|  | 
 | ||||||
|  | 				if (fullScreenButton) { | ||||||
|  | 					fullScreenButton.style.visibility = 'hidden'; | ||||||
|  | 				} | ||||||
|  | 
 | ||||||
|  | 				if (info) { | ||||||
|  | 					info.style.visibility = 'hidden'; | ||||||
|  | 				} | ||||||
|  | 
 | ||||||
|  | 				if (joinAudioButton && !'%_AUDIO_MUTED_%' && audioJoin < 500) { | ||||||
|  | 					joinAudioButton.click(); | ||||||
|  | 					audioJoin++; | ||||||
|  | 				} | ||||||
|  | 
 | ||||||
| 				if (joinButton && join < 500) { | 				if (joinButton && join < 500) { | ||||||
| 					joinButton.click(); | 					joinButton.click(); | ||||||
| 					join++; | 					join++; | ||||||
|  | @ -55,12 +68,20 @@ | ||||||
| 					more.style.visibility = 'hidden'; | 					more.style.visibility = 'hidden'; | ||||||
| 				} | 				} | ||||||
| 
 | 
 | ||||||
| 				if (participantControls) { | 				if (participants) { | ||||||
| 					participantControls.style.visibility = 'hidden'; | 					participants.style.visibility = 'hidden'; | ||||||
| 				} | 				} | ||||||
| 
 | 
 | ||||||
| 				if (raiseHandContainer && !'%_ALLOW_RAISE_HAND_%') { | 				if (reaction) { | ||||||
| 					raiseHandContainer.style.visibility = 'hidden'; | 					reaction.style.visibility = 'hidden'; | ||||||
|  | 				} | ||||||
|  | 
 | ||||||
|  | 				if (settings) { | ||||||
|  | 					settings.style.visibility = 'hidden'; | ||||||
|  | 				} | ||||||
|  | 
 | ||||||
|  | 				if (sharing) { | ||||||
|  | 					sharing.style.visibility = 'hidden'; | ||||||
| 				} | 				} | ||||||
| 
 | 
 | ||||||
| 				if (videoButton && !'%_VIDEO_MUTED_%' && videoJoin < 500) { | 				if (videoButton && !'%_VIDEO_MUTED_%' && videoJoin < 500) { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Damian Büchel
						Damian Büchel