TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Is it possible to create desktop adblocker app that hooks into Chrome

2 点作者 hibiscus4156大约 4 年前
With the advent of Google Chrome&#x27;s v3 extension manifest which will stop Ublock Origin from working in its current state, I was wondering if its possible to create a desktop adblocker program that hooks deeply into Google Chrome to provide similar functionality? It would be great if people deeply familiar with desktop development could share their feedback on the matter.<p>To clarify, I know we can use hosts file (and pi-hole) to block ads. However its too blunt of a tool. I think the key feature of adblocker browser extensions is the ability to allow ads&#x2F;trackers on certain domains and block it completely on others. This is necessary because there&#x27;s a lot of poorly coded websites (banks, phone carriers, brokerages) that simply break if say, a facebook tracker is blocked, meanwhile its perfectly fine to block it on a random blog website.<p>To narrow my question further, can a desktop application that hooks into Google Chrome be notified:<p>1. When a new tab is created 2. What URL is a tab pointed towards 3. Be able to identify all network requests of a given tab 4. Manipulate the network requests<p>It would basically be a firewall software program that is focused specifically towards the browser, with the options provided by existing adblock browser extensions (e.g., block trackers from a given domain).<p>There are a couple of benefits to this approach: 1. Since its NOT in the Chrome Web Store, its not subject to Google&#x27;s nonsense. 2. Because it&#x27;s a desktop application, it would be much faster as compared to javascript-based adblocker extensions.<p>I think this would be a great open source project.

1 comment

theandrewbailey大约 4 年前
At this point, it might be worth moving away from Chrome. If you&#x27;re concerned about blocking ads, using a browser from the world&#x27;s largest ad company sort of defeats the purpose. Maybe Firefox with uBO or uMatrix?
评论 #26571948 未加载