Hacker News new | ask | show | jobs
by dmc 5462 days ago
Is there a way to block the page before loading? I see a (long) flash of the webpage before the block screen appears in chromium 11.0.696.68 (84545) Ubuntu 10.04

Otherwise, I like this plugin. I used to block websites via /etc/hosts, but it gets annoying having to jump into sudo and edit the file on my lunch, and sometimes, I forget to reenable it.

Like now.

2 comments

I used to have a bash script that would automatically comment out and uncomment lines in /etc/hosts (using sed, as I recall), as well as having an automatic timer so it would block access after ten minutes or so. Come to think of it, I could probably have also set it up so it would only run during certain blocks of time (it wasn't effective because it was too easy to run).

(It's probably predictable that my response to this was wondering why it's superior to host-file blocking).

There is a way, but I haven't found it yet... It is how they do it for AdBlock...