TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Explanation of the state of uBlock Origin and other blockers for Safari

645 pointsby n1000over 5 years ago

37 comments

Zelphyrover 5 years ago
There is a lot of confusion around this issue. Some people are taking this to mean that Safari has completely banned ad blockers, which isn&#x27;t the case. Instead they&#x27;ve switched to a model that matches what they&#x27;ve been doing on iOS which is content blocking[1]. Content blockers give Safari a list of triggers and actions to take when something matches a trigger.<p>For example; you can have a trigger which contains a regex that matches all images and stylesheets for a given domain. The action can be one of several options, one of which is to block that item.<p>One advantage this technique provides over ad blocking is that there&#x27;s no data to be phoned back home. It is, in essence, a mask that is applied to a web page before rendering. Also, it&#x27;s very lightweight. It&#x27;s literally just a JSON document which means Safari can perform better.<p>Now, I&#x27;ll admit it&#x27;s not foolproof. Apple and the content blockers have some work to do on it. I&#x27;m noticing some issues with it myself after having upgraded to Safari 13. But from a privacy perspective, I personally much prefer this technique.<p>1: <a href="https:&#x2F;&#x2F;developer.apple.com&#x2F;documentation&#x2F;safariservices&#x2F;creating_a_content_blocker" rel="nofollow">https:&#x2F;&#x2F;developer.apple.com&#x2F;documentation&#x2F;safariservices&#x2F;cre...</a>
评论 #21028947 未加载
评论 #21026573 未加载
评论 #21033180 未加载
评论 #21032654 未加载
评论 #21046712 未加载
评论 #21048527 未加载
评论 #21035612 未加载
评论 #21028802 未加载
评论 #21032784 未加载
评论 #21026763 未加载
lmedinasover 5 years ago
Well i have no complains about Safari but their Extension system is really costing them users. At this point I uBlock Origin is by far the most reliable AdBlocker you can find and my having the developers explaining that in the future maybe only Firefox will support it it&#x27;s kinda of sad.<p>Of course we know that Google has to make money from Ads so its understandable but what about Apple ? They are putting heavy focus in privacy, would it be good if they open their browser to make sure their users will not move to Chrome&#x2F;Firefox or other browser ?
评论 #21025662 未加载
评论 #21026030 未加载
评论 #21026534 未加载
评论 #21026228 未加载
评论 #21025589 未加载
评论 #21026324 未加载
_Understated_over 5 years ago
This is not good!<p>I thought Apple were way out in front when it came to tracking and whatnot...<p>My wife uses a MAC at home and was complaining about how slow our internet was (70Mb down... not slow) a while back.<p>She mainly looks at news sites and when I saw what she was looking at I knew the problem wasn&#x27;t the internet connection.<p>The entire page, apart from a tiny bit in the middle, was cluttered with moving shit!<p>I installed uBlock Origin and... the result was fantastic: pages loaded in a fraction of the time.<p>When she realised that the articles were a tiny proportion of the downloaded crap she realised she&#x27;d been missing out for so long.<p>Once, when the MAC went back for repair, it was replaced with a new one and OMG the horror when she fired up Safari and it had no blocker... UBlock Origin to the rescue.<p>I agree with one of the other comments on here: The web is utterly unusable without it.
评论 #21025556 未加载
评论 #21025577 未加载
评论 #21026748 未加载
评论 #21026404 未加载
评论 #21026437 未加载
评论 #21029034 未加载
simiasover 5 years ago
It&#x27;s interesting that Google and Apple seem to be converging on this issue (ad-blocking extensions) even though they&#x27;re probably coming from two different directions.<p>Google probably wants to discourage ad-blocking because it&#x27;s a threat to their business model. Apple just dislikes not having full control on what the users run (and sometimes for good reasons, they probably want to avoid malware extensions). Still, in the end they both end up with subpar ad blocking facilities as a result.<p>Firefox really needs to become a worthy competitor once again. And no I don&#x27;t consider forks of Chromium to be reasonable alternatives in the long term, at least until those teams prove that they can maintain a deep fork of the browser on their own which will be necessary if they need to maintain functionality that Google removes from upstream.
评论 #21025730 未加载
评论 #21026392 未加载
评论 #21025682 未加载
评论 #21032139 未加载
DCKingover 5 years ago
I like using Safari and uBlock Origin. I notice that I am not a power user of browsers - give tabs, a forward and backward button and any adblocker and I used to be happy. This mean that I could easily use Safari and Firefox - I prefer not to use Chrome derivatives to do my part in preventing developers from forgetting about other browsers.<p>However, I have recently become a power user of uBlock Origin specifically to curtail the general attention hacking on the web. uBlock Origin is already a very great ad blocker in its default installation, but I&#x27;ve recently got into using its powerful cosmetic filters to block out &quot;attention hacking features&quot;, such as (all of) YouTube&#x27;s recommendations, comments on various sites, and stuff like the &quot;Hot Network Questions&quot; on StackOverflow. Things I&#x27;ve discovered that are too good at distracting my mind. With a few uBlock Origin cosmetic filter rules, those website elements remain hidden when I visit them.<p>I wonder if it&#x27;s possible to continue using Safari with my own distraction filters. It&#x27;s a shame if I have to stop using it.
评论 #21026491 未加载
评论 #21027252 未加载
评论 #21026069 未加载
评论 #21029328 未加载
RodgerTheGreatover 5 years ago
This is a serious impending problem for Safari users. The web has become nearly unusable without a high-quality, uncompromised ad blocker like uBO.
评论 #21025789 未加载
评论 #21025585 未加载
评论 #21025487 未加载
评论 #21025566 未加载
评论 #21025405 未加载
oedmarapover 5 years ago
A while ago I uninstalled uBO&#x2F;PrivacyBadger and switched to using a combination of NextDNS [0] and Brave for daily driving (Firefox for work because FF containers) and the adblocking + browsing experience has been nothing short of stellar.<p>NextDNS takes the load off outside the network perimeter and concatenates all the many lists and trackers in one dashboard. I&#x27;m free to use other gentler add-ons in the browser if I so desire, rather than have the DOM split apart and my local machine do all the heavy lifting.<p>The best thing about using DNS-level blocking is that it&#x27;s an elegant solution across all my devices, especially when paired with a VPN that enforces those resolvers.<p>[0] <a href="https:&#x2F;&#x2F;nextdns.io" rel="nofollow">https:&#x2F;&#x2F;nextdns.io</a>
评论 #21026319 未加载
评论 #21026540 未加载
评论 #21026357 未加载
评论 #21026346 未加载
makecheckover 5 years ago
This isn’t just about applying some regexes, it’s about disabling utterly obnoxious “features” of web sites.<p>Until a content blocker can offer a right-click “block THIS element” feature, they won’t come close to the power of uBO. The UI alone for highlighting the exact offender in the document tree is brilliant. Every time a “newsletter” pops in my face, I can banish it forever. Every unnecessary floating space-stealing navigation bar, I can banish, returning the screen space that was stolen from me. Every scroll-with-the-article Facebook&#x2F;Twitter gadget can be similarly removed.
评论 #21029260 未加载
wdr1over 5 years ago
Interesting to see the difference in how HN reacts to changes like this in Safari vs Chrome.<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=18973477" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=18973477</a>
评论 #21029741 未加载
rubyfanover 5 years ago
I’ve been using the MacOS Beta for a while and lack of uBlock Origin has made browsing terrible again. Ads everywhere now and I had forgotten how bad it was.<p>Firefox has gotten pretty good now, the only problem is no integration with Keychain which is a serious downside. On iOS I use Safari but with BlockBear and Firefox Focus as content blockers. So my experience there is pretty good. iCloud Keychain makes my password situation a lot better going between iOS and MacOS... I’m not sure I can achieve the same using Firefox right now.
评论 #21025737 未加载
评论 #21027499 未加载
评论 #21025916 未加载
kgwxdover 5 years ago
Apple&#x27;s goal is not hackability, it&#x27;s to provide a safe environment for users to generate revenue. It&#x27;s Dave &amp; Buster&#x27;s. That was the idea for mobile from day one. They did a great job out of the gate and they&#x27;re getting better at it every year. They&#x27;ve had to work backwards in desktop because people used to expect full-control of those machines, but they&#x27;re slowly bringing users around.<p>If you want to practice self-defense and weaponry, don&#x27;t do it at Dave &amp; Buster&#x27;s.
hackworksover 5 years ago
I went through the process of tearing away from Chrome. I only aspect that was holding me back was my stored passwords in Chrome and shared seamlessly with Android password manager.<p>Exported the passwords and imported it into Enpass. That was the first step in liberation.<p>I then decided to keep my personal and work related browsing separate especially since both require a google account (Gsuite at work). I wanted an ability to open the browser of my choice based on the URL I click and work anywhere on MacOS.<p>I implemented a simple URL handler that I register as default browser and that opens the clicked URL in appropriate browser:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;hackworks&#x2F;chromer" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;hackworks&#x2F;chromer</a><p>It is not a very polished implementation but has been working reliably so far.<p>With that, I am now able to switch between any browser without any lock in.
评论 #21027061 未加载
Wowfunhappyover 5 years ago
One alternative I haven&#x27;t seen mentioned is Glimmerblocker[1]. There may be good reason for this—it looks like the last commit was a few years ago—but I know it still works in High Sierra at least. However, it&#x27;s been a long time since I used the program regularly.<p>Glimmerblocker is unique in that it doesn&#x27;t use Safari APIs—it creates a proxy to filter traffic before it gets to the browser. Despite that, it&#x27;s quite powerful; I remember using it to make an extensive Javascript patch for one site.<p>(I vaguely remember something about Glimmberblocker needing SIP to be disabled, but there&#x27;s nothing about that on their website now, so I&#x27;m not sure. I keep SIP off anyway, so I wouldn&#x27;t know.)<p>---<p>1: <a href="https:&#x2F;&#x2F;glimmerblocker.org" rel="nofollow">https:&#x2F;&#x2F;glimmerblocker.org</a>
Someoneover 5 years ago
So, if I understand things correctly, the change is from “browser passes URL to blocker, blocker runs arbitrary code to decide whether to block it” to “blocker passes description of URLs to block to browser, browser runs code”?<p>In the (somewhat) analogous case of antivirus tools, that change is from using heuristics to detect viruses to using fingerprints. I’m not sure that makes much of a difference there (but possibly I’m wrong)<p>Also, the risk here is lower, so not taking the risk to run arbitrary code in exchange for somewhat better ad blocking may be the better choice.<p>So, what are real-life examples that the uBlock Origin currently blocks that new blockers won’t be able to block?
评论 #21027005 未加载
评论 #21026465 未加载
marmadaover 5 years ago
I don&#x27;t understand why this is a good thing. As a user, I can make my own choices on what type of as blocking technology I want to use.<p>I&#x27;m sure most people on HN would support legalization of marijuana even though it is arguable that smoking marijuana is bad for you. Same thing applies here, I should be able to choose what ad blocking technology I want to use.
评论 #21029153 未加载
评论 #21029201 未加载
yladizover 5 years ago
It was asked in the Github comments on this issue, but I want to clarify for myself: is the main difference between &quot;content blockers&quot; and &quot;ad blocker&quot; that works like uBlock Origin the way that they handle blocking content? What are the downsides to the content blocking plugin model?
评论 #21025630 未加载
oomkillerover 5 years ago
Heaven forbid users choose to trade performance for a more usable browsing experience. Ads&#x2F;tracking vs blocking is a war, and preventing blockers from running arbitrary code will cripple blockers, allowing technology to be developed by hugely funded ad companies that effectively bypass blockers due to these limitations. Providing a blocklist is completely insufficient for totally blocking ads and tracking, as anyone that has used the content blockers on iOS has observed.
评论 #21028384 未加载
jkp56over 5 years ago
Everybody misses the point.<p>The declarative API takes control away from the user. Currently you can block everything except the useful content. With the declarative API you can block only trackers A, B and C, but not C and D, because C and D weren&#x27;t added to the global list of trackers. Moreover, you won&#x27;t even know that C and D exist. With the declarative api, trackers get a trivial way to bypass adblocking: they can just change the domain name. This is the true goal of declarative API, not performance or security.<p>Why does the declarative API still allow to monitor your traffic? This sort of contradicts the security selling point, right? Because corporate users need to monitor activity of their employees: they install a corp extension that monitors traffic. They don&#x27;t need to block anything, but they need the monitoring ability.<p>The argument that adblockers can route all your traffic thru their servers simply doesn&#x27;t stand. If this was a concern, the browser could refine the permissions model: an extension can monitor and block any traffic, but it doesn&#x27;t have access to the internet. Just like in Android you can uncheck the camera and mic permissions for any app. Problem solved.
评论 #21031245 未加载
halostatueover 5 years ago
I have used Better (<a href="https:&#x2F;&#x2F;better.fyi" rel="nofollow">https:&#x2F;&#x2F;better.fyi</a>) on the Mac since the content blocker system was introduced and have never had a problem.
WAover 5 years ago
I use AdGuard on iOS and you can use very similar block lists as uBlock Origin for macOS does. Besides ads, I block social media on third party sites. This kind of tracking is just outright evil.<p>I&#x27;ll give it on macOS a try, because the other day, I noticed that uBlock Origin didn&#x27;t detect one specific tracking URL, but Firefox did (and it clearly was in the network tab of the Safari developer tools). Now it&#x27;s clear why: uBO is outdated for Safari.<p>Anyways, thanks for the port and maintenance all those years when I could use uBO!
评论 #21027284 未加载
happybuyover 5 years ago
There are plenty of good ad blocker alternatives available for Safari on macOS and iOS.<p>I’ve created one that is updated regularly, has a free option, respects your privacy and doesn’t take any $ from advertisers to let ads through the ad block rules [1].<p>Simply search on the App Store for a variety of alternatives.<p>uBlock Origin is good but it’s not the be all and end all of ad blocking especially on Apple platforms.<p>[1] More details at <a href="https:&#x2F;&#x2F;www.magiclasso.co&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.magiclasso.co&#x2F;</a>
评论 #21026204 未加载
jmnicolasover 5 years ago
I find a bit strange that he didn&#x27;t think of Pihole as one of the alternative.<p><a href="https:&#x2F;&#x2F;pi-hole.net&#x2F;" rel="nofollow">https:&#x2F;&#x2F;pi-hole.net&#x2F;</a>
评论 #21026845 未加载
zwover 5 years ago
This is a mind-boggling level of FUD. Content blockers have been noticeably superior on both macOS and iOS for years. They’re not “limited”, they’re rational. It’s abjectly absurd that traditional ad blockers can consume as much CPU as they do on every single page load. I hope everyone in this thread jumping ship to Firefox in a panic enjoys their shorter battery life.
评论 #21026407 未加载
评论 #21027444 未加载
评论 #21026432 未加载
评论 #21026673 未加载
blacklight86over 5 years ago
Time to start avoiding any browser that limits the power of extensions.<p>Browsing the web today has become a dirty business, it&#x27;s easy to be tracked, and users have the freaking right to defend their privacy when browsing, and to do it in whichever way they like.<p>I&#x27;m tired of these paternalistic and uningenuous claims from Google and Apple that sound like &quot;but we do it for you, you know, adblockers really hurt the performance of your browser&quot;. Something hurts my browsing experience? Well, it should be my call whether the pros outsize the cons or not, it should my call whether to use it or not, not the browser&#x27;s developer call. After all, the web browsing experience today is way more compromised because of the huge amount of third-party scripts that run on most of the pages, surely not by extensions, but browser producers don&#x27;t seem to put the same emphasis on the need of reducing the use of third-party scripts and trackers.<p>To me decisions like blocking external web API calls in extensions just because &quot;they may slow down your browser or put your security at risk&quot; sound like if the Linux kernel suddenly decided to disable the support for network sockets because &quot;you know, hackers might use them for backdoors, or you might end up connecting to an extremely slow server and hurt your experience&quot;: a complete nonsense bullshit.<p>Plus, browsers like Brave have recently proved, with its native content blocker developed in Rust, that it&#x27;s still possible to use a traditional adblocker without compromising the browsing experience.<p>Time to uninstall Chrome. Time to uninstall Safari. Time to ditch away all the browsers that do their best to limit your freedom on how you surf the web. Extensions are among the foundations of a modern browser, and limiting their power to static lists of rules is an immoral decision that deserves a serious boycot act from users.
protomythover 5 years ago
Let me get this straight, because Apple is worried I might leak private information to the Extension Developer, they came up with a new &quot;content blocking&quot; scheme that is not as capable so now my risk has increased for every website I visit? I think I would like to take my chances with the Extension Developer.
a012over 5 years ago
I didn&#x27;t know this first but spent awhile after installed Safari 13 and noticed uBO wasn&#x27;t there anymore and spent time searching for alternative options and valuating those mentioned in the post but decided I&#x27;ll go with FF and only use Safari with some websites those I&#x27;m working with them.
评论 #21025572 未加载
jedbergover 5 years ago
FWIW, I&#x27;ve been on Catalina for a couple of months now, which means no uBlock, and the web has been pretty usable. Safari alone seems to be doing a pretty good job with isolating the worst ads.<p>That being said, this post reminded me to install a replacement, so I just installed Adguard. We&#x27;ll see how it goes.
评论 #21026579 未加载
PStamatiouover 5 years ago
For those looking for a related alternative&#x2F;supplement.. consider a privacy DNS solution. I&#x27;ve really been liking NextDNS lately. Lets you customize a ton of stuff:<p>It launched on HN a while back: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=20012687" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=20012687</a><p><a href="https:&#x2F;&#x2F;nextdns.io" rel="nofollow">https:&#x2F;&#x2F;nextdns.io</a>
评论 #21027269 未加载
shujitoover 5 years ago
There&#x27;s the option for hosts-based blocking, too; unified hosts[1] for example<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;StevenBlack&#x2F;hosts" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;StevenBlack&#x2F;hosts</a>
mukundmrover 5 years ago
There are ways to make AdBlockers work with Safari 13. It is a question of someone taking the effort to adhere to the new design enforced by Apple for Safari extensions.<p>I switched to AdGuard from uBlock Origin.
评论 #21030323 未加载
bberenbergover 5 years ago
Does anyone have a local proxy that can do this instead? I am aware of GlimmerBlocker, but would love to hear broader feedback on the topic.
评论 #21027650 未加载
leemailllover 5 years ago
As it mentioned, it will not work in future release of safari and chrome. So only choice will be Firefox on Mac?
评论 #21026704 未加载
jokoonover 5 years ago
I&#x27;m starting to hate the internet
twstedover 5 years ago
I&#x27;ve seen that now Little Snitch (4) has the possibility to load community&#x27;s blocklists.<p>Any feedback on this?
评论 #21032062 未加载
sooheonover 5 years ago
I&#x27;ve found Ka-block! to work well enough that I&#x27;m happy waiting until a clear winner between 1Blocker and AdGuard emerges. OTOH, the bigger annoyance has been the fact that none of the vi key extensions for Safari seem to work anymore.
untitled87over 5 years ago
Safari is the new Chrome
eduardo2002over 5 years ago
Wow