ublock origin_如何使用uBlock Origin阻止干扰

ublock origin

As everyone I am constantly distracted on the Internet.

作为所有人,我经常在互联网上分散注意力。

Distractions are a pain.

分心是一种痛苦。

I do use SelfControl, a nice app for Mac to block websites that I know are a source of distractions. Like Reddit and news sites. It’s common for me to open a news site when I’m facing a problem I can’t solve or I’m doing meaningful work.

我确实使用了SelfControl (一款适用于Mac的不错的应用程序)来阻止我所知道的分散注意力的网站。 像Reddit和新闻网站。 当我遇到无法解决的问题或正在从事有意义的工作时,打开新闻网站对我来说很常见。

But sometimes I can’t really block a whole site. For example, StackOverflow can’t be blocked. Yet it really annoys me with some of its UI like the network questions.

但是有时候我不能真正阻止整个站点。 例如,不能阻止StackOverflow。 然而,它的某些UI确实使我感到烦恼,例如网络问题。

Sometimes those questions are really interesting for the lizard brain looking for the optimal distraction to move you away from what you are supposed to do.

有时候,那些问题对于蜥蜴的大脑来说确实很有趣,他们正在寻找最佳的注意力分散方式,使您远离应该做的事情。

I pick this random StackOverflow page, and while I’m reading about some JS, I am interrupted by interesting questions like:

我选择了这个随机的StackOverflow页面,在阅读一些JS时,我被一些有趣的问题打扰,例如:

  • Why would a medieval civilization leave newly discovered land undeveloped?

    为什么中世纪文明会使新发现的土地不发达?

  • When a planet loses atmosphere, where does it go?

    当行星失去大气层时,它将流向何方?

I didn’t care about those topics before, but now I want to know the answer, just because I saw the question.

我以前并不关心那些主题,但是现在我想知道答案,只是因为我看到了问题。

I am just trying to fix my problem, not distract myself more with random questions from random sites in the StackExchange network.

我只是想解决我的问题,而不是让自己更多地分散来自StackExchange网络中随机站点的随机问题。

There’s a quick solution to solve this.

有一个快速的解决方案来解决这个问题。

I use uBlock Origin and I just found out how to use it to block portions of a page with a simple click.

我使用uBlock Origin只是发现了如何通过简单的单击即可使用它来阻止页面的某些部分。

Click the uBlock Origin extension icon, click the picker icon to enter element picker mode, and then select one part of the page you want to hide forever.

单击uBlock Origin扩展图标,单击选择器图标进入元素选择器模式,然后选择要永久隐藏的页面部分。

Then click the “Create” button:

然后点击“创建”按钮:

And it will be gone. Reload the page, it’s still gone.

而且它将消失。 重新加载页面,它仍然消失了。

This will bring back some bits of lost productivity until the next redesign, or when an HTML class name changes.

这将使生产力降低,直到下一次重新设计或HTML类名称更改时,才有所损失。

This should for any website, but in reality on some sites this is not that easy to make it work. The reason is the proliferation of automated CSS classes/ids. This method uses CSS to block out parts of a page. I tried on Twitter and selecting one block gave me this:

这适用于任何网站,但实际上在某些网站上,使其工作并不容易。 原因是自动CSS类/标识的泛滥。 此方法使用CSS屏蔽页面的某些部分。 我在Twitter上尝试过,选择一个区块给了我:

I’m not sure, but one could argue that this garbage is done on purpose. It changes on every rebuild, making it impossible to customize the page using this tool.

我不确定,但是有人可能会说这种垃圾是有意做的。 每次重新构建时都会更改,因此无法使用此工具自定义页面。

I can’t block Twitter completely as I sometimes use it, and I would like to block “Trends for you”, “Who to follow”, “You might like” and so on, so I can open Twitter without being sucked into an hashtag. But apparently I can’t do it this way.

我有时不能完全阻止Twitter,而我想阻止“ Trends for you”,“谁关注”,“您可能喜欢”等等,因此我可以在不被Twitter吸引的情况下打开Twitter。井号。 但是显然我不能这样。

翻译自: https://flaviocopes.com/block-distractions-ublock-origin/

ublock origin

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
一款高效的请求过滤工具:占用极低的内存和CPU,和其他常见的过滤工具相比,它能够加载并执行上千条过滤规则。 效率概述说明: https://github.com/gorhill/uBlock/wiki/uBlock-vs.-ABP:-efficiency-compared 用法:点击弹出窗口中的电源按钮,uBlock 将对当前网页永久禁用/启用过滤功能。 它只控制当前网页的请求过滤,而不是一个全局开关。 它只控制当前网页的请求过滤,而不是一个全局开关。 *** 它不只是一个广告拦截工具,它还可以从 hosts 文件里读取和创建过滤规则。 初始默认加载和执行下列过滤规则列表: - EasyList - Peter Lowe’s Ad server list - EasyPrivacy - Malware domains 这里还有更多的规则列表供你选择: - Fanboy’s Enhanced Tracking List - Dan Pollock’s hosts file - hpHosts’s Ad and tracking servers - MVPS HOSTS - Spam404 - 等等 当然,启用越多的过滤规则就会产生越高的内存占用。 然而,即使再添加 Fanboy 额外的两个规则列表,如 hpHosts’s Ad 和 tracking servers,uBlock 的内存占用依然比其他常见的过滤工具要低的多。 另外请注意,选择一些额外的列表可能会导致网页破损可能性增高 —— 尤其是那些通常被用作 hosts 文件的列表。 *** 没有这些过滤规则列表,这个扩展就没有了意义。 所以如果你真的想做点贡献,想想那些维护过滤规则的人们,是他们让所有人能够免费使用这一切变得可能。 *** 免费。 遵从 GPLv3 公共许可协议开源。 一切为了用户。 贡献者 @ Github: https://github.com/gorhill/uBlock/graphs/contributors 贡献者 @ Crowdin: https://crowdin.net/project/ublock *** 它还是一个相当早期的版本,在您评论的时候请记住这一点。 项目更新日志: https://github.com/gorhill/uBlock/releases
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值