fix: anti-detection
This commit is contained in:
		
							parent
							
								
									a583f52a5e
								
							
						
					
					
						commit
						cb7366228f
					
				
					 1 changed files with 7 additions and 2 deletions
				
			
		|  | @ -42,6 +42,7 @@ export class BtnList { | |||
|   constructor (private templateBtn: BtnElement) { } | ||||
| 
 | ||||
|   private antiDetectionText = 'Download' | ||||
|   private firstBtn = true | ||||
| 
 | ||||
|   private hide (el: HTMLElement) { | ||||
|     hideFromArrFilter(el) | ||||
|  | @ -71,8 +72,12 @@ export class BtnList { | |||
|       }) | ||||
|     }) | ||||
|     // hide this button from Array.prototype.filter
 | ||||
|     this.hide(btn) | ||||
|     this.hide(textNode) | ||||
|     if (this.firstBtn) { | ||||
|       this.firstBtn = false | ||||
|     } else { | ||||
|       this.hide(btn) | ||||
|       this.hide(textNode) | ||||
|     } | ||||
| 
 | ||||
|     const setText = (str: string): void => { | ||||
|       textNode.textContent = str | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue