News for hackers. Stuff that matters.
Re:UBlock Origin for Safari by kobayashi on Tuesday December 06, 2016 @12:14AM (#13112421)
Yes! Been waiting for a uBlock Origin for Safari for a while.

I looked into Ellis Tsung, the listed dev, but can't find much about him. The LinkedIn profile most likely (IMO) to be his only has 35 contacts and I've never heard of his other projects listed on his personal webpage. Throwing this out here in case somebody as something to add.

The most important aspect one should look for in an app (/extension) before installation is whether or not the dev is sufficiently trustworthy. Not yet sure about this individual.

Also, if we're making wish lists, somebody please look into uMatrix for Safari!

Re:UBlock Origin for Safari by eklavya on Tuesday December 06, 2016 @11:41AM (#13115955)
Aren't safari extensions vetted before they can be hosted by apple? I am asking because the page mentions it will be available on safari extension store eventually. Will that still be a problem?
Re:UBlock Origin for Safari by pvg on Tuesday December 06, 2016 @12:48PM (#13116614)
Safari still accepts packaged extensions not hosted by Apple but typically requires them to be signed. I think the concern here is only partially whether this person is doing something malicious - that seems quite unlikely.

uBlock's author previously gave control of the uBlock project to someone who worked on the Safari port and this person turned out to be a (young, but I guess you can start anytime) sleazebag. uBlock's author ended up renaming his project uBlock Origin end eventually stopped contributing/backporting his work into the Safari port. The Safari port essentially died.

It's great that someone is picking this up again and wary and hopeful users are looking for some indication this seemingly awesome person is not a sleazebag.

Re:UBlock Origin for Safari by geniium on Tuesday December 06, 2016 @06:32AM (#13113834)
That's a good news!
Re:UBlock Origin for Safari by chris_wot on Tuesday December 06, 2016 @03:19AM (#13113040)
I dunno. If the source is available and has enough eyeballs, then trust in the author is still important but less so than someone providing binaries based on closed sources. As I feel Microsoft has taken a long time to learn.
Re:UBlock Origin for Safari by throwanem on Tuesday December 06, 2016 @07:58AM (#13114233)
No, not really. Once I install the extension, unless I do something unusual, I've signed up to automatically download and run whatever code is signed with the right key and put in the update channel. If the dev isn't trustworthy, I'm almost certainly going to be hosed before I know I have a problem. Being able to see exactly how I got hosed, after the fact, is somewhat cold comfort.
Re:UBlock Origin for Safari by chinathrow on Tuesday December 06, 2016 @08:37AM (#13114449)
Indeed - and extensions get sold all the time for fast cash.
Re:UBlock Origin for Safari by cryptarch on Tuesday December 06, 2016 @06:31AM (#13113821)
What does Microsoft have to do with anything?
Re:UBlock Origin for Safari by na85 on Tuesday December 06, 2016 @07:02AM (#13113959)
Well, they created an unauditable mess of an operating system with numerous security vulnerabilities while using their monopolistic hold on the PC market to hold back better solutions.

I disagree with GP's point about "enough eyeballs". Heartbleed et al showed us that bugs can lie in plain sight for years.

Re:UBlock Origin for Safari by Archio on Tuesday December 06, 2016 @12:42AM (#13112519)
This is fantastic news, especially if this fork is well maintained and/or gets merged upstream. Safari has the lightest battery usage and fastest speed by far of any browser on my Macbook, but it sucks that the best extensions aren't always available.
Re:UBlock Origin for Safari by Kluny on Tuesday December 06, 2016 @01:23PM (#13116973)
I read this yesterday and fired up Safari for the first time. Once I got uBlock installed and my settings the way I wanted, the experience was fine, except one thing. There seems to be a tiny delay when I tap-to-click on the trackpad (2012 MBP). Does anyone else get that? It's the only problem I have with Safari, but it'll almost annoying enough to drive me back to Chrome.
Re:UBlock Origin for Safari by rogual on Tuesday December 06, 2016 @04:58AM (#13113495)
There's a [dead] comment replying to this that seems like a perfectly reasonable, non-inflammatory question. What's going on?
Re:UBlock Origin for Safari by grzm on Tuesday December 06, 2016 @05:06AM (#13113522)
Likely a banned account. If you think it's worthwhile, you can click "vouch" to reanimate it, as it were.

Yup: https://news.ycombinator.com/item?id=12869685

Re:UBlock Origin for Safari by BipolarElsa on Tuesday December 06, 2016 @02:12AM (#13112799)
>or gets merged upstream

I don't understand what that means. Do you mean that it will be updated automatically on your Safari once you download it initially?

Re:UBlock Origin for Safari by devy on Tuesday December 06, 2016 @11:34AM (#13115895)
This repo is a fork of gorhill/uBlock. Merging it upstream means merging the changes in this fork back to gorhill/uBlock so that majority of the UO community can enjoy the Safari compatibility of UO and this fork's user base can enjoy bugfixes from the gorhill/uBlock. And as users of ad blockers, we don't end up with 2 similar but slightly different softwares.

Ideally, this fork should be merged back as a PR to the original repo instead of advertising it as-is.

Re:UBlock Origin for Safari by enzanki_ars on Tuesday December 06, 2016 @08:05AM (#13114267)
By merging it upstream, I would be updated by the creator of uBlock Origin, instead of updates coming from someone else.
Re:UBlock Origin for Safari by alfanick on Tuesday December 06, 2016 @01:34AM (#13112671)
I've been using uBlock on Safari for quite a while now (I've got 0.9.5.2 version installed atm). I cannot find any info what is the difference between uBlock and the uBlock Origin, can anyone elaborate on this? Is the difference like between Adblock and Adblock Plus?
Re:UBlock Origin for Safari by delhanty on Tuesday December 06, 2016 @08:26AM (#13114386)
In addition to what madeofpalk writes, the uBlock Origin manifesto gives some context:

https://github.com/el1t/uBlock-Safari/blob/safari/MANIFESTO....

>The uBlock project does not support Adblock Plus' "Acceptable Ads Manifesto", because the "Acceptable Ads" marketing campaign is really the business plan of a for-profit entity.

Re:UBlock Origin for Safari by madeofpalk on Tuesday December 06, 2016 @01:41AM (#13112695)
Long story short - uBlock Origin is a fork by the original developer who worked on uBlock.
Re:UBlock Origin for Safari by hrrsn on Tuesday December 06, 2016 @04:36AM (#13113382)
In addition, the uBlock Safari port has been dead for some time.
Re:UBlock Origin for Safari by bangonkeyboard on Tuesday December 06, 2016 @07:05AM (#13113973)
Not that that's stopped the ex-maintainer from soliciting donations for it.
Re:UBlock Origin for Safari by kfdhskafjs on Tuesday December 06, 2016 @12:06AM (#13112388)
But is it better than using extensions like Wipr that used the built-in ad-blocking system?
Re:UBlock Origin for Safari by arm on Tuesday December 06, 2016 @12:28AM (#13112468)
Well, this is what the developer of the JS Blocker extension for Safari has to say about it¹:

“Safari has a new feature called "Content Blockers" that allows for extremely efficient resource blocking on both the desktop and iOS version of Safari. As much as I'd like to incorporate this into JS Blocker, it is not feasible to do so. Using a content blocker will prevent JS Blocker from showing you exactly what's going on on a website (i.e. you won't see what's allowed or blocked.) It'll also break all of JS Blocker's "other" features, such as showing alerts within the webpage and canvas fingerprinting protection. Besides the loss of features, content blockers are limited to 50,000 rules. While this seems like a high number, it isn't enough for efficient protection and a lot of rules would need to be cut out to even run a content blocker. Until Apple eases the restrictions (or at least raises the number of rules that can be in a content blocker), JS Blocker will not be using this API.”

――――――

¹ — http://jsblocker.toggleable.com/

Re:UBlock Origin for Safari by LeoPanthera on Tuesday December 06, 2016 @01:17AM (#13112622)
The whole point of the content blocking API is to protect the users privacy. Without it, the plugin gets to see every single web page you visit, and its contents, and could do anything with that information.

I've been using 1Blocker which, while not free, uses the API and seems to work very well. (And can sync your block settings with the iOS.)

Re:UBlock Origin for Safari by stephenr on Tuesday December 06, 2016 @09:08AM (#13114632)
Agreed. Content blockers are also not executing js code for every resource the page tries to load: it's just the defined blocking rules that get processed.

I'm also using 1blocker. Lacking an existing site (or time to build one myself) for sharing 1blocker packages, I've started storing them here: https://bitbucket.org/stephenreay/1blocker-packages

Re:UBlock Origin for Safari by fredsir on Tuesday December 06, 2016 @03:02AM (#13112979)
It works very well indeed!
Re:UBlock Origin for Safari by Animats on Tuesday December 06, 2016 @02:39AM (#13112890)
If you're doing this with a huge number of manually maintained rules which depend on the specifics of the ad code, you're doomed to endlessly updating signatures. That's labor-intensive. It's more effective to blacklist the ad domains and then try to infer the boundaries of the ad by looking at the DOM. That's how I did it in Ad Limiter, which filters Google search results. Google changes their ad code all the time, but Ad Limiter seldom needs to be changed.
Re:UBlock Origin for Safari by blue_box on Tuesday December 06, 2016 @03:23AM (#13113065)
It doesn't block youtube ads.
Re:UBlock Origin for Safari by draw_down on Tuesday December 06, 2016 @07:44PM (#13119578)
Hmm, what does?
Re:UBlock Origin for Safari by mitchty on Tuesday December 06, 2016 @09:06PM (#13119946)
Ironically enough, the original ublock does on safari.
Re:UBlock Origin for Safari by 4ad on Tuesday December 06, 2016 @04:28AM (#13113345)
My understanding is that this doesn't use the newish Safari content block API, am I right?

What's the best ad blocker that uses the Safari content block API? I use Adguard, and it's ok, but I'd want something else.

Paying money is no problem.

Re:UBlock Origin for Safari by ino on Tuesday December 06, 2016 @05:36AM (#13113631)
I use wipr and it's excellent.

I've been using it for a year and haven't seen any ads so far, not even video ads from big or small websites.

The macOS version is free so you can test it. The iOS version is $1 and it's very worth it.

Re:UBlock Origin for Safari by 4ad on Tuesday December 06, 2016 @06:11AM (#13113752)
Unfortunately wipr doesn't have any settings (whitelists, extra filters, etc) on macOS.
Re:UBlock Origin for Safari by esturk on Tuesday December 06, 2016 @09:30PM (#13120027)
Just tried it but it got stuck on www.bbcamerica.com trying to play a video because it doesn't know how to handle a missing google analytics. On the other hand, ublock0 handled it properly.
Re:UBlock Origin for Safari by simoalx on Tuesday December 06, 2016 @05:04AM (#13113516)
1Blocker is pretty well regarded right now, that's what I use.
Re:UBlock Origin for Safari by 4ad on Tuesday December 06, 2016 @06:10AM (#13113744)
Thanks. I tried it, but it doesn't block youtube banners on the bottom of the videos. Adguard does. It also blocks all comments, including Hacker News comments by default??!?
Re:UBlock Origin for Safari by stephenr on Wednesday December 07, 2016 @11:44AM (#13123863)
The 1Blocker beta (via TestFlight) mentions blocking YouTube banner ads now. I haven't tested it yet for that.
Re:UBlock Origin for Safari by Terretta on Tuesday December 06, 2016 @07:24AM (#13114054)
Comments are a toggle as a class, or a toggle per CSS markup; or whitelist HN.
Re:UBlock Origin for Safari by 4ad on Tuesday December 06, 2016 @07:38AM (#13114141)
I'm complaining about a bizarre default (also blocks porn by default), not that I don't know how to fix it. That being said, the lack of blocking youtube in-video banner advertisements make it unusable to me, which is a pity because the UI is pretty good.
Re:UBlock Origin for Safari by stephenr on Wednesday December 07, 2016 @11:44AM (#13123869)
HN comments were specifically mentioned as a fix for the latest beta via TestFlight.
Re:UBlock Origin for Safari by ledak on Wednesday December 07, 2016 @09:44AM (#13122830)
I've tried all ad blockers from Safari extensions gallery - Adguard is the clear winner. Most powerful and customisable, yet uses Safari content block API.
Re:UBlock Origin for Safari by tqkxzugoaupvwqr on Tuesday December 06, 2016 @06:39AM (#13113857)
I use Ka-Block! and am satisfied with it.
Re:UBlock Origin for Safari by esturk on Tuesday December 06, 2016 @12:50AM (#13112555)
Very nice. Just tried it on (www.bbcamerica.com) and it works as oppose to the regular ublock that removes google analytics and don't know how to handle getting stuck. Will definitely test it out more and report any bugs.
Re:UBlock Origin for Safari by wtallis on Tuesday December 06, 2016 @01:24AM (#13112644)
> and it works as oppose to the regular ublock that removes google analytics and don't know how to handle getting stuck.

Is this a matter of something changed in the extension itself, or is it a difference in what filters they subscribe to by default?

Far too much discussion of adblockers ignores that the third-party filters are not the same as the browser extension. Filter subscriptions are mostly interchangeable between the various AdBlock derivatives and replacements, and it's also quite possible to use them with only filters you create yourself.

Also, it sounds like the Google Analytics problem you're referring to is what NoScript's surrogate scripts feature is for.

Re:UBlock Origin for Safari by gorhill on Tuesday December 06, 2016 @07:42AM (#13114159)
> Is this a matter of something changed in the extension itself

Probably related to the `redirect` filter option, introduced in uBO 1.4.0[1].

[1] https://github.com/gorhill/uBlock/releases/tag/1.4.0

Re:UBlock Origin for Safari by dzhiurgis on Tuesday December 06, 2016 @01:22AM (#13112636)
Is there content blocker for iOS that supports custom filters?
Re:UBlock Origin for Safari by navs on Tuesday December 06, 2016 @01:37AM (#13112684)
Quite a few. 1Blocker is one of them:

https://1blocker.com

Re:UBlock Origin for Safari by canuckintime on Tuesday December 06, 2016 @02:14AM (#13112802)
And you'll need custom lists for 1Blocker because it exempts some ad networks by default.
Re:UBlock Origin for Safari by pvg on Tuesday December 06, 2016 @06:02AM (#13113719)
It exempts them on purpose or just happens not to include them? Which networks?
Re:UBlock Origin for Safari by Sachse on Tuesday December 06, 2016 @06:39AM (#13113858)
The Deck isn't blocked by default, but the author provides a package you can easily download to block them as well.
Re:UBlock Origin for Safari by navs on Wednesday December 07, 2016 @01:12AM (#13120815)
They, being 1Blocker, have posted about this before. It's felt that The Deck is non-intrusive and therefore not something that needs blocking.
Re:UBlock Origin for Safari by lmedinas on Tuesday December 06, 2016 @03:01AM (#13112974)
Which one do you recommend then ?

Is Firefox Focus better ?

Re:UBlock Origin for Safari by cynix on Tuesday December 06, 2016 @04:19AM (#13113296)
Firefox Focus only blocks tracking, not ads.
Re:UBlock Origin for Safari by stephenr on Tuesday December 06, 2016 @09:10AM (#13114640)
Can you elaborate?
Re:UBlock Origin for Safari by dzhiurgis on Tuesday December 06, 2016 @04:29AM (#13113351)
Does not seem to work with standard adblock/ublock lists.
Re:UBlock Origin for Safari by theWatcher37 on Tuesday December 06, 2016 @07:44AM (#13114171)
Great! Will this come to iOS soon?
Re:UBlock Origin for Safari by JustSomeNobody on Tuesday December 06, 2016 @09:32AM (#13114813)
I'm going to HN[0] you and say just use AdBlock on iOS. Works great!

[0] When someone ask for one thing and someone tells you to use another without addressing the actual question.

Re:UBlock Origin for Safari by jariz on Tuesday December 06, 2016 @05:18AM (#13113561)
Is this a unofficial fork? Why is it not included with the main uBlock project?
Re:UBlock Origin for Safari by kencausey on Tuesday December 06, 2016 @06:32AM (#13113828)
Short version: Author of uBlock Origin is original author of uBlock and decided to hand it off. Drama ensued and original author decided to fork what had previously been his own project and continue.

See https://github.com/gorhill/uBlock/issues/38

Re:UBlock Origin for Safari by raybb on Monday December 05, 2016 @11:59PM (#13112370)
If that was a response to the comment someone recently posted asking for it to be ported to Safari than bravo for the quick response!
Re:UBlock Origin for Safari by isaac_is_goat on Tuesday December 06, 2016 @07:35AM (#13114119)
Microsoft Edge next please?
Re:UBlock Origin for Safari by joecool1029 on Tuesday December 06, 2016 @11:21AM (#13115778)
https://github.com/nikrolls/uBlock-Edge/releases

Been using this for a few months. Seems to work well aside from having to turn it on manually every time I restart Edge

Re:UBlock Origin for Safari by staticelf on Tuesday December 06, 2016 @08:50AM (#13114526)
I started looking for how to develop plugins for Edge to port it, but could not find any resources from Microsoft which is pretty strange.

They simply state "Microsoft Edge supports a new HTML, JavaScript and CSS based extension model. This new model is Chrome-compatible which means that existing Chrome extension developers will be able to migrate their extensions to Microsoft Edge with minimal changes." but not how to actually add the extension or anything to get going.

Re:UBlock Origin for Safari by vxNsr on Tuesday December 06, 2016 @11:33AM (#13115881)
Yeah, it looks like four now they're only doing joint official extensions. Basically you gotta work with someone at Microsoft to have your extension added to the store. Otherwise you can create a regular chrome extension and side load it, and it works like 75% of the time.