µBlock, a lean and fast blocker

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

  1. Brummelchen

    Brummelchen Registered Member

    Joined:
    Jan 3, 2009
    Posts:
    3,659
    my bad, right - css is limited to all google pages (incl translate.google.nl)

    for the redirect i need to dig - i only had it once with an open tab.

    someone pointed out this extension
    https://addons.mozilla.org/firefox/addon/google-consent
    From images i think it only eliminates the popup, not the redirect

    after some minutes - youtube.com throws a 302 redirect location in header - and browser need to catch it and remove the redirect. Not sure if [...]monkey can do this, didn't find that much scripts/questions/topics. Otherwise once the consent pages has been loaded it wont load again, it could be a long lasting cookie
    Code:
    set-cookie
        CONSENT=PENDING+324; expires=Fri, 01-Jan-2038 00:00:00 GMT; path=/; domain=.youtube.com
     
  2. nicolaasjan

    nicolaasjan Registered Member

    Joined:
    Sep 23, 2018
    Posts:
    127
    Location:
    The Netherlands
    Can you try with deleting your cookies and just block 'consent.youtube.com' (and 'consent.google.com' for Google Search) from setting cookies as gwarser suggested?

    https://dl.dropboxusercontent.com/s/9d6i66mk8676kas/screenshot-consent.png
     
  3. nicolaasjan

    nicolaasjan Registered Member

    Joined:
    Sep 23, 2018
    Posts:
    127
    Location:
    The Netherlands
  4. Rasheed187

    Rasheed187 Registered Member

    Joined:
    Jul 10, 2004
    Posts:
    13,779
    Location:
    The Netherlands
    Well, like you said it sometimes is the only way to fix problems. On some other site I had to allow privacy.io otherwise embedded content from YouTube and Instagram wouldn't work. I don't see what the big deal is as long as you allow it only for those specific sites.

    I already see what the problem is. It seems to indeed block the pop-up but it also breaks autoplay.
     
  5. nicolaasjan

    nicolaasjan Registered Member

    Joined:
    Sep 23, 2018
    Posts:
    127
    Location:
    The Netherlands
    That's not a bug, it's a feature, in my opinion. ;)
     
  6. Sampei Nihira

    Sampei Nihira Registered Member

    Joined:
    Apr 7, 2013
    Posts:
    1,986
    Location:
    Italy
    Not possible if your Pale Moon is set correctly to delete cookies on exit.
    You can check with CCleaner:

    100.JPG
    100a.JPG

    If you don't want to, thank you for your patience anyway.:thumb:
     
    Last edited: Apr 6, 2021
  7. nicolaasjan

    nicolaasjan Registered Member

    Joined:
    Sep 23, 2018
    Posts:
    127
    Location:
    The Netherlands
    As a matter of fact, I checked in Pale Moon on my main system, which is Linux Mint.
    No way CCleaner.exe will work on that, haha.

    But I manage my cookies with CookieKeeper (Classic Add-ons Archive; caa:addon/cookiekeeper).
    So they get deleted on exit, except the ones I want to keep. :)
     
  8. nicolaasjan

    nicolaasjan Registered Member

    Joined:
    Sep 23, 2018
    Posts:
    127
    Location:
    The Netherlands
    Someone posted a working way to block the EU Google Consent pop-up (not the redirect):
    https://old.reddit.com/r/uBlockOrig...gle_consent_new_solution_works_on_chrome_and/

    Code:
    !#if env_firefox
    www.google.*##^script:has-text(consentCookiePayload)
    !#endif
    !#if env_chromium
    www.google.*##+js(acis, document.cookie, YES+)
    !#endif
    Tested it on both Firefox and Ungoogled Chromium and it worked (on www.google.nl).

    [Edit]
    The rule:
    Code:
    www.google.*##+js(acis, document.cookie, YES+)
    will work on Firefox as well.
    See here.
     
    Last edited: Apr 6, 2021
  9. Sampei Nihira

    Sampei Nihira Registered Member

    Joined:
    Apr 7, 2013
    Posts:
    1,986
    Location:
    Italy
    You might be interested in this if you are still registered in that forum of lunatics:

    https://forum.palemoon.org/viewtopic.php?f=46&t=26542
     
  10. nicolaasjan

    nicolaasjan Registered Member

    Joined:
    Sep 23, 2018
    Posts:
    127
    Location:
    The Netherlands
    Thanks!

    Sometimes I go there, but I haven't posted for quite some time now. You never know what kind of toxic replies you will get. Or worse.
    And I've blocked all of M.A.T.'s avatars with the element picker. Haha.
     
  11. Rasheed187

    Rasheed187 Registered Member

    Joined:
    Jul 10, 2004
    Posts:
    13,779
    Location:
    The Netherlands
    Well the thing is, with your tweak videos will never autoplay. No matter if you directly click on a video or open it in the background and go to this tab, you will always have to click on the play button. This is very unhandy, so I rather deal with the annoying alert that seems to pop-up once per session. But I hope this somehow can be removed in the future without breaking autoplay.
     
  12. Brummelchen

    Brummelchen Registered Member

    Joined:
    Jan 3, 2009
    Posts:
    3,659
    blocking the redirect
    https://addons.mozilla.org/firefox/addon/google-consent/
    works.

    and this css against the rest of yt consent dialogs and login poups
    Code:
    #guide,
    #consent-bump,
    iron-overlay-backdrop,
    iron-overlay-backdrop.opened,
    #dialog.yt-upsell-dialog-renderer
    {
        display: none !important;
    }
    i am much more familiar with css than digging for uBo code as Sampei cited.
     
  13. Rasheed187

    Rasheed187 Registered Member

    Joined:
    Jul 10, 2004
    Posts:
    13,779
    Location:
    The Netherlands
    I'm having problems again, I guess it's because I'm using certain filter lists. On Facebook I want the video to work, which script do I need to allow? I'm almost certain that I won't have any problems figuring this out with Ghostery.

    https://www.facebook.com/missjasleensingh/
    https://www.facebook.com/missjasleensingh/videos/570732319979949/
     
  14. Jan Willy

    Jan Willy Registered Member

    Joined:
    Jan 29, 2021
    Posts:
    18
    Location:
    Netherlands
    In such cases the first thing you should do, is looking at the log. If you can't find the culprit, then it's just a matter of try and error. This means that you have to disable the filter lists one by one. But the most easy way is of course to whitelist the site. By the way, the video shows a very attractive young woman.
     
  15. nicolaasjan

    nicolaasjan Registered Member

    Joined:
    Sep 23, 2018
    Posts:
    127
    Location:
    The Netherlands
    ****, I can't see it because Facebook is blocked on my PC. ;)
     
  16. imdb

    imdb Registered Member

    Joined:
    Nov 2, 2011
    Posts:
    2,733
    believe me, you're not missing anything. she's uglier than your avatar. :p
     
  17. wat0114

    wat0114 Registered Member

    Joined:
    Aug 5, 2012
    Posts:
    3,151
    Location:
    Canada
    @Rasheed187

    I tried some different approaches based on events from the logger but nothing really worked.
     
  18. Sampei Nihira

    Sampei Nihira Registered Member

    Joined:
    Apr 7, 2013
    Posts:
    1,986
    Location:
    Italy
    UBO has already added a filter in

    uBlock filters - Privacy

    for blocking FLoC

    You can find it at the bottom of the list:


    Code:
    ! https://github.com/uBlockOrigin/uBlock-issues/issues/1553
    !#if env_chromium
    *##+js(set, document.interestCohort, undefined)
    !#endif

    Update first.;)
     
  19. wat0114

    wat0114 Registered Member

    Joined:
    Aug 5, 2012
    Posts:
    3,151
    Location:
    Canada
    Nice :thumb:
     
  20. Sampei Nihira

    Sampei Nihira Registered Member

    Joined:
    Apr 7, 2013
    Posts:
    1,986
    Location:
    Italy
    It is best not to rely on the filter alone in UBO.;):)
     
  21. wat0114

    wat0114 Registered Member

    Joined:
    Aug 5, 2012
    Posts:
    3,151
    Location:
    Canada
    Agreed, thanks.
     
  22. nicolaasjan

    nicolaasjan Registered Member

    Joined:
    Sep 23, 2018
    Posts:
    127
    Location:
    The Netherlands
    I wonder for how long uBO will work in Chrome/Chromium, given the fact that Manifest v3 will be implemented for extensions...
     
  23. Sampei Nihira

    Sampei Nihira Registered Member

    Joined:
    Apr 7, 2013
    Posts:
    1,986
    Location:
    Italy
    In my country there is a proverb that can be adapted to your question:

    Did you want the bicycle?
    Then pedal......


    :D
     
  24. nicolaasjan

    nicolaasjan Registered Member

    Joined:
    Sep 23, 2018
    Posts:
    127
    Location:
    The Netherlands
    You mean:
    If you mean Chromium is my bicycle, well not really, it's my backup browser for the few sites (mostly Google ones :mad:), that don't work really well in Firefox.
     
  25. Sampei Nihira

    Sampei Nihira Registered Member

    Joined:
    Apr 7, 2013
    Posts:
    1,986
    Location:
    Italy
    I don't remember how many total rules you use in your Chrome-based browser.
    You live well the same with the maximum number of rules allowed with v.3.
     
  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.