µBlock, a lean and fast blocker

Discussion in 'other software & services' started by gorhill, Jun 23, 2014.

  1. Chway

    Chway Registered Member

    Joined:
    Jun 18, 2015
    Posts:
    8
    I'm using this filter to block auto buffering/playing videos (mostly ads):
    Code:
    ||/*.m3u8$xmlhttprequest,domain=~twitter.com|~twitch.tv
    I'm not sure if this is the best way to block a specific file type tho..
     
    Last edited: Sep 27, 2016
  2. Overkill

    Overkill Registered Member

    Joined:
    Mar 16, 2012
    Posts:
    2,343
    Location:
    USA
    I have brightcove nooped because of other videos on the site, is there a way to just block that one or no? the one's that autoplay are very annoying, I rather not add another extension if I can help it.
     
  3. harsha_mic

    harsha_mic Registered Member

    Joined:
    Mar 11, 2009
    Posts:
    815
    Location:
    India
    They are html5 videos. You can control autoplay by toggling the media.autoplay.enabled setting to false
    Note: This option will not work always. However, for your site it works.
     
  4. harsha_mic

    harsha_mic Registered Member

    Joined:
    Mar 11, 2009
    Posts:
    815
    Location:
    India
    Give us the url for it. And a screenshot, and also, screenshot of my filters in uBlock
     
  5. Overkill

    Overkill Registered Member

    Joined:
    Mar 16, 2012
    Posts:
    2,343
    Location:
    USA
    Where do I find this setting? FYI I'm using chrome
     
  6. harsha_mic

    harsha_mic Registered Member

    Joined:
    Mar 11, 2009
    Posts:
    815
    Location:
    India
    Oops. It's for firefox and it is in about:flags
     
  7. Overkill

    Overkill Registered Member

    Joined:
    Mar 16, 2012
    Posts:
    2,343
    Location:
    USA
    That's what I was thinking lol
     
  8. harsha_mic

    harsha_mic Registered Member

    Joined:
    Mar 11, 2009
    Posts:
    815
    Location:
    India
    I think it would be great to have ability to control the auto play through uBlock filters, whose purpose is to remove autoplay attribute from video tag
     
  9. Overkill

    Overkill Registered Member

    Joined:
    Mar 16, 2012
    Posts:
    2,343
    Location:
    USA
    Yes, that would be great :thumb:
     
  10. DOSawaits

    DOSawaits Registered Member

    Joined:
    Dec 11, 2008
    Posts:
    469
    Location:
    Belgium
    Just check the "My Filters" tab, should be near the bottom if you made the mistake recently.
    Or check the "My Rules" and check which rules are active for that site.
     
  11. hayc59

    hayc59 Updates Team

    Joined:
    Feb 9, 2002
    Posts:
    2,841
    Location:
    KEEP USA GREAT
    That worked like a charm..thank you!!
     
  12. TheWindBringeth

    TheWindBringeth Registered Member

    Joined:
    Feb 29, 2012
    Posts:
    2,171
    I have a somewhat open ended question I'd like to throw out while I'm thinking about it. I recently noticed that uBlock supports "scriptlets". I haven't dug too deeply into it yet, but it appears similar to NoScript Surrogates. I've used that NS feature, in addition to other means of injecting useful script, so just to be clear here my bias is generally positive. However, it is a subject that gives me a little pause. I may get better responses if I explain, so roughly:

    Script injected into a [secure] page could theoretically perform harmful actions. Over and above "just" blocking something that shouldn't blocked or allowing something that shouldn't be allowed. Therefore it would be best if it is reviewed by a user before they use it in production. Although some do review some things prior to performing an extension update, even many of those users don't extend the practice to subscription/filter-list updates. So injected script... scriptlets in this case... that is delivered through such a mechanism is of some additional "importance".

    At this point I'm thinking that uBlock scriptlets can be delivered in such a fashion (via updating of resources.txt) and the scriptlets defined there can also be controlled via filter list rules that come from third-parties. Is that correct?

    It looks like there is a way for a user to create an "exception" for scriptlets to prevent their execution (a site-specific exception or a non-site-specific exception). Is there a syntax that disables ALL scriptlets?

    Is there a convenient way for a user to allow only their own scriptlets while rejecting scriptlets/scriptlet-rules coming from others?
     
  13. Overkill

    Overkill Registered Member

    Joined:
    Mar 16, 2012
    Posts:
    2,343
    Location:
    USA
    How do I get rid of these ads? I tried element picker, but after page reload they come back :mad:

    screenshot.4.png
     
  14. wat0114

    wat0114 Registered Member

    Joined:
    Aug 5, 2012
    Posts:
    4,063
    Location:
    Canada
    Try narrowing the cosmetic filter to:

    Code:
    postimg.org###content > .show-image.container > .td-ad
     
  15. guest

    guest Guest

    Are you using using Chrome/Chromium?
    If yes, you'll need an additional extension: "uBlock Origin WebSocket"
    I looked in the source and i think this site is displaying ads via Websockets.
     
  16. guest

    guest Guest

    With the additional extension (only Chrome/Chromium need it) you'll now see this blocked entry in the logger (=and no ads):
    websocket.png
     
  17. Overkill

    Overkill Registered Member

    Joined:
    Mar 16, 2012
    Posts:
    2,343
    Location:
    USA
    That worked! How did you come up with that string?
     
  18. Overkill

    Overkill Registered Member

    Joined:
    Mar 16, 2012
    Posts:
    2,343
    Location:
    USA
    Thanks Mood, I think I have it whipped
     
  19. gorhill

    gorhill Guest

  20. wat0114

    wat0114 Registered Member

    Joined:
    Aug 5, 2012
    Posts:
    4,063
    Location:
    Canada
    When the Cosmetic filter window opens, you will see under: Cosmetic Filters a number of string possibilities. Just click them one at a time until the unwanted content is blocked, then choose "Create".

    BTW, Cosmetic filtering will only hide the unwanted ads, but it will not enhance privacy. Maybe what @mood is suggesting will enhance privacy? That I'm not sure of.
     
  21. gorhill

    gorhill Guest

    This just hides the ads however. Wherever possible, it's best to prevent the connection to the remote server, which is what "*$websocket,domain=postimg.org" does.
     
  22. gorhill

    gorhill Guest

    Not sure what you mean by "scriptlets ... can also be controlled": their injection or non-injection can be controlled by a filter, be it through 3rd-party filters or user-defined filters.

    No such thing at this point. I do want to provide the ability to completely disable scriptlets injection, but I haven't had the opportunity for providing such setting yet. What I really want to do is to provide an extra pane in the dashboard similar to FF's about:config, where a user could further fine-tune internals. This way it would be easy for me to add settings which should not go into the main UI panels -- because they would be too arcane for majority of users.

    The only scriplets allowed at this point are those I provide. See it as being an integral part of the extension, except that I can update that part of the code base without having to publish a new version of the extension.
     
  23. wat0114

    wat0114 Registered Member

    Joined:
    Aug 5, 2012
    Posts:
    4,063
    Location:
    Canada
  24. Overkill

    Overkill Registered Member

    Joined:
    Mar 16, 2012
    Posts:
    2,343
    Location:
    USA
    Yea I have done that, but it was different then your string. Thanks
     
  25. Overkill

    Overkill Registered Member

    Joined:
    Mar 16, 2012
    Posts:
    2,343
    Location:
    USA
    Last edited: Sep 29, 2016
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.