CatBlock / catblock

CatBlock - An ad-blocking extension (with an ability to replace ads by pictures) for all major desktop browsers!
https://getcatblock.com
GNU General Public License v3.0
94 stars 44 forks source link

Implement WebSocket blocking #137

Closed tomasko126 closed 7 years ago

tomasko126 commented 7 years ago

WebSockets can be natively blocked by extensions starting in Chrome 58.

How-to test:

  1. Add the following filter: ||pubsub-edge.twitch.tv/v1$websocket
  2. Go to twitch.tv
  3. Open up the console and verify, that WebSocket requests were blocked
snimka obrazovky 2017-03-08 o 1 33 08
tomasko126 commented 7 years ago

@kpeckett In order to test WS blocking, you need to have either Chrome Dev or Canary installed.

itskdog commented 7 years ago

If this only works on the current Dev channel, let's wait the feature until it's in Stable.

tomasko126 commented 7 years ago

@kpeckett Chrome 58 is now stable, I am going to make new changes.

tomasko126 commented 7 years ago

@kpeckett WS blocking has been rolled out to Chrome Stable, feel free to review and/or merge this PR.