Uassets: discordapp.com

Created on 27 Jun 2019  ยท  13Comments  ยท  Source: uBlockOrigin/uAssets

URL(s) where the issue occurs

Any random server or thread on https://discordapp.com

Describe the issue

This is somewhat related to https://forums.lanik.us/viewtopic.php?f=64&t=43113, but I now have an additional example and a decent-ish solution:

When pasting certain links into Discord channels/chats, their embed images fail to load due to generic blocking rules in various lists (Usually EasyList).

The solution I propose for Discord only: @@||discordapp.net$image,domain=discordapp.com

Screenshot(s)

  • Example 1:
    image
  • Example 2:
    image

Versions

  • Browser/version: Google Chrome 75.0.3770.100 64-bit for Windows
  • uBlock Origin version: Nano Adblocker 1.0.0.118 + Nano Defender 15.0.0.153

Settings

  • Lists used:
    image
  • Advanced settings:
    image

Notes

I was not able to get @@||discordapp.com$generichide to work, and I was not personally able to figure out why.

I could not see any existing blocking rules in EasyList, uAssets Base or AdGuard Base that targeted Discord images of any kind, so I presume it's okay to whitelist discordapp.net as a whole.

Additionally, it seems that .net/ad/$image caused problems with the video suggestions on iSpot as well, such that I propose adding @@||.cloudfront.net/ad/$image,domain=ispot.tv as well:
image

All 13 comments

@@||discordapp.com^$generichide
works fine on my end.
image

Additionally, it seems that .net/ad/$image caused problems with the video suggestions on iSpot as well, such that I propose adding @@||.cloudfront.net/ad/$image,domain=ispot.tv as well:

Can you point me to those video suggestions?

@@||discordapp.com^$generichide works fine on my end.

Ah, okay. I'll take your word for it, then.

Can you point me to those video suggestions?

They should be beneath the video information values, marked in orange in this screencap:
image

direct links?

Presuming you're talking about iSpot (Example link is the same as in the Discord part of the issue report), I believe they probably serve as direct links, but that images are supposed to show up above the grey links. Here's how the oranged part above (and apparently also the Screenshots section) looks like with @@||.cloudfront.net/ad/$image,domain=ispot.tv:
image

or:

@@||cloudfront.net/ad/*-small-*$image,domain=ispot.tv
@@||cloudfront.net/img/events/event-placeholder.png$image,domain=ispot.tv

if no EasyList block "big" photos?

I don't use discordapp, can you narrow the exception or is that not possible?
What are the requests blocked in your examples 1 and 2.

```
https://images-ext-2.discordapp.net/external/YNarCRRm7_ftk93rzFNBX9MLJeAUfPhVk7g7N0fKorE/https/adguard.com/img/social/og-image.jpg?width=80&height=42
````

@@||discordapp.net/external/*/img$image,domain=discordapp.com

IMO similar should safe โ“

can you narrow the exception or is that not possible?

@okiehsch NO... works:

/adguard.$domain=~adguard.com|~adguard.mobi|~adguard.oneskyapp.com|~greinr.com,badfilter
/adguard.$domain=~adguard.com|~adguard.mobi|~adguard.oneskyapp.com|~greinr.com|~discordapp.net|~discordapp.com

maybe wrong used badfilter?

What are the requests blocked in your examples 1 and 2.

Example 1: image
Example 2: image

IMO discord no have ads, so we can add exception or on EasyList:

@@||discordapp.net/external/*/img$image,domain=discordapp.com

@@||discordapp.net/external/*/img$image,domain=discordapp.com
won't work for Example 2 or am I missing something?

I see..., /img/ is from AdGuard URL only.

@@||discordapp.net/external/*$image,domain=discordapp.com

EasyList use both method fix if you analize filters.

The only explanation is the size of the letters in the url... Or it's hard to find the logic that allowed one script to pass, not the entire domain.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

macheteBadger picture macheteBadger  ยท  3Comments

pepablock picture pepablock  ยท  4Comments

ghost picture ghost  ยท  3Comments

patrickdrd picture patrickdrd  ยท  3Comments

sebastianbell picture sebastianbell  ยท  3Comments