[Support] uBlock Origin

(Raymond Hill) #21

Best for this is to enable advanced user mode to unlock access to dynamic filtering.

By default, there are no rule, so at first the dynamic filtering pane can be used to see all the domains to which a web page connects.

From there, you may look where web sites connect, and work to block specific domains when you find out they are not really needed to make web pages render properly. I give an example here using Facebook domains which most of the time is really not needed for web pages to render properly.

As time go, you will have build yourself a list of rules to block undesirable domains which do not add real value to web pages – rather the opposite, they slow down page load, increase bandwidth consumption, increase privacy exposure, etc.

I personally do use medium mode, and yet I still follow my own advice here, because sometimes I may want to disable medium mode for a specific site, and thus I still benefit from my own blocking rules for domains I consider superfluous (examples of domains I block everywhere by default: fonts.googleapis.com, linkedin.com, gravatar.com, twimg.com, etc.)

(SurfMaths) #22

Hi Gorhill,

I was wondering if you had something against providing uBlock Origin on the Safari extension store? Maybe the Safari platform isn’t actually maintained anymore, would you be okay if I helped in this direction? Or maybe it is actually working fine but being accepted on the Safari extension store isn’t trivial.

Note: I never developed Safari extensions yet, but I should handle it.


Any news regarding the keyboard shortcut option to block page elements? Would be verye handy and is missed. I switched from AdBlock Plus and a missing shortcut is slowing the workflow tremendously.

(Hrxn) #25

Hi, just a quick question, I think this is the right place for this…

I just noticed that I couldn’t trigger an update in the “3rd-party filters” pane.
Auto-update was checked, I think I’ve never changed that, so that is the default, but unchecking did not change anything.

I tried to manually update some of the ublock filters, but the “Update now” button only became active after I used ‘purge cache’ on those filters.

Is this intentional, or is something wrong?

(Hrxn) #26

Well, I am not sure, but since you can add shortcuts to any extension via chrome://extensions, as demonstrated here, for example, maybe the Element picker mode could be triggered this way?

(Raymond Hill) #27

Of course not, as long as it is a faithful enough port, i.e. the vapi-* layer is adapted for Safari while the rest stays the same. If you want to help that would be great. I know some good work had been done on the old uBlock (Chris Aljoudi) regarding storage issues (cache vs. settings), but this would require some code change on the platform-independent side, this could be addressed if and once we get there.

(Raymond Hill) #28

Wiki documentation:

This button is available for use if and only if there is at least one filter list which is deemed outdated. If this condition is fulfilled, you can force an update of all filter lists which are deemed out of date.

(Hrxn) #29

Yes, but there was at least one filter list with a newer version, one of uBO’s own lists.

I don’t know the intervals the updater uses for update checks. Could also be a caching issue, though. I don’t know how uBO fetches info for updated resources internally, but I would assume that is the source: https://github.com/gorhill/uBlock/tree/master/assets/

Maybe there was some kind of CDN in between, I don’t know.

Anyway, it’s not important, and not an issue. And you can always do a manual/forced update if you purge the cache. This first seemed a little counter-intuitive to me, but it works, and now I know it, so, yeah, fine :wink:


Thanks very much for your answer. Looks like very good instructions that even I can understand!
Thanks much for your work and this great add-on!

(Daniel Serodio) #31

UOL, a brazilian news portal, tracks clicks by making all like go to a “click tracker” URL, which then redirects to the destination URL, eg http://click.uol.com.br/?rf=homec-manchete-topo-modulo1&pos=mod-1;topo&u=http://noticias.uol.com.br/politica/ultimas-noticias/2016/03/11/dilma-diz-que-nao-pretende-renunciar-resignacao-nao-e-comigo-nao.htm which redirects to http://noticias.uol.com.br/politica/ultimas-noticias/2016/03/11/dilma-diz-que-nao-pretende-renunciar-resignacao-nao-e-comigo-nao.htm

Is is possible to have uBlock Origin rewrite the URL instead of blocking it? It’s currently being blocked by the ||click.uol.com.br^ filter in EasyPrivacy.


(Raymond Hill) #32

I declined such feature request in the past, for many reasons. Most important is that I consider such feature worthy of a separate extension, as this would require maintaining a list of rewrite rules, something which I do not have time to maintain. Another one is that I prefer users to be made fully aware that a click tracker has been used on them.

However, you can ask uBO to parse the blocked URL, and it will decompose it as much as it can. Often one can spot the real destination URL in there (using your example), click the magnifier on the right-hand side of the blocked URL:

So it becomes a matter of simply clicking the proper URL in there when one can spot it.


Hi, I’ve just recently switched to uBlock from Adblock and Request Policy and having a slight issue making a rule.

There is a deals site I visit that uses an ad site redirect when clicking links to products (so clicking a link goes to ad referrer, then destination site). The ad site is blocked so I get a block page, so I’m trying to set a rule to allow requests to that ad site ONLY from the deals site but I must be doing something wrong.

This is what I thought it should be, but doesn’t work:

hotukdeals.com awin1.com * allow

I’ve been all through the wiki and can’t see why that isn’t working, also tried several variations on that rule and can’t make it work. What am I missing?

(I don’t want to disable strict filtering just because of one site, and don’t really want to allow ALL requests to the ad server just for the sake of one site either)


I notice that the documentation for script:inject says that “the resource library is completely under control of the uBO project”. As an end user, does this mean there’s no way for me to add resources of my own short of modifying uBlock itself?

(Raymond Hill) #36

The block page is never triggered by dynamic rules, only by static filters. You will have to use the Temporarily or Permanently button on the block page.

(Raymond Hill) #37



Ok, thanks. Looked exactly like a Request Policy style block, didn’t realise it was the dynamic (adblock) filtering. Maybe something to look at in future - more info on the block page about which type of filter is causing the block page? Maybe even just changing the wording to “Because of the following dynamic/static filter”

Or maybe it’s just my years of use of Adblock and Request Policy fogging my brain :grin:

(paranoidandroid) #39

Hi, how can I block all third party requests except images and CSS with dynamic rules? I tried this

    • 3p block
    • image noop

But that’s completely breaking pages.

(Raymond Hill) #40

The closest to what your are asking is medium mode. If you want higher granularity than what medium-mode offers you, consider uMatrix.

(Jim Fo) #41

New Thread – New User Feedback

This looks like an interesting project. I began reading your documentation and experimenting. Here are a few observations, comments and questions. Please let me know if it would be helpful for me to continue and if so, the appropriate place for this type of feedback.

uBlock Origin v1.6.4
Firefox 43.0.4
linux 3.16.0-38-generic
Test sites:


  • I had understood from multiple sources (sorry, don’t recall them) that uBO’s default settings provide blocking equivalent or superior to ghostery. Is that the intent? It doesn’t seem to be the case using the two test sites mentioned above. I’m experimenting with using ghostery 5.4.11 in a different instance of the same version of Firefox. With uBO I see some ads that ghostery blocks.

  • https://github.com/gorhill/uBlock/wiki/Per-site-switches#no-popups

Using the test site you provide (http://jessehakanen.net/adblockpluspopupaddon/test.html#), if I enable popup blocking, all the popup tests still succeed.

  • It was unclear that by “the context menu” you mean that shown by Firefox by right-clicking within a web page. Initially I thought it was something within uBO.

  • Leaving “Block media elements larger than” unchecked, I changed 50 to 5 and enabled the per-site switch. The images under “WunderBlog & News” were not loaded as expected. Selecting “Temporarily allow large media elements” from the context menu with the web page results in the images being displayed. So far so good. However there does not appear to be a way to regain that capability. The images are not suppressed and the context menu changes to only “Block Element” despite disabling the switch and then re-enabling it. I verified that “My rules” within uBO removes and then adds “no-large-media: www.wunderground.com true”. This behavior is the same for other sites.

thefreedictionary shows two elements hidden. When disabled, the only difference I see is the addition of whitespace. However if I reload the page, all the InstantGrammarChecker ads and the bottom FeedChildProgram ad disappear. Why is that? BTW, ghostery blocks those ads.

Despite preventing remote fonts from being downloaded, I can’t perceive a difference in the test sites. Is there a way to know what areas of the page are affected?

The eraser (revert) icon almost entirely covers the gear (settings) icon.


That’s as far as I got and is probably enough for you to decide if this type of feedback is useful.


(paranoidandroid) #42

Unfortunately both of variants has some disadvantages. And uMatrix has no such flexible thing as static filter. It would great if some day the uBlock will acquire mechanism allowing use something kind of static filter syntax combined with only blocking rules from third party lists (with no influence of their exceptions). So user could block any type of requests in conjunction with lists and precisely un-break sites on his own.

P.S. Thank you for that great add-on.