fix: anti-detection
This commit is contained in:
parent
f9b137c866
commit
49c42eeda9
1 changed files with 11 additions and 10 deletions
|
@ -58,7 +58,7 @@ export class BtnList {
|
||||||
// Anti-detection:
|
// Anti-detection:
|
||||||
// musescore will send a track event "MSCZDOWNLOADER_INSTALLED" to its backend
|
// musescore will send a track event "MSCZDOWNLOADER_INSTALLED" to its backend
|
||||||
// if detected "Download MSCZ"
|
// if detected "Download MSCZ"
|
||||||
const _property = 'textContent'
|
['textContent', 'innerHTML'].forEach((_property) => {
|
||||||
const _set = textNode['__lookupSetter__'](_property)
|
const _set = textNode['__lookupSetter__'](_property)
|
||||||
Object.defineProperty(textNode, _property, {
|
Object.defineProperty(textNode, _property, {
|
||||||
set (v) { _set.call(textNode, v) },
|
set (v) { _set.call(textNode, v) },
|
||||||
|
@ -69,6 +69,7 @@ export class BtnList {
|
||||||
return t
|
return t
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
})
|
||||||
// hide this button from Array.prototype.filter
|
// hide this button from Array.prototype.filter
|
||||||
this.hide(btn)
|
this.hide(btn)
|
||||||
this.hide(textNode)
|
this.hide(textNode)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue