µBlock, a lean and fast blocker

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

  1. Sampei Nihira

    Sampei Nihira Registered Member

    Joined:
    Apr 7, 2013
    Posts:
    3,365
    Location:
    Italy
    My guess is that there will be a new policy to verify MV2 extensions.
    Probably the change in this policy at the registry level will allow the use of MV2 extensions in browsers managed by the organization (beyond a set date):


    https://chromium.googlesource.com/c...tensions/ExtensionManifestV2Availability.yaml

    To check your policies:

    Code:
    edge://policy
    
    chrome://policy
     
  2. Compu KTed

    Compu KTed Registered Member

    Joined:
    Dec 18, 2013
    Posts:
    1,412
    In uBO add following:
    My Rules - no-cosmetic-filtering: (address of website) false

    My Filters - (address of website)##.bIMBNA.Article__StyledLink-sc-13gl6l5-10.imMKuX.Link__A-eh4rrz-0

    NOTE: To remove leftover blank box

    My Filters - (address of website)##.gbKkdK.Article__NavigationLinks-sc-13gl6l5-7
     
  3. Sampei Nihira

    Sampei Nihira Registered Member

    Joined:
    Apr 7, 2013
    Posts:
    3,365
    Location:
    Italy
  4. Brummelchen

    Brummelchen Registered Member

    Joined:
    Jan 3, 2009
    Posts:
    5,918
    maybe its better to separate uB0 lite - its a different extension. i consider it not as helpful in this thread.
     
  5. Rasheed187

    Rasheed187 Registered Member

    Joined:
    Jul 10, 2004
    Posts:
    17,559
    Location:
    The Netherlands
    Thanks, but I'm afraid it doesn't work, I still get to see the popup after about 20 seconds.
     
  6. Sampei Nihira

    Sampei Nihira Registered Member

    Joined:
    Apr 7, 2013
    Posts:
    3,365
    Location:
    Italy
    It's a good idea.;)

    Any forum members opening the thread?

    Not me,because I have already opened the AdGuard MV3 thread.
     
  7. Sampei Nihira

    Sampei Nihira Registered Member

    Joined:
    Apr 7, 2013
    Posts:
    3,365
    Location:
    Italy
    uBlock Origin Lite will not have the ability to block cookies warnings:

    https://github.com/uBlockOrigin/uBOL-issues/issues/5
     
  8. Gandalf_The_Grey

    Gandalf_The_Grey Registered Member

    Joined:
    Jan 31, 2012
    Posts:
    1,188
    Location:
    The Netherlands
  9. pegas

    pegas Registered Member

    Joined:
    May 22, 2008
    Posts:
    2,966
    That's the question. I get the best results with blocking cookie notifications from the I don't care about cookies extension. Neither Adguard nor uBlock are as effective as the one mentioned.
     
    Last edited: Jan 5, 2023
  10. wat0114

    wat0114 Registered Member

    Joined:
    Aug 5, 2012
    Posts:
    4,065
    Location:
    Canada
    Those cookies warnings are kind of a nuisance but I just click "Okay" absent mindedly so I don't care any more. It's not enough to justify adding a specialized extension to deal with them.
     
  11. Brummelchen

    Brummelchen Registered Member

    Joined:
    Jan 3, 2009
    Posts:
    5,918
    some cookie consent banners are important, some not. its up on you, if you experience misbehave on pages due this, you need to losen restrictions and confirm the consent.
     
  12. Sampei Nihira

    Sampei Nihira Registered Member

    Joined:
    Apr 7, 2013
    Posts:
    3,365
    Location:
    Italy
    Although I rarely use Youtube my simple rules for not displaying the cookies consent pop-up no longer work because they also interrupt the scrolling of videos:

    Code:
    youtube.com###dialog
    youtube.com##.opened
    youtube.com##ytd-popup-container
    youtube.com##ytd-consent-bump-lightbox.style-scope
    Does any forum member have a solution?
    TH.:)

    P.S.

    I found this solution:

    Code:
    youtube.com##+js(set, ytInitialData.topbar.desktopTopbarRenderer.interstitial.consentBumpRenderer.forceConsent, false)
    youtube.com##+js(json-prune, [].response.topbar.desktopTopbarRenderer.interstitial.consentBumpRenderer)
    youtube.com##+js(json-prune, topbar.desktopTopbarRenderer.interstitial.consentBumpRenderer)
    youtube.com##+js(set, ytInitialData.onResponseReceivedEndpoints, undefined)
    youtube.com##+js(set, ytInitialData.topbar.desktopTopbarRenderer.interstitial.consentBumpV2Renderer, undefined)
    youtube.com##+js(json-prune, [].response.overlay.consentBumpV2Renderer topbar.desktopTopbarRenderer.interstitial.consentBumpV2Renderer overlay.consentBumpV2Renderer response.overlay.consentBumpV2Renderer)
    youtube.com##+js(set, ytInitialData.desktopTopbar.desktopTopbarRenderer.interstitial.consentBumpV2Renderer, undefined)
    I'll create a backup now and then check if it works in AdGuard MV3.
     
    Last edited: Jan 18, 2023
  13. Rasheed187

    Rasheed187 Registered Member

    Joined:
    Jul 10, 2004
    Posts:
    17,559
    Location:
    The Netherlands
    BTW guys, can you remove this animated banner with uBlock's elemement picker on eToro? It adds this rule, but nothing happens, it stays visible.

    https://www.etoro.com/nl/markets/tep.pa (scroll down to green animated banner)
     
  14. Stupendous Man

    Stupendous Man Registered Member

    Joined:
    Aug 1, 2010
    Posts:
    2,857
    Location:
    the Netherlands
    uBlock Origin's element picker offers a choice of network filters and cosmetic filters.
    The top one is often but not always the best choice.
    For that eToro page, the second offered network filter works, but still leaves a remnant.
    The cosmetic filters work much better. Have you tried those?
    N.B. I use Firefox 109.0 (snap, Kubuntu), I don't know if uBlock Origin experience is different with other browsers.
     
  15. Rasheed187

    Rasheed187 Registered Member

    Joined:
    Jul 10, 2004
    Posts:
    17,559
    Location:
    The Netherlands
    To be honest, I haven't got a clue what you mean, I simply always select elements that I would like to remove and 9 out of 10 times uBlock will simply remove it. I never choose between network and cosmetic filters, didn't even know this was an option. Like I said, the rule is being made in ''My Filters'' to remove the .svg image, but nothing happens.
     
  16. Stupendous Man

    Stupendous Man Registered Member

    Joined:
    Aug 1, 2010
    Posts:
    2,857
    Location:
    the Netherlands
    Ah, I guess you right-click the element to block and choose 'Block element'? I never used that.
    I open the uBlock Origin menu and select element picker mode. Next I select the element to pick, and then I get the options that I mentioned, different filters offered. If you haven't tried that, have a look.
    Or perhaps it's different in other browsers than Firefox? I cannot tell you.
     
  17. nicolaasjan

    nicolaasjan Registered Member

    Joined:
    Sep 23, 2018
    Posts:
    890
    Location:
    The Netherlands
    Code:
    www.etoro.com###\30 __entry__f88c16cb-aa9b-4cfc-9145-c607dff6a486 > .ng-star-inserted.post-item > .post-item-content > et-attachment.ng-star-inserted
    
    ?
     
  18. Rasheed187

    Rasheed187 Registered Member

    Joined:
    Jul 10, 2004
    Posts:
    17,559
    Location:
    The Netherlands
    Thanks, this does indeed remove the animated banner. But how did you figure this out?

    Yes exactly, I always use the right click menu, didn't know there was also a different way to remove objects. Sometimes I do have to make multiple rules (via right click) before some annoying object gets removed totally. And I do know that these filters are purely cosmetic, sadly enough. So when you save these websites, all of the annoying stuff is still there, because uBlock only hides them, but not when they are loaded from disk.
     
  19. nicolaasjan

    nicolaasjan Registered Member

    Joined:
    Sep 23, 2018
    Posts:
    890
    Location:
    The Netherlands
    Well, just trying different cosmetic filters one by one, until I'm satisfied. :)

    https://i.postimg.cc/pdDXndJc/Screenshot-20230125-2.png

    B.t.w., with this network filter you can block the animated .gif:
    Code:
    ||res.cloudinary.com/etoro/image/fetch/c_fill,g_faces,g_auto:subject,h_330,w_660,f_auto,q_auto/https%3A%2F%2Fopenbook-static-files-prod.s3.amazonaws.com%2Frich-media%2Fimages%2F%2Fa0dc7dbc-a1f4-4472-8ebc-3d10245470d7.gif$image
    
     
  20. Rasheed187

    Rasheed187 Registered Member

    Joined:
    Jul 10, 2004
    Posts:
    17,559
    Location:
    The Netherlands
    Well, I also tried this, but I got only one cosmetic filter and it's actually a .svg file from what I see, not a GIF. But I think I must take a look at the network filters thingy. Because from what I understood, this won't just hide those objects, but will actually block them from loading. I wonder why uBlock's element picker doesn't do this in the first place.
     
  21. nicolaasjan

    nicolaasjan Registered Member

    Joined:
    Sep 23, 2018
    Posts:
    890
    Location:
    The Netherlands
    The .svg one is also a network filter.
    No idea why uBO suggest that one, because it's behind the .gif...
    Also, it's listed twice under the network filters...

    https://i.postimg.cc/02NJLhpX/Screenshot-20230125-3.png
     
  22. nicolaasjan

    nicolaasjan Registered Member

    Joined:
    Sep 23, 2018
    Posts:
    890
    Location:
    The Netherlands
    After blocking both the .gif and the .svg, there is still a placeholder.
    Can be hidden like this:
    Code:
    www.etoro.com###\30 __entry__f88c16cb-aa9b-4cfc-9145-c607dff6a486 > .ng-star-inserted.post-item > .post-item-content > et-attachment.ng-star-inserted
    
     
    Last edited: Jan 25, 2023
  23. Stupendous Man

    Stupendous Man Registered Member

    Joined:
    Aug 1, 2010
    Posts:
    2,857
    Location:
    the Netherlands
    @Rasheed187,
    I had another look.
    I never tried the 'Block element' option in the browser context menu before, but I have now.

    The 'Block element' option in context menu does about the same* as the 'Enter element picker mode' in the uBlock Origin menu.
    Both options allow to select an element to block, and after selecting when you move the mouse cursor to the lower right of the browser window you find the rule creator dialog box. In the dialog box you can try which filter rule works best, the first offered filter rule, or one of the next offered. The first offered is often but not always the best choice.

    *Note - The only difference between 'Block element' and 'Enter element picker mode' that I notice, is that 'Block element' focusses on the selected element, while 'Enter element picker mode' leaves the option to pick the element to select. With the 'Block element' option, you would need to select 'Pick' in the rule creator dialog box to be able to pick a different element.

    If you haven't already, you can have a look at these pages:
    uBlock Origin wiki Element picker page
    2017 Ghacks article regarding uBlock Origin 'Block element' and 'Element picker' feature
     
    Last edited: Jan 26, 2023
  24. Rasheed187

    Rasheed187 Registered Member

    Joined:
    Jul 10, 2004
    Posts:
    17,559
    Location:
    The Netherlands
    Thanks for the feedback guys. But to clarify, I never even looked at the network and cosmetic filters, so I never actually select anything, I didn't even know this was possible. I'm a bit of a noob when it comes to this. But now I will experiment a bit more with this feature.

    For example, on imdb.com I have removed certain objects, but these are apparantly only cosmetic, while I would prefer stuff not be loaded at all. But I guess it's up to uBlock to decide whether this is possible in the first place. I will keep you guys posted.
     
  25. Rasheed187

    Rasheed187 Registered Member

    Joined:
    Jul 10, 2004
    Posts:
    17,559
    Location:
    The Netherlands
    BTW, perhaps a bit of a silly question, but is it possible to force certain imbedded content from let's say Twitter to be played inside the same website? For example, on fcupdate.nl I often get redirected to the Twitter website when clicking on videos, I hate this stuff. I wonder if there is some type of rule in uBllock to prevent this, see link for example.

    https://www.fcupdate.nl/voetbalnieu...copa-del-rey-na-spektakelstuk-tegen-atletico/
     
  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.