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