Skip to content

Commit

Permalink
feat: remove get rid of Disable Tampermonkey
Browse files Browse the repository at this point in the history
  • Loading branch information
Xmader committed Dec 6, 2020
1 parent f6b8ab4 commit 3f6818f
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 3f6818f

Please sign in to comment.