• JumpyWombat@lemmy.ml
    link
    fedilink
    arrow-up
    41
    arrow-down
    1
    ·
    8 days ago

    Yes, but it would break many pages and it wouldn’t protect you from many attacks.

    It’s like wearing a gas mask: you can still be hit by a car or bitten by a dog, it ruins your walk in the park, but it makes you immune to some toxins.

  • Multiplexer@discuss.tchncs.de
    link
    fedilink
    arrow-up
    16
    ·
    edit-2
    8 days ago

    Yes, as it basically is just foreign, untrustworthy Code executed on your own PC.
    But total blocking will make most of the web unusable.
    I use a selective Script blocker extension (Noscript), that lets you instead choose which domains are allowed to use Javascript.
    Works great after the initial try-and-error setup phase.

  • JoeKrogan@lemmy.world
    link
    fedilink
    arrow-up
    10
    ·
    8 days ago

    Yes because scripts can execute on page load just by visiting the site. I block by default and only allow as needed on sites.

  • Yes. Most malicious code will be rendered by your browser using JS.

    To simplify this I run two browsers, one for logins and the other for general usage without JS enabled.

    No JS also makes surfing more private as your browser discloses far less information about your computer. Check out any of the browser fingerprinting sites with and without JS running. The details about your computer are far greater with JS enabled.

    Bonus, seldom does a paywall stop me from reading an article. You know those popup that tell you how many free articles you have left this month? Most sites use JS to keep track of that.