µBlock, a lean and fast blocker

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

  1. Rasheed187

    Rasheed187 Registered Member

    Joined:
    Jul 10, 2004
    Posts:
    18,178
    Location:
    The Netherlands
    I know what the problem is, he probably doesn't have a clue what I'm talking about, so he gets frustrated, now that's so sad. I also see hundreds of posts in this uBlock thread that I have no interest in, but you don't see me making sarcastic remarks. Sometimes it's best to stay quiet, perhaps he will learn this in the future. :D

    It's indeed Groundhog Day (this movie was way better than I remembered), because I have explained numerous of times that I never use Vivaldi's adblocker and uBlock at the same time. Not that I blame Summerheat or anything, I can see how he might have misunderstood. And I appreciate his useful posts, instead of the pointless posts of others. :p
     
  2. Brummelchen

    Brummelchen Registered Member

    Joined:
    Jan 3, 2009
    Posts:
    6,294
    very simple as always: Vivaldi blocker and ublock = NO GO!
    vivaldi is fooling him as usual. there is no one else who have such massive issues with this combination, and even it is precisely explained as many times before someone is still heavy ignoring this fact. very poor behavior.
     
  3. Jan Willy

    Jan Willy Registered Member

    Joined:
    Jan 29, 2021
    Posts:
    295
    Location:
    Netherlands
    @Brummelchen
    Don't you use the option People You Ignore?
     
  4. Stupendous Man

    Stupendous Man Registered Member

    Joined:
    Aug 1, 2010
    Posts:
    3,097
    Location:
    the Netherlands
    [off-topic plea]
    Can we stop this, please?
    Some of us seem to suffer a rather high level of annoyance and grumpiness - not only in this thread.
    And no, I don't want to use the Ignore option. I've done that until I ignored ten or more members. That proved nonproductive, as some posted content that was truly informative. So I unignored all but one.
    I would love it if we could all be kind and not too grumpy.
    WSF was one of the friendliest forums that I knew, or know.
    I would hate to conclude that I'm too sensitive even for WSF, now.
    Thank you, everyone.
    [end off-topic]
     
  5. Rainwalker

    Rainwalker Registered Member

    Joined:
    May 18, 2003
    Posts:
    2,764
    Location:
    USA
    I have been a member for 20 years and WSF has always been an environment where civil discourse was the unspoken rule. For some time now I have been seeing negativity and sarcasm becoming more and more prevalent. It truly needs to stop. At least here at WSF.
     
  6. stapp

    stapp Global Moderator

    Joined:
    Jan 12, 2006
    Posts:
    27,166
    Location:
    UK
  7. Jan Willy

    Jan Willy Registered Member

    Joined:
    Jan 29, 2021
    Posts:
    295
    Location:
    Netherlands
    Last edited: Dec 8, 2023
  8. Stupendous Man

    Stupendous Man Registered Member

    Joined:
    Aug 1, 2010
    Posts:
    3,097
    Location:
    the Netherlands
    Can anyone say what kind of images are animated images like this one, and how to block all such animated images for persgroep.net websites like volkskrant.nl?

    https://images0.persgroep.net/rcs/vecJhvgQW4zt2xDk0C9X6cfBiog/diocontent/238056543/_focus/0.5/0.5/_fill/560/280?appId=93a17a8fd81db0de025c8abd1cca1279&quality=0.85

    You find that image with the article "Waar staan we met het klimaat? En wat kunnen we van de top in Dubai verwachten?" if you scroll down this page:
    https://www.volkskrant.nl/wetenschap

    Firefox tab info says GIF image, and so says Firefox page info for such image.

    However, as the image URL has no .gif in it, blocking all .gif images for persgroep.net websites like volkskrant.nl does not work.

    So far, I block images like that with filter rules like this:
    ||images0.persgroep.net/*/238056543/

    But that way, I need to create one such filter rule for each single annoying image.

    I would very much prefer to use one global rule to block all animated GIF images for persgroep.net websites like volkskrant.nl.
    Is there a way to do so?

    Thanks very much in advance.
     
    Last edited: Dec 10, 2023
  9. Brummelchen

    Brummelchen Registered Member

    Joined:
    Jan 3, 2009
    Posts:
    6,294
    ublock is not able to handle animated images, firefox can do
     
  10. Stupendous Man

    Stupendous Man Registered Member

    Joined:
    Aug 1, 2010
    Posts:
    3,097
    Location:
    the Netherlands
    For nrc.nl, I use this filter rule to block GIF, which works perfectly:
    ||images.nrc.nl/*.gif$image

    Off-topic in this thread, but could you tell how to block GIF for images0.persgroep.net in Firefox preferences?

    Firefox autoplay audio and video is blocked, of course, but that doesn't help for animated GIF.
    In Firefox about:config I could set image.animation_mode --> none, but that would disable animations for all domains, not only GIF for images0.persgroep.net, so that's not what I want.
     
    Last edited: Dec 10, 2023
  11. Brummelchen

    Brummelchen Registered Member

    Joined:
    Jan 3, 2009
    Posts:
    6,294
    you can use prefs to force firefox to load, but not to animate -> "none". blocking is no option
    Code:
    https://searchfox.org/mozilla-central/source/layout/base/nsPresContext.cpp
    
      // * image animation
      nsAutoCString animatePref;
      Preferences::GetCString("image.animation_mode", animatePref);
      if (animatePref.EqualsLiteral("normal"))
        mImageAnimationModePref = imgIContainer::kNormalAnimMode;
      else if (animatePref.EqualsLiteral("none"))
        mImageAnimationModePref = imgIContainer::kDontAnimMode;
      else if (animatePref.EqualsLiteral("once"))
        mImageAnimationModePref = imgIContainer::kLoopOnceAnimMode;
      else  // dynamic change to invalid value should act like it does initially
        mImageAnimationModePref = imgIContainer::kNormalAnimMode;
    
    the problem behind is that you dont know how a blocked image modify webpage design, in worst case its broken.
     
  12. Stupendous Man

    Stupendous Man Registered Member

    Joined:
    Aug 1, 2010
    Posts:
    3,097
    Location:
    the Netherlands
    In the code that you referred to, you can see that for the image.animation_mode preference there are the options normal, none, and once. Including none.
    But as I said, 'none' would disable GIF animations for all domains, not only for images0.persgroep.net, so that's not what I want.
    But thank you, anyway. :thumb:
     
  13. Brummelchen

    Brummelchen Registered Member

    Joined:
    Jan 3, 2009
    Posts:
    6,294
    sorry, i missed it :/
     
  14. Stupendous Man

    Stupendous Man Registered Member

    Joined:
    Aug 1, 2010
    Posts:
    3,097
    Location:
    the Netherlands
    No problem at all, Brummelchen.
    Thanks again.

    If anyone else should know about what I asked recently, how volkskrant.nl pages load images0.persgroep.net images, that look to be animated GIF, but have no .gif in the string, and if there would be a way to filter such images, your insights are still most welcome.

    As I said in a later post, for some other domains it is easy to block GIF by using *.gif$image, but this does not work for volkskrant.nl, as there is no .gif in the string.

    Thanks again, everyone.
     
  15. Brummelchen

    Brummelchen Registered Member

    Joined:
    Jan 3, 2009
    Posts:
    6,294
    can you please give an example page where such gif is shown?
    i dont visit NL pages in common, more DE.
    if gif represents ads, than is it has benefit to block ads, not gifs.
    for the main page "images0" is delivering only "jpeg"
     
  16. Stupendous Man

    Stupendous Man Registered Member

    Joined:
    Aug 1, 2010
    Posts:
    3,097
    Location:
    the Netherlands
    I did in my previous post.

    On the page https://www.volkskrant.nl/wetenschap, scroll down to the article "Waar staan we met het klimaat? En wat kunnen we van de top in Dubai verwachten?", it has an animated image, in mostly yellow.

    In Firefox, if you right-click that image and select 'View Image Info', the Page Info for that image says 'GIF Image'.

    Or in Firefox, if you right-click the image and select 'Open Image in New Tab', this will open, for which Firefox tab info says 'GIF Image':
    https://images0.persgroep.net/rcs/vecJhvgQW4zt2xDk0C9X6cfBiog/diocontent/238056543/_focus/0.5/0.5/_fill/560/280?appId=93a17a8fd81db0de025c8abd1cca1279&quality=0.85

    It's not an ad, just animation, but animation like that is annoying to me on certain pages.
     
  17. Rasheed187

    Rasheed187 Registered Member

    Joined:
    Jul 10, 2004
    Posts:
    18,178
    Location:
    The Netherlands
    Didn't I already explain that I could reproduce this latest issue on both Vivaldi and Waterfox? In general, there are no major problems with Vivaldi and uBlock, but some websites act a bit weirdly. For example, I can't get videos to load on this website, I have tried a couple of things on Waterfox and Vivaldi, but with no success:

    https://www.gids.tv/video/607440/zien-oprah-winfrey-is-enorm-veel-afgevallen
     
    Last edited: Dec 13, 2023
  18. Brummelchen

    Brummelchen Registered Member

    Joined:
    Jan 3, 2009
    Posts:
    6,294
    it has relation to the topic "19 vragen" - so its a teaser image to click on like "Nieuws" below which is not animated. thats what i meant. for me i would prefer firefox prefs.
    Code:
    .teaser__image img
    or make it smaller with custom css
     
  19. Stupendous Man

    Stupendous Man Registered Member

    Joined:
    Aug 1, 2010
    Posts:
    3,097
    Location:
    the Netherlands
    I'm not sure what you mean, using that in Firefox preferences.
    What do you mean, exactly?
    In Firefox preferences, I can only think of setting image.animation_mode to once, or none.
    I'd rather not do that.

    If not in Firefox preferences,
    but if I use uBlock Origin filter rule
    www.volkskrant.nl##*.teaser__image
    or
    www.volkskrant.nl##*.teaser__image__thumbnail
    it blocks not only the animated image, but most images, which is not what I want.

    It's only now the image is as large as that, together with the other images in the left column. That's new. Before, it was smaller, like the middle and the right column. Another day, it will be smaller again, probably.

    Thanks very much for trying to help. :thumb:

    For now, I'll keep that image hidden, using this filter rule:
    ||images0.persgroep.net/*/238056543/
    And similar rules for a few other images that are annoying to me as well.
     
  20. Stupendous Man

    Stupendous Man Registered Member

    Joined:
    Aug 1, 2010
    Posts:
    3,097
    Location:
    the Netherlands
    First, I didn't look at the page you suggested, as its topic was off-putting to me. Why would I want to see how Oprah Winfrey lost a lot of weight?
    But anyhow, as you probably posted for a reason, I took a look at the page.

    In Firefox with uBlock Origin, with my Firefox settings and my uBO filter lists, the video does not load either. So your issue is not limited to Vivaldi and Waterfox.
    The page says, "Werkt de video hierboven niet? Bekijk de video hier bij KIJK." Offering a link to watch the video at kijk.nl.
    At kijk.nl, it says, "De door jou gezochte pagina is helaas niet (meer) beschikbaar." That seems to indicate that the video is no longer available.
    However, I see the same with other videos at gids.tv and kijk.nl, I can hardly believe all those videos are no longer available.

    Anyhow, the issue is not limited to Vivaldi and Waterfox, but may be because of settings or filter lists.
    But are you sure this really is an issue for you? I could hardly find anything at gids.tv/videos that was not off-putting to me.
     
    Last edited: Dec 14, 2023
  21. wat0114

    wat0114 Registered Member

    Joined:
    Aug 5, 2012
    Posts:
    4,100
    Location:
    Canada
    That site seems to be seriously broken, at least for playing the video content. Even if I disable uBO and allow 3rd-party cookies on both Floorp and MS Edge browsers, none of the video content plays.
     
  22. Sampei Nihira

    Sampei Nihira Registered Member

    Joined:
    Apr 7, 2013
    Posts:
    3,800
    Location:
    Italy
    Much more interesting is the case of an image that looks like jpg but instead is webp:

    https://ic-ph-lm.xhcdn.com/a/ZWUxZj...MGFjOGI1OWFkNTQ/webp/000/515/407/782_1000.jpg


    It is possible to verify this if you save the image in your pc or examine it with the browser:

    1.jpg

    2.jpg

    You can save the image directly to jpg if you use the browser tools:

    3.jpg

    With direct download you are forced to manually change the file extension.
    Unfortunately, UBO does not seem to handle the blocking of these images.

     
  23. plat

    plat Registered Member

    Joined:
    Dec 19, 2018
    Posts:
    2,233
    Location:
    Brooklyn, NY
    I actually have an ext. that changes webp to jpeg or jpg or png. It's only on demand so it's not active continuously. However, since these webp images are becoming more frequent in occurrence, maybe this is a feature uBO can consider to block as well. :)
     
  24. Jan Willy

    Jan Willy Registered Member

    Joined:
    Jan 29, 2021
    Posts:
    295
    Location:
    Netherlands
    Last edited: Dec 14, 2023
  25. Brummelchen

    Brummelchen Registered Member

    Joined:
    Jan 3, 2009
    Posts:
    6,294
    pointless, old. that libs where already fixed (also in firefox), twice this year. see date of old article.

    https://www.mozilla.org/en-US/security/advisories/mfsa2023-40/
    and this was BEFORE october.
     
  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.