Skip to content

Instantly share code, notes, and snippets.

@AndreiTelteu
Created September 19, 2018 13:31
Show Gist options
  • Save AndreiTelteu/f5b0ee9dc839280e51d130eb6c5a3553 to your computer and use it in GitHub Desktop.
Save AndreiTelteu/f5b0ee9dc839280e51d130eb6c5a3553 to your computer and use it in GitHub Desktop.
disable some bad inline code that ruins websites
<script>
function disableBadInlineCode() {
$('style:contains("display: none!important")').each(function (i) { this.disabled = true; });
};
document.addEventListener('DOMContentLoaded', disableBadInlineCode, false);
setInterval(disableBadInlineCode, 1000);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment