fix: anti-detection

This commit is contained in:
Xmader 2020-11-06 13:44:08 -05:00
parent a583f52a5e
commit cb7366228f
No known key found for this signature in database
GPG Key ID: A20B97FB9EB730E4
1 changed files with 7 additions and 2 deletions

View File

@ -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