aboutsummaryrefslogtreecommitdiff
path: root/content.js
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2022-05-09 19:17:32 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2022-05-09 19:17:32 +0200
commitf6f3458611d0a4e4d85ade4a4d28e03d600f7455 (patch)
tree6f95b82427ac6034706a659611e134245ffc8763 /content.js
downloadnot-your-business-f6f3458611d0a4e4d85ade4a4d28e03d600f7455.tar.xz
Initial commit
Diffstat (limited to 'content.js')
-rw-r--r--content.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/content.js b/content.js
new file mode 100644
index 0000000..afc0aaa
--- /dev/null
+++ b/content.js
@@ -0,0 +1,10 @@
+const script = document.createElement("script")
+script.innerHTML = "console.log = console.clear = _ => {}"
+
+new MutationObserver(mutations =>
+ mutations.forEach(mutation =>
+ mutation.addedNodes.forEach(node => {
+ if (node.tagName == "HEAD")
+ node.appendChild(script)
+ })))
+ .observe(document, {childList: true, subtree: true})