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) { }
|
constructor (private templateBtn: BtnElement) { }
|
||||||
|
|
||||||
private antiDetectionText = 'Download'
|
private antiDetectionText = 'Download'
|
||||||
|
private firstBtn = true
|
||||||
|
|
||||||
private hide (el: HTMLElement) {
|
private hide (el: HTMLElement) {
|
||||||
hideFromArrFilter(el)
|
hideFromArrFilter(el)
|
||||||
|
@ -71,8 +72,12 @@ export class BtnList {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
// hide this button from Array.prototype.filter
|
// hide this button from Array.prototype.filter
|
||||||
this.hide(btn)
|
if (this.firstBtn) {
|
||||||
this.hide(textNode)
|
this.firstBtn = false
|
||||||
|
} else {
|
||||||
|
this.hide(btn)
|
||||||
|
this.hide(textNode)
|
||||||
|
}
|
||||||
|
|
||||||
const setText = (str: string): void => {
|
const setText = (str: string): void => {
|
||||||
textNode.textContent = str
|
textNode.textContent = str
|
||||||
|
|
Loading…
Reference in a new issue