Skip to content

Instantly share code, notes, and snippets.

@freshstylez
Forked from arafathusayn/removing_script.js
Created September 5, 2024 19:59
Show Gist options
  • Select an option

  • Save freshstylez/d80ed529e998a9b463e5a4e56cbb5e65 to your computer and use it in GitHub Desktop.

Select an option

Save freshstylez/d80ed529e998a9b463e5a4e56cbb5e65 to your computer and use it in GitHub Desktop.
Remove Tawk.to Branding (2022)
var removeBranding = function() {
try {
var element = document.querySelector("iframe[title*=chat]:nth-child(2)").contentDocument.querySelector(`a[class*=tawk-branding]`)
if (element) {
element.remove()
}
} catch (e) {}
}
var tick = 100
setInterval(removeBranding, tick)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment