In my website, I am using tawk.to
I want to ovveride its css so that the widget is not displayed when the user prints the page. However the widget container comes with an inline style "display: block !important;" which I am unable to override.
The following code does not work. Any idea?
<!--Start of Tawk.to Script-->
<script type="text/javascript">
var $_Tawk_API={},$_Tawk_LoadStart=new Date();
(function(){
var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];
s1.async=true;
s1.src='https://embed.tawk.to/my_id/default';
s1.charset='UTF-8';
s1.setAttribute('crossorigin','*');
s0.parentNode.insertBefore(s1,s0);
})();
$(function(){
$('#tawkchat-iframe-container').removeProp('display');
console.log('removed'); //actually logged but the property is not removed.
});
</script>