Skip to content

Instantly share code, notes, and snippets.

@adamschwartz
Last active October 14, 2024 21:14
Show Gist options
  • Save adamschwartz/67732b6ed1e23dccc40140a851aab78f to your computer and use it in GitHub Desktop.
Save adamschwartz/67732b6ed1e23dccc40140a851aab78f to your computer and use it in GitHub Desktop.
(() => {
let root = document.documentElement
let timeout
let remove = () => {
if (root.children[2]?.tagName === 'DIV') {
if (console && console.clear) console.clear()
return root.children[2].remove()
}
timeout = setTimeout(remove)
}
remove()
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment