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:

  • deweydecibel@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    I feel like it might be worth it to open the sub back up just to post Mozilla’s official statement. This really, really needs more attention, and it needs it now. I’ve been patiently waiting for a thread to start blowing up on Reddit all day and it’s like no one is even posting anything.

  • 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