Created
September 26, 2021 15:53
-
-
Save Qofar/8a6f57b90b7677f69e18d2d52d1567c1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const actualCode = ` | |
delete window.navigator.__proto__.brave; | |
Object.defineProperty(window.navigator, 'plugins', { | |
get: () => { | |
const plugins = { | |
length: 0, | |
__proto__: PluginArray.prototype, | |
}; | |
return plugins; | |
} | |
}); | |
`; | |
const script = document.createElement('script'); | |
script.textContent = actualCode; | |
(document.head||document.documentElement).appendChild(script); | |
script.remove(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment