Content deleted by creator due to lemmy.ml tolerating brigades from hexbear

  • fiat_lux@kbin.social
    link
    fedilink
    arrow-up
    19
    ·
    edit-2
    1 year ago

    First of all, why would they want to do this? It seems like an empty spiteful gesture that profits them in no way and, if anything, prevents people from using their site.

    It is unfortunately a very old legacy workaround for CSS scaling problems in some browser device combinations. It has historically been difficult to convince stakeholders they’re actively hurting their user base. Thankfully, the law in many places is catching up.

    Here is what you likely want to remove, if you know how to edit the HTML: ``

    Old explanation: CSS Tricks

    Edit: if you encounter this though, odds are the rest of the site will be pretty hostile to your needs as well though.

      • fiat_lux@kbin.social
        link
        fedilink
        arrow-up
        7
        ·
        1 year ago

        Luckily for you, html does not need to be compiled and your built-in browser inspector is all you need to start messing with any webpage. Deleting a single line and setting what happens is a great way to start too.

        I see you’re a Firefox user, if you go to your shitty URL on desktop, right click somewhere on the page and select “Inspect Element”, a new window/docked window will pop up. (Or open the Inspector using a different method. This is the HTML and CSS page viewer and editor. One pane will have your highlighted/inspected element HTML. Ignore the element you highlighted, and scroll up to the big chunk of tags near the top of the HTML document - that's where you'll likely find the source of your pain, somewhere between the opening and closing tag. There should be a search box nearby in the UI you can use to do that. When you find the tag you want to change, right click on it (or otherwise open the context menu) choose Delete Node, and see if that has improved your zoom experience.

        Mobile is a bit trickier but it can still be done in Firefox… I think.

        Anything you edit won’t survive a page refresh or navigation to a new page though. Which is good, because you can’t actually ruin anything and can mess around deleting things on whatever page you want to your heart’s content.

        It’s not the only technique used to stop zooming, sadly, so no guarantees. But it is a common technique that’s very easy to work around in a few seconds, and can lead to hours of fun. And strangely, entire careers.

          • fiat_lux@kbin.social
            link
            fedilink
            arrow-up
            2
            ·
            1 year ago

            Yeah that one will only let you look, you need the Inspector tools secret magic to make viewable changes on the fly.

              • fiat_lux@kbin.social
                link
                fedilink
                arrow-up
                2
                ·
                edit-2
                1 year ago

                Huh, thankyou for introducing me to Eruda, this is a nice looking tool. I wouldn’t install it as a plugin just for this, but luckily you don’t need to. Do not use this tool on any page where you’re entering information or viewing private info though, these are dangerous powertools and allowing plugins to do arbitrary JS evaluation is like not using a safety guard.

                This should work though:

                1. Make a new bookmark on mobile Firefox
                2. Paste as the location: javascript:(function () { var script = document.createElement('script'); script.src="https://cdn.jsdelivr.net/npm/eruda"; document.body.append(script); script.onload = function () { eruda.init(); } })();

                This loads Eruda scoped to that tab only from their CDN, which hopefully limits possible damage it can do.

                Here is what you need Eruda to do: const naughtyMetaTag = document.head.querySelectorAll('meta[name="viewport"]'); !!naughtyMetaTag ?? naughtyMetaTag[0].setAttribute('content', '');

                It will fail silently if it doesn’t find the tag with the name viewport, otherwise it will empty the contents of it and you’ll be able to zoom.

                The much safer alternative is to use Android’s built in accessibility zoom functionality for this specific task though, to be honest.

                Edit: on second thought, we can avoid Eruda altogether for this task. I haven’t tested this at all but try bookmarking this instead javascript:(function () { const naughtyMetaTag = document.head.querySelectorAll('meta[name="viewport"]'); !!naughtyMetaTag ?? naughtyMetaTag[0].setAttribute('content', ''); })(); and visiting it when on a bad page. Much safer and worth trying first.