Since it seems #Google has decided to uni-laterally force through their new anti-#adblock #DRM euphemistically named “Web environment integrity”, I decided to add a little bit of code to my website that blanks out the page and displays a protest message with a link to the firefox download page when you visit it from a browser with this DRM feature. Here’s the source inside one toot, feel free to copy and put it at the end of your website’s before the closing tag:

  • zeus ⁧ ⁧ ∽↯∼
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 year ago

    i wonder if there’s a way to do this without even using js

    for example: i currently have an element with the class .advert-container so it’s blocked by adblockers; so if anyone can see it it’s a warning that they aren’t currently using an adblocker and why it’s a good idea

    it’d be nice if i could do something similar with this (or some equivalent of a <noscript> tag