5 ms·
uBlock Origin Core
- mewmew07 4y agorecognised the username and realised his handle is a brand
- jraph 4y ago> The core filtering engines used in the uBlock Origin ("uBO") extension, and has no external dependencies. When it says that they are no external dependencies in the first line of the README, that sounds like it's not very likely to change. Note this: you can develop the core of something complex and widely used like uBlock Origin, without external dependencies, during your free time, for years. (edit: to be fair, it embeds 2 libraries, Regex.Analyzer and publicsuffixlist)
- oaiey 4y agoThere are also architecture principles (e.g. onion architecture) which make the core of applications free of dependencies because there are the essence of your business logic. Without having read anything here with uBlock, this could be the url matching and the calculation if a block is applicable. Then you build your hosting, UI, testing, database, etc.. as layers around it which consume the exposed interfaces of the internal domain model. This produces highly portable modules. I have for example implemented a communication protocol against a stream interface. With this architecture we bound it later in 3 applications (Service, Cordova App, Windows App) to up to 3 different IO methods (USB, BT, TCP/IP) in even 3 programming languages (C++, .NET and JavaScript) doing communication with the same device. And 3-4 years ago, we even played with WebAssembly ... but that was not yet ready.
- bornfreddy 4y agoOff-topic: I really wish uMatrix was brought to life again. It had such a beautifully simple and efficient UI. uBO's filetring is close, but... not the same. Big thank you to gorhill (and co.) for making the net useable!
- tgv 4y agoIs uMatrix dead then? I'm using it (in Firefox).
- pmontra 4y agoI'm also using it. It's not maintained. It might stop working with any of the next browser updates and has been like that for years. I've been told that uBO can do the same things and I started looking into it weeks ago, then got stuck. The UI of uMatrix is so much better than the one of uBO at selecting the scripts to run and block that it could become a case study in interaction design.
- bornfreddy 4y agoJust to confirm, uBO can do the same things, mostly (and I've switched to it myself), but the UI is not on the same level when trying to block css / images / scripts separately. uMatrix really is an incredible UI achievement.
- ri0t 4y agoIt's always a little minigame of not activating too much but still getting a working site. Fishy things get painted red, hopefully good things get painted green - reload and try again, if it didn't work. I sure hope, some maintainers pop up and keep this thing alive!
- squarefoot 4y agoBoth extensions are FOSS, so anyone with enough time and skills could say extend the uBO engine with the more powerful uMatrix interface, where the latter could be accessed through an "expert" option for more granularity, then submit the result to gorhill for evaluation, so that he would have a single codebase to maintain.
- kekebo 4y agoWow. I've been wishing for this for so long, especially for use in Electron (and things like https://github.com/nativefier/nativefier https://github.com/nativefier/nativefier specifically). Mr. Gorhill, if you read this: Thank you. You've made browsing the web more enjoyable (/bearable) on a daily basis for me for many years.
- pythux 4y agoNote that the lack of adblocker in nativefier has nothing to do with the lack of libraires to do the blocking but rather technical challenges with preload scripts, etc. (Not impossible but someone needs to implement it). See here for relevant issue: https://github.com/nativefier/nativefier/issues/177 https://github.com/nativefier/nativefier/issues/177
- kekebo 4y agoRight. And combining the entire ubo package into a single js file to use via the --inject option will probably cause it's own (dis)array of problems. But webpages can be 'nativefied' (wrapped in electron) by hand, where I assume this package may still to be of potential use.
- bambax 4y agoA little OT: Interested in generative art in the browser, I recently stumbled on an implementation of Voronoi diagrams by none other than... gorhill! https://github.com/gorhill/Javascript-Voronoi https://github.com/gorhill/Javascript-Voronoi Something he made 10 years ago, and is still super efficient. Some people are just good ;-)
- sbarre 4y agoSo what are potential uses of this, with Manifest v3 around the corner? Could this run as an nginx JS module and filter traffic at the network level in my home as a local proxy? I'm already running a Pi Hole, would this be overkill?
- pierrebarre 4y agoShameless plug: https://github.com/Barre/privaxy https://github.com/Barre/privaxy It’s a proxy that does just this.
- sbarre 4y agoThank you! Also, do we have the same last name?
- RunSet 4y agoThis seems like just the thing to finally get adblocking in Steam's integrated browser.
- sumtechguy 4y agowait... you are using a site that advertises and sells things to disable adverts? I am not following the use case for ublock here?
- CBarkleyU 4y agoHm? No, they're probably using the integrated browser to browse the internet while being ingame. They're not talking about the store itself.
- antman 4y agoCould this be used per client ip or time frame? Thinking about children filter etc
- SparkyMcUnicorn 4y ago
- malshe 4y agoIs there any desktop Safari extension with uBlock Origin? I would be happy to pay for it.
- mdaniel 4y agoAIUI you'd have to since extensions have to be signed by an Apple Developer certificate, which is about $100/yr https://developer.apple.com/safari/extensions/ https://developer.apple.com/safari/extensions/ Now, if you, personally, wanted to install it I believe there's a locally signed cert issued by Xcode that only your machine trusts, but as far as distributing uBO in the Mac App store, that's actual money (and who knows, maybe even disallowed by Apple's policies)