Live data from Hacker News

Please disable JavaScript to view this site

heydonworks.com

191–200 of 281 posts

Re: Please disable JavaScript to view this site

#191

Earlier quoted context omitted.

On a great many web sites I have to spend the first 60 seconds on the site clicking on "X" boxes in popups to make them go away. In many cases there are actually several layers of popups obscuring the content, and some are delayed so they only pop up after you start reading the content. No I do not want to subscribe to your mailing list. No I don't want to take your survey. No I do not want to "chat" with your bot-pr…

I personally visit "a great many websites" daily, and rarely have this problem. Maybe it's uBlock doing it's job, or maybe it's the kind of site you go to?

Or maybe I need to try uBlock again rather than assuming my Pihole is as good as it gets. Thanks for the suggestion.

Re: Please disable JavaScript to view this site

#192

I must say, I don't understand the disable JS movement. I browse with JS on, and uBlock Origin to block ads. It's rare that I have any javascript-related problems in my web browsing. On the other hand, I definitely use a number of sites that rely on javascript for useful purposes. If you're worried about tracking, you can block ads and tracking scripts without disabling javascript. If you're worried about viruses, we…

I ain’t need no Turing complete sandbox on my box run random code from Internet while I skim through HyperText

Re: Please disable JavaScript to view this site

#193

Wow, something is wrong with uMatrix. I have uMatrix with 1st party javascript disabled by default. Yet this site says "Please disable JavaScript to view this site." To be sure, I curled the source and hosted it elsewhere, and my browser (firefox 84.0b4 on linux with uMatrix) still runs the JavaScript.

The JS is inline. Neither uM nor uBO static rules block that. The only way to block it is a uBO dynamic rule `no-scripting: $hostname true`, which you'll also need to be able to render the ` ` content anyway. BTW, you probably want to move off of uM given gorhill has abandoned it in favor of uBO. (I converted all my rules to a mix of uBO dynamic rules for JS and static rules for everything else, except for cookies wh…

Is there a guide for moving from uMatrix to uBO? uMatrix works exactly how I want/expect...

BTW, the site works as expected with my Linux/Firefox/uMatrix setup... the inline scripts are disabled by default and I see the page content. I'm not sure why GP had issues.

Re: Please disable JavaScript to view this site

#194

Earlier quoted context omitted.

I personally visit "a great many websites" daily, and rarely have this problem. Maybe it's uBlock doing it's job, or maybe it's the kind of site you go to?

Or maybe I need to try uBlock again rather than assuming my Pihole is as good as it gets. Thanks for the suggestion.

Of course it isn't. Pihole and similar DNS-based blockers do nothing for those kinds of spam which require performing DOM manipulations to be removed. Check uBlock settings after installing it. It has a separate "annoyances" list. I enabled everything in it a few years ago and never had a single problem. It removes all the GDPR banners, "please give us your email" popups, useless "oh I am so original" plates in forum signatures, etc. etc.

Re: Please disable JavaScript to view this site

#195
post #193

Earlier quoted context omitted.

The JS is inline. Neither uM nor uBO static rules block that. The only way to block it is a uBO dynamic rule `no-scripting: $hostname true`, which you'll also need to be able to render the ` ` content anyway. BTW, you probably want to move off of uM given gorhill has abandoned it in favor of uBO. (I converted all my rules to a mix of uBO dynamic rules for JS and static rules for everything else, except for cookies wh…

Is there a guide for moving from uMatrix to uBO? uMatrix works exactly how I want/expect... BTW, the site works as expected with my Linux/Firefox/uMatrix setup... the inline scripts are disabled by default and I see the page content. I'm not sure why GP had issues.

For a uM rule like:

    foo.com bar.com css allow
which means "allow foo.com to fetch css from bar.com", the corresponding uBO static rule is:

    @@||bar.com^$domain=foo.com,css,allow
The full list of things that can be allow/block'd by uBO is at https://github.com/gorhill/uBlock/wiki/Static-filter-syntax#...

I have a "block everything by default" rule at the top that's:

    *$css,font,frame,media,object,ping,script,websocket,xhr
    *$image,redirect=1x1.gif
    *$csp=worker-src 'none'
    @@*$1p,css,frame,image
which means:

1. Block a bunch of things by default.

2. Block images by replacing them with the built-in 1x1 GIF instead of canceling the request.

3. Disable web workers by setting the CSP worker-src.

4. Override the previous rules by allowing first-party CSS, frames and images. (The @@ means it's an override rule.)

(The fact that my default is to block everything is why the first example I gave above starts with @@ too.)

Web workers can be allowed on a per-site basis by overriding the csp directive with a reset:

    @@||foo.com^$csp
Lastly, I have a dynamic rule to allow `` tags to be rendered:

    no-scripting: * true
Then, for every static rule where I enable JS for a domain, I add a corresponding `no-scripting: $domain false` in the dynamic rules.

It's annoying to have to move between static and dynamic rules when deciding to enable JS on a site, but I'm not sure there's a better way. Neither static nor dynamic rules individually support everything that uM could do - static rules can't block inline JS nor render `` content, and dynamic rules can't block every kind of request.

Static rules are also nice in that you can have empty lines and comments and arbitrary ordering of your rules, so it's easier to group rules in sections based on the domain names, add comments, etc. Dynamic rules however are like uM's rules and are forced to be sorted by domain name with no empty lines or comments.

Re: Please disable JavaScript to view this site

#196

I must say, I don't understand the disable JS movement. I browse with JS on, and uBlock Origin to block ads. It's rare that I have any javascript-related problems in my web browsing. On the other hand, I definitely use a number of sites that rely on javascript for useful purposes. If you're worried about tracking, you can block ads and tracking scripts without disabling javascript. If you're worried about viruses, we…

> If you're worried about viruses [...] Not to mention that a host of vulnerabilities were image related a few years back (one of the original rookits exploited a TGA bug). > uBlock Origin Honestly, this is the antivirus of the web. I helped my niece set up my old computer for Minecraft today, and she was explaining how her friend had installed viruses (adware, really) 3 times. Every one of those instances was caused…

> one of the original root kits exploited a TGA bug

As a lover of old image formats and the security issues they can cause* this sounds fascinating, but some quick google searches don’t seem to surface what you are referencing. Can you share any more details?

* I once fell into discovering a memory disclosure flaw with Firefox and XBM images

Re: Please disable JavaScript to view this site

#197

I wanted to read the source, but it was all on 1 line, so I fed it to https://validator.w3.org/nu/?doc=https%3A%2F%2Fheydonworks.c...

Right click -> View source -> Ctrl+A (select all) -> Ctrl+C (Copy to clipboard) -> Open your preferred text editor (mine is Notepad++) -> Ctrl+V (Paste from clipboard) -> Replace ">" with ">\r" -> enjoy the source reading.

Takes max 10 seconds, on any site. Can you do it in less than 10 seconds using that validator?

Re: Please disable JavaScript to view this site

#198

Earlier quoted context omitted.

In case the OP wanted to know exactly how Brave's adblock is different from uBlock Origin instead of a link to the marketing page with links to other things like cryptocurrencies: Brave's browser claims a speedup over AdBlock plus, but was inspired by UBO, so the performance is fairly similar, but is baked into the browser instead of being an extension. > We therefore rebuilt our ad-blocker taking inspiration from uB…

It's also written in Rust for performance.

I use a 6 year old desktop which wasn't that great even when I built it, and a pretty terrible 8 year old laptop, and I don't have any problems with uBlock Origin's performance. I have almost every filter list enabled (except for some regional ones), which results in 153486 network and 173646 cosmetic filters total.

Re: Please disable JavaScript to view this site

#199

I must say, I don't understand the disable JS movement. I browse with JS on, and uBlock Origin to block ads. It's rare that I have any javascript-related problems in my web browsing. On the other hand, I definitely use a number of sites that rely on javascript for useful purposes. If you're worried about tracking, you can block ads and tracking scripts without disabling javascript. If you're worried about viruses, we…

Developers have been reimplementing W3C specs in Javascript. Forms don't work, password managers have no idea what's going on, back buttons are hijacked, and sometimes even scrolling is thought to be better handled by a 4MB JavaScript file than by the browser.

Whatever one thinks of that though, aren't those good reasons not to disable javascript?

Re: Please disable JavaScript to view this site

#200
A small snippet to add to your nojs sites. https://ghostbin.com/paste/kupyj

Shows a banner "You Don't Need JavaScript to Run This Site (turn it off here)"

It's a response to all the "You Need JavaScript to Run This Site" banners we see everywhere even on plain text/image sites.

Post reply on HN