feat: remove get rid of `Disable Tampermonkey`

This commit is contained in:
Xmader 2020-12-06 03:03:13 -05:00
parent f6b8ab4413
commit 3f6818fde5
No known key found for this signature in database
GPG Key ID: A20B97FB9EB730E4
1 changed files with 0 additions and 10 deletions

View File

@ -19,16 +19,6 @@ if (_GM && _GM.registerMenuCommand && _GM.openInTab) {
)
}
// get rid of `Disable Tampermonkey`
const observer = new MutationObserver((mutations) => {
mutations.forEach(x => [...x.addedNodes].forEach(e => {
if (!document.querySelector('.js-page')) {
e.replaceWith(...x.removedNodes)
}
}))
})
observer.observe(document, { childList: true, subtree: true })
// script loader
new Promise(resolve => {
const id = '' + Math.random();