JavaScript
x
19
19
1
<!-- GetButton.io widget -->
2
<script type="text/javascript">
3
(function () {
4
var options = {
5
whatsapp: "+123456789", // WhatsApp number
6
telegram: "username", // Telegram bot username
7
call_to_action: "Need Help ?", // Call to action
8
button_color: "#A8CE50", // Color of button
9
position: "left", // Position may be 'right' or 'left'
10
order: "whatsapp,telegram", // Order of buttons
11
};
12
var proto = document.location.protocol, host = "getbutton.io", url = proto + "//static." + host;
13
var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = url + '/widget-send-button/js/init.js';
14
s.onload = function () { WhWidgetSendButton.init(host, proto, options); };
15
var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x);
16
})();
17
</script>
18
<!-- /GetButton.io widget -->
19
If we use this free getbuttton.io widget then it shows getbutton.io branding so, is there any way to remove that branding using JS?
Advertisement
Answer
it will take like 2 seconds to load. so you can do something like this.
JavaScript
1
5
1
setTimeout(()=>{
2
var x = document.getElementsByClassName("hasyTc");
3
x[0].remove();
4
},2000)
5
you can increase 2sec to 5 if it takes more time to load.