uBlockOrigin / uAssets

Resources for uBlock Origin, uMatrix: static filter lists, ready-to-use rulesets, etc.
GNU General Public License v3.0
4.2k stars 776 forks source link

animesaturn.cx: nuisance #25280

Closed GyomeiHimejima9906 closed 2 months ago

GyomeiHimejima9906 commented 2 months ago

Prerequisites

URL address of the web page

https://www.animesaturn.cx/watch?file=9DUix2WqlbTbC&server=1

Category

nuisance

Description

the filter block ads but don't remove the invisible overlay. (it don't create popups and remove it self when cliked)

Other extensions used

"proton pass: free password manager", "lettore di testo (testo in voce)" ({2A191591-AFDE-4CA0-AA91-46EBAB8E8A0B})

Screenshot(s)

Screenshot(s) {5A3DC846-D5B4-4D0E-8CCA-50ADB5750037} {7F457BC0-73ED-4763-B74A-10DD2879C63E}

Configuration

```yaml uBlock Origin: 1.59.0 Chromium: 128 filterset (summary): network: 152213 cosmetic: 55192 scriptlet: 22278 html: 0 listset (total-discarded, last-updated): default: user-filters: 0-0, never ublock-filters: 39957-389, 5m ublock-badware: 11085-6, 6m ublock-privacy: 1126-2, 6m ublock-unbreak: 2471-0, 6m ublock-quick-fixes: 94-0, 6m easylist: 85897-476, 6m easyprivacy: 53047-648, 6m urlhaus-1: 25410-0, 6m plowe-0: 3543-0, 6m ITA-0: 8748-22, 6m filterset (user): [empty] userSettings: [none] hiddenSettings: [none] supportStats: allReadyAfter: 1399 ms maxAssetCacheWait: 81 ms cacheBackend: indexedDB popupPanel: blocked: 9 network: acscdn.com: 1 adforcast.com: 1 amon1.net: 1 blurbreimbursetrombone.com: 1 d3v3bqdndm4erx.cloudfront.net: 1 googletagmanager.com: 1 puffexies.com: 1 sordimtaulee.com: 1 zimpolo.com: 1 extended: ##+js(set-constant, rwt, noopFunc) ##+js(set-attr, c-wiz[data-p] [data-query] a[target="_blank"][ro… ##+js(no-setInterval-if, adblock) ##+js(no-window-open-if) ##+js(remove-attr, target, #downloadvideo) ##+js(adjust-setTimeout, counter) ##+js(abort-current-script, JSON.parse, Promise) ##+js(abort-current-script, document.documentElement, break;case… ##+js(abort-current-script, EventTarget.prototype.addEventListen… ##+js(remove-node-text, script, /h=decodeURIComponent|popundersP… ```
stephenhawk8054 commented 2 months ago

You need the overlay because when you click on it, the site will append the video source to the player. Removing it will just make the video buffering due to no source.

You can test by using this custom filter

streamtape.com##.play-overlay
uBlock-user commented 2 months ago

the site will append the video source to the player.

We need a scriptlet which can discharge specific events related to the button, then you will be able to block the overlay. AdGuard already has this scriptlet.

GyomeiHimejima9906 commented 2 months ago

I reported this because adguard remove the overlay with defoults filters

uBlock-user commented 2 months ago

@ShinobuKocho9906 are they using trusted-dispatch-event scriptlet ?

GyomeiHimejima9906 commented 2 months ago

No I don't know not it enable it

uBlock-user commented 2 months ago

That's the only way you can have a working player with video source and also block the overlay

stephenhawk8054 commented 2 months ago

I mean, you can totally mimic their script using rpnt

streamtape.com##.play-overlay
streamtape.com##+js(rpnt, script, /^.+$/s, document.getElementById("mainvideo").src=$("#botlink").text()+"&stream=1";player.currentTrack = 0;, condition, srclink)

I just don't see much point to having risk of adding more filters for just an annoyance like this.

ghajini commented 2 months ago

trusted scriptlets are not for shady sites like this imo

uBlock-user commented 2 months ago

trusted scriptlets are not for shady sites like this imo

All video hosting sites are shady in some way, not point in deciding on this basis.

totally mimic their script using rpnt

haha so the event is inline sourced ?

adding more filters for just an annoyance like this.

For everyday visitors of that video hosting site, it's a frustrating annoyance.

stephenhawk8054 commented 2 months ago

Yeah, it's just inline script. I don't mind trusted scriptlets though, if they are needed for ads, but I'm just refraining of adding more filters that could potentially cause more breakages (hiding and replacing a whole script tag) when they just serve the purpose of removing an overlay (that doesn't cause popups).

uBlock-user commented 2 months ago

when it just serves the purpose of removing an overlay (that doesn't cause popups).

How many times you have to click for the video source to load and render ? I remember being 3 the number, hence the annoyance.

stephenhawk8054 commented 2 months ago

It's just one to remove the overlay, and one to play the video (which is needed with no overlay too).

uBlock-user commented 2 months ago

@stephenhawk8054 Need 2 clicks for removing the overlay at https://streamtape.com/v/x9XP266Zz2fkg0Q/ (NSFW)

Also the rpnt filter doesn't work there.

Edt: modified the filter - streamtape.com##+js(rpnt, script, /^.+$/s, document.getElementById("mainvideo").src=$("#norobotlink").text();player.currentTrack = 0;, condition, srclink)

stephenhawk8054 commented 2 months ago

It's because that link uses #captchalink instead of #botlink so you'll need to add another one:

streamtape.com##.play-overlay
streamtape.com##+js(rpnt, script, /^.+$/s, document.getElementById("mainvideo").src=$("#botlink").text()+"&stream=1";player.currentTrack = 0;, condition, #botlink)
streamtape.com##+js(rpnt, script, /^.+$/s, document.getElementById("mainvideo").src=$("#captchalink").text()+"&stream=1";player.currentTrack = 0;, condition, #captchalink)

I mean, if anyone is willing to monitor the site for potential issues with new filters, feel free to add.

stephenhawk8054 commented 2 months ago

If you want to combine both into 1 filter, maybe

streamtape.com##.play-overlay
streamtape.com##+js(rpnt, script, /\$\("\.play-overlay"\).+/s, document.getElementById("mainvideo").src=srclink;player.currentTrack=0;})}), condition, play-overlay)
uBlock-user commented 2 months ago

If you want to combine both into 1 filter, maybe

streamtape.com##.play-overlay
streamtape.com##+js(rpnt, script, /\$\("\.play-overlay"\).+/s, document.getElementById("mainvideo").src = srclink;player.currentTrack=0;})}), condition, srclink)

That looks better, we should add that

GyomeiHimejima9906 commented 2 months ago

what is this?

{7C3E3F7C-86CC-41B3-982A-8472EF74120F}
uBlock-user commented 2 months ago

what is this? {7C3E3F7C-86CC-41B3-982A-8472EF74120F}

Tick the button that starts with the text "Consenti"

GyomeiHimejima9906 commented 2 months ago

the player is stuck

stephenhawk8054 commented 2 months ago

Breakage: https://github.com/uBlockOrigin/uAssets/discussions/17361#discussioncomment-10610118

uBlock-user commented 2 months ago

@stephenhawk8054 video has been removed, I disabled both the filters and same result. Not related to this.

stephenhawk8054 commented 2 months ago

I can reproduce. The script node is replaced with no link as source so the video can't play on my side

image

It's because this link doesn't use overlay so there's only $(".play-overlay").click.

This is the original script tag

<script>$(document).ready(function() {
$(".play-overlay").hide();
var srclink = $('#botlink').text() + '&stream=1';
document.getElementById("mainvideo").src = srclink;player.currentTrack=0;});</script>
uBlock-user commented 2 months ago

So why does the video doesn't play ? Add streamtape.to#@#+js() and the video will still not load.

stephenhawk8054 commented 2 months ago

Could be network. The video plays normally for me here after I disabled 2 filters:

image

uBlock-user commented 2 months ago

Could be network.

Not for me, otherwise https://streamtape.com/v/x9XP266Zz2fkg0Q/ wouldn't work either for me.

stephenhawk8054 commented 2 months ago

Well, I updated to new ones: https://github.com/uBlockOrigin/uAssets/commit/b2b759fb7000c7c4cf9e63d9e4e8e136c5f5c121

I won't address this site again. As said, I'm very refraining of adding new filters just for some annoyances and causing breakages that are not reproducible easily for everyone.