µBlock, a lean and fast blocker

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

  1. gorhill

    gorhill Guest

    Because I didn't think of it. I would have to add a new permission, "ftp://*" and see if this works. According to webRequest API documentation, this is a valid permission. Now the problem would be that the browser would flag all existing installations of uBO as in need of a new permission, and I would rather avoid this for now given how adding a new permission ("privacy") went last time. However I will add it by default to Firefox's permission set, not sure though how the WebExtension API will deal with this.
     
  2. gorhill

    gorhill Guest

    I don't see popups on that site. You probably mean "overlays", in which case cosmetic filters must be created on a per-case basis.
     
  3. Krusty

    Krusty Registered Member

    Joined:
    Feb 3, 2012
    Posts:
    10,240
    Location:
    Among the gum trees
    So I've bit the bullet and installed uBlock Origin in just Firefox for now. FF does indeed seem to be using quite a lot less RAM than it does with ABP, but it's only been a short while since I installed uBO.

    In time I could try Advanced mode (I did have a quick look at that) but for the time being I'll stick with the basic settings and keep using NoScript. uBO seems a lot more complicated than ABP.
     
  4. Nanobot

    Nanobot Registered Member

    Joined:
    Jun 23, 2010
    Posts:
    473
    Location:
    Neo Tokyo
  5. TheWindBringeth

    TheWindBringeth Registered Member

    Joined:
    Feb 29, 2012
    Posts:
    2,171
    You know more about the issues than I do. However, I prototyped a Firefox compatible WebExtension that does primitive FTP blocking. Testing it in FF 49.0.1 and FF Portable Developer 51.0a2 (temporarily and installed). Basically, it worked. I did notice:
    • It worked without an ftp://*/* entry in manifest permissions. Maybe because the permissions mechanisms aren't finished, I don't know.
    • I see one call to onBeforeRequest for top level FTP requests, but for others I see multiple calls. Doesn't matter if I cancel or not. Canceling did appear to work and prevent connections though.
    • I didn't receive any behind the scenes traffic. Not even for http/https when I listened for those. Maybe that hasn't been completed either, I don't know.
    Take with a grain of salt (my first WebExtension) but that is what I saw. Edit: More detailed testing revealed additional issues which require confirmation. For now: a suggestion to carefully test all the scenarios you can think of.

    As for user's being touchy about new permissions, well, maybe that makes some sense. I'd like to see the permissions vs optional_permissions experience. If I can't figure out how to goad Firefox into permissions pestering I'll have a look at Chrome.
     
    Last edited: Oct 20, 2016
  6. Minimalist

    Minimalist Registered Member

    Joined:
    Jan 6, 2014
    Posts:
    14,883
    Location:
    Slovenia, EU
  7. Overkill

    Overkill Registered Member

    Joined:
    Mar 16, 2012
    Posts:
    2,343
    Location:
    USA
    Anyone know how to block facebook ads like in post #2341?
     
  8. Nanobot

    Nanobot Registered Member

    Joined:
    Jun 23, 2010
    Posts:
    473
    Location:
    Neo Tokyo
    Code:
    facebook.com##.ego_section[-ext-has="a.adsCategoryTitleLink"]
    Link
     
  9. Gandalf_The_Grey

    Gandalf_The_Grey Registered Member

    Joined:
    Jan 31, 2012
    Posts:
    1,188
    Location:
    The Netherlands
    How do I make an exception on a static filter for 1 website?
    The website https://www.security.nl doesn't load because of static filter ##.cookie_consent found in Fanboy’s Annoyance List.
     
  10. DOSawaits

    DOSawaits Registered Member

    Joined:
    Dec 11, 2008
    Posts:
    469
    Location:
    Belgium
    You can add the line to your filters.
    Code:
    www.security.nl#@#.cookie_consent
    and hide the nag
    Code:
    www.security.nl###cookie_consent_container
     
    Last edited: Oct 20, 2016
  11. Overkill

    Overkill Registered Member

    Joined:
    Mar 16, 2012
    Posts:
    2,343
    Location:
    USA
    Isn't this for adguard? will it work in ubo?
     
  12. Gandalf_The_Grey

    Gandalf_The_Grey Registered Member

    Joined:
    Jan 31, 2012
    Posts:
    1,188
    Location:
    The Netherlands
    Thanks DOSawaits :thumb:
    Code:
    security.nl#@#.cookie_consent
    works for me.
     
  13. rethink

    rethink Registered Member

    Joined:
    Jan 13, 2015
    Posts:
    75
    Can I somehow block the tracking script in google search from ublock? If i make the script not to load in Umatrix I cannot use maps. Is there any other way?
     
  14. gorhill

    gorhill Guest

    Yes, this is AG syntax. For uBO that would be
    Code:
    facebook.com##.ego_section:has(a.adsCategoryTitleLink)
    I will add code to transcribe AG syntax into uBO syntax at load time for a future release.
     
  15. Overkill

    Overkill Registered Member

    Joined:
    Mar 16, 2012
    Posts:
    2,343
    Location:
    USA
    Much appreciated!
     
  16. guest

    guest Guest

    But at the moment there is no problem with adding Adguard-related filter lists to uBlockO?
    (Supported AG-filters = "translated", not supported AG-filters = discarded)
     
  17. Overkill

    Overkill Registered Member

    Joined:
    Mar 16, 2012
    Posts:
    2,343
    Location:
    USA
    Whenever I send someone a message on facebook, after I click send the blue loading lines will start flashing/animating and I have to reload the page before I can see the message, how do I fix this?
    Here's my settings in ubo, static filtering is the default lists
    2016-10-21_205053.png
     
  18. bjm_

    bjm_ Registered Member

    Joined:
    May 22, 2009
    Posts:
    4,457
    Location:
    .
    and how do you know site is safe, and how do you know third party is safe
     
  19. Overkill

    Overkill Registered Member

    Joined:
    Mar 16, 2012
    Posts:
    2,343
    Location:
    USA
    I did noop 3rd party frames and scripts:confused:
     
  20. @bjm you will never know whether third party are safe, but the same applies for first party binaries, since they are both external.

    Better use a solid browser with build-in sandbox or when you have to use Firefox (e.g. to watch on-demand television using unsafe outdated plug-ins), run it in a proven third-party sandbox.
     
  21. Rasheed187

    Rasheed187 Registered Member

    Joined:
    Jul 10, 2004
    Posts:
    17,559
    Location:
    The Netherlands
    OK thanks, so a global rule to block this isn't possible. I'm seeing these kind of "pop-ups" more and more, it's a disgusting new tactic of ad companies, no wonder this ad-blocking problem got so big, they still haven't learned their lesson.
     
  22. bjm_

    bjm_ Registered Member

    Joined:
    May 22, 2009
    Posts:
    4,457
    Location:
    .
    Yes,. Respectfully, dynamic rules to get a website to function that will not otherwise function, seems an exercise in IDK.
    CNN.com (for example) that presents a laundry list of first and third party and then making rules (or noop) based upon I do not see smoke, seems as exercise in IDK. Granted, turner.com was safe, as far as I know, last time so, I can try a rule for turner.com. To what purpose beyond an exercise in IDK.
    Yes,. Static filters + Sandbox. Keep it simple.....Just saying.
     
  23. abe699

    abe699 Registered Member

    Joined:
    Oct 23, 2016
    Posts:
    3
    Location:
    Earth
    Mind changing this to uBO format too?
    Code:
    facebook.com##div[id^="hyperfeed_story_id_"][-ext-has='span[class$="fwb fcb"]'] 
     
  24. Also Chrome has Control Flow Guard already in Canary version available and new Javascript feature 'Ignition' facilitates additional structuring and sanitizing of javascript code, see ignition design doc (link)

     
    Last edited by a moderator: Oct 23, 2016
  25. Don't worry CFG + Ignition + Flash being phased out ==> raising the bar for webbased exploits to be successful and reducing the real world benefits of script blockers. But everyone entitled to a hobby (playing with your script blocker to feel safer).

    See post above
     
    Last edited by a moderator: Oct 23, 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.