Skip to content

Instantly share code, notes, and snippets.

@arafathusayn
Last active May 7, 2024 23:42
Show Gist options
  • Save arafathusayn/663217f383b02017d20be6ba465959d4 to your computer and use it in GitHub Desktop.
Save arafathusayn/663217f383b02017d20be6ba465959d4 to your computer and use it in GitHub Desktop.
Hide TidioChat Branding (for new theme)
function hideTdo() {
var timer = null;
var target = document.querySelector('#tidio-chat iframe');
if(!target) {
if(timer !== null) {
clearTimeout(timer);
}
timer = setTimeout(hideTdo, 500);
return;
} else {
var timer2 = null;
var tdo = document.querySelector('#tidio-chat iframe')
.contentDocument
.querySelector('a[href*="tidio.com/powered"]');
if(!tdo) {
if(timer2 !== null) {
clearTimeout(timer2);
}
timer2 = setTimeout(hideTdo, 1);
return;
}
document.querySelector('#tidio-chat iframe')
.contentDocument
.querySelector('a[href*="tidio.com/powered"]')
.remove();
return true;
}
}
hideTdo();
setInterval(hideTdo, 10);
@MACTECHWORLD
Copy link

Hey guys, I'm the author of this little gist. I see, some of you are saying it's not working if you reopen the chat widget. To solve this, all you need to do is set an interval like this:

setInterval(hideTdo, 10);

I also updated the gist code and tested on the latest chat window found here: https://www.tidio.com/panel/register

Have a nice day you all.

Regards,
Arafat Husayn,
CTO, Tripovy.com

Hey guys, I'm the author of this little gist. I see, some of you are saying it's not working if you reopen the chat widget. To solve this, all you need to do is set an interval like this:

setInterval(hideTdo, 10);

I also updated the gist code and tested on the latest chat window found here: https://www.tidio.com/panel/register

Have a nice day you all.

Regards,
Arafat Husayn,
CTO, Tripovy.com

Can you make a script to add our on branding in live chat

@Rakeshbagri
Copy link

working

@marcetoral
Copy link

Working! Thanks <3

@Agboifoe
Copy link

Is it posible to replace the tidio with another name?

@alphadimension
Copy link

Thank you man!

@NobleSlevin
Copy link

This worked great! Could this same method be used to inject custom CSS and adjust how the widget looks?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment