Skip to content
Advertisement

How to remove getbutton.io branding

<!-- GetButton.io widget -->
<script type="text/javascript">
    (function () {
        var options = {
            whatsapp: "+123456789", // WhatsApp number
            telegram: "username", // Telegram bot username
            call_to_action: "Need Help ?", // Call to action
            button_color: "#A8CE50", // Color of button
            position: "left", // Position may be 'right' or 'left'
            order: "whatsapp,telegram", // Order of buttons
        };
        var proto = document.location.protocol, host = "getbutton.io", url = proto + "//static." + host;
        var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = url + '/widget-send-button/js/init.js';
        s.onload = function () { WhWidgetSendButton.init(host, proto, options); };
        var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x);
    })();
</script>
<!-- /GetButton.io widget -->

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.

setTimeout(()=>{
    var x = document.getElementsByClassName("hasyTc");
    x[0].remove();
},2000)

you can increase 2sec to 5 if it takes more time to load.

Advertisement