{"action":"created","issue":{"url":"https://api.github.com/repos/gorhill/uMatrix/issues/268","labels_url":"https://api.github.com/repos/gorhill/uMatrix/issues/268/labels{/name}","comments_url":"https://api.github.com/repos/gorhill/uMatrix/issues/268/comments","events_url":"https://api.github.com/repos/gorhill/uMatrix/issues/268/events","html_url":"https://github.com/gorhill/uMatrix/issues/268","id":88803572,"number":268,"title":"Is there a way to make uMatrix operate before uBlock?","user":{"login":"navidada","id":10457127,"avatar_url":"https://avatars.githubusercontent.com/u/10457127?v=3","gravatar_id":"","url":"https://api.github.com/users/navidada","html_url":"https://github.com/navidada","followers_url":"https://api.github.com/users/navidada/followers","following_url":"https://api.github.com/users/navidada/following{/other_user}","gists_url":"https://api.github.com/users/navidada/gists{/gist_id}","starred_url":"https://api.github.com/users/navidada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/navidada/subscriptions","organizations_url":"https://api.github.com/users/navidada/orgs","repos_url":"https://api.github.com/users/navidada/repos","events_url":"https://api.github.com/users/navidada/events{/privacy}","received_events_url":"https://api.github.com/users/navidada/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-16T18:29:16Z","updated_at":"2015-06-16T22:00:12Z","closed_at":"2015-06-16T19:07:09Z","body":"My question is somewhat related to other questions that were asked before, but I still haven't found an elegant way of solving this.\r\n\r\nIt seems that uBlock is doing an extra work, when it scan network requests that were already blocked by uMatrix. I'm only talking about the computational inefficiency aspect, because both add-ons work superbly - allowing privacy and blocking adds, just not as efficiently as they could have worked together)\r\n\r\nOne option of solving this is having strict rules in uBlock (blocking 3rd party connections and so), but then one needs to configuring each site on both uMatrix and uBlock. [it's a tedious task when trying to repair broken sites]\r\n\r\nBut I'm wondering if there's a way that things will work like they were meant to work on HTTPSB, i.e. first, uMatrix blocks requests (based on it's rules and the user defined rules) and then uBlock only inspects the elements that were authorized by uMatrix. This will increase the efficiency and speed of loading sites because it will diminish the number of elements that needs to be inspected against some 60,000-100,000 filters of uBlock)\r\n\r\nIs there a way of forcing Firefox to first operate uMatrix and only then uBlock?\r\nOr maybe a way of syncing uBlock with the user-defined rules of uMatrix? So that after updating the rulest in uMatrix, they will automatically be adopted by uBlock)\r\nOr maybe merging both add-ons to one add-on that operates in that manner? [I understand this is an enormous task, but I'm just trying to invoke a debate where people can offer other solutions]"},"comment":{"url":"https://api.github.com/repos/gorhill/uMatrix/issues/comments/112581171","html_url":"https://github.com/gorhill/uMatrix/issues/268#issuecomment-112581171","issue_url":"https://api.github.com/repos/gorhill/uMatrix/issues/268","id":112581171,"user":{"login":"gorhill","id":585534,"avatar_url":"https://avatars.githubusercontent.com/u/585534?v=3","gravatar_id":"","url":"https://api.github.com/users/gorhill","html_url":"https://github.com/gorhill","followers_url":"https://api.github.com/users/gorhill/followers","following_url":"https://api.github.com/users/gorhill/following{/other_user}","gists_url":"https://api.github.com/users/gorhill/gists{/gist_id}","starred_url":"https://api.github.com/users/gorhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gorhill/subscriptions","organizations_url":"https://api.github.com/users/gorhill/orgs","repos_url":"https://api.github.com/users/gorhill/repos","events_url":"https://api.github.com/users/gorhill/events{/privacy}","received_events_url":"https://api.github.com/users/gorhill/received_events","type":"User","site_admin":false},"created_at":"2015-06-16T22:00:12Z","updated_at":"2015-06-16T22:00:12Z","body":"> If uBlock is checking things that were already blocked it's using CPU power for nothing\r\n\r\nSo you are probably seeing this on a Chromium-based browser. With Firefox this does not happen if I am not mistaken. It's a browser issue really, not an extension issue. But even if you went to file an issue with Chromium devs, I doubt there is anything to do, because I assume it's currently done the way it is done because each extension is in its own process, and so they can all evaluate requests in parallel, and forcing them to work in sequence would mean to forfeit advantage of parallelism of per-process architecture."}}