Created
September 19, 2018 13:31
-
-
Save AndreiTelteu/f5b0ee9dc839280e51d130eb6c5a3553 to your computer and use it in GitHub Desktop.
disable some bad inline code that ruins websites
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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