gorhill / uBO-Extra

A companion extension to uBlock Origin
GNU General Public License v3.0
654 stars 42 forks source link

Not blocked websockets (worker, frame) #8

Closed dimisa-RUAdList closed 7 years ago

dimisa-RUAdList commented 8 years ago

Google Chrome 53.0.2785.89 m (64-bit) uBO 1.9.4, uBlock Origin WebSocket 1.1 http://hdrezka.me/films/action/11147-dedpul.html http://i.imgur.com/Gigexom.jpg

http://filmix.net/ http://i.imgur.com/JJIxJC3.jpg

gorhill commented 8 years ago

Also: https://github.com/gorhill/uBlock/issues/1936.

Catzilla commented 7 years ago

Similar issue here: http://seasonvar.ru/serial-13723-Poslednij_korabl_-3-season.html Teasers in left sidebar.

Websockets connection code was wrapped into: new Worker(URL.createObjectURL(new Blob(['eval(atob(" ... Base64 Encoded script ... "))']), {type: "application/javascript"}));

Filter, which does not work as expected: ||marketgid.com^

Reproducible on: Chromium 52.0.2743.116, Debian 8.5 (64-bit) uBlock Origin 1.9.10 uBlock Origin WebSocket 1.1

gorhill commented 7 years ago

Similar issue here: http://seasonvar.ru/serial-13723-Poslednij_korabl_-3-season.html Teasers in left sidebar.

Works fine with default filter lists. Did you disable any of these default filter lists? (No need for uBO-WebSocket for this site).

Catzilla commented 7 years ago

Did you disable any of these default filter lists?

Yes, I use only my own filter list, located here: https://www.dropbox.com/s/gufsjlap8kphzk7/ads.txt?dl=1

I confirm, this problem does not occur when I using the default filters. But they also hide the sidebar. Maybe websocket connection does not appear because sidebar is hidden.

If I disable default filters, site successfully establishes a connection with the following server: wss://wsp.marketgid.com/ws

But it should be blocked by the following rule in my filter list: ||marketgid.com^

Previously this rule blocks websocket on this site. But yesterday they changed the teasers code.

gorhill commented 7 years ago

Yes, I use only my own filter list

Use this in your filter list: *$websocket,domain=seasonvar.ru.

But it should be blocked by the following rule in my filter list

Chromium has limitations. The alternative solution works well on all browsers, including Chromium.

Catzilla commented 7 years ago

Use this in your filter list

Thanks a lot, it works. I am sorry for disturbing.