A page has the following in the html:
<script type="text/javascript">
// some code
</script>
My greasemonkey script needs to prevent that script from running. How can I do this?
Update: I understand that in the general case this is impossible. However, in my specific case, I may have a loophole?
<script type="text/javascript">
if (!window.devicePixelRatio) {
// some code that I -don't- want to be run, regardless of the browser
}
</script>
Is there some way I can define window.devicePixelRatio
before the embedded script runs?