uBlockOrigin / uAssets

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

filmy4wap.co.in #25859

Closed ghajini closed 11 hours ago

ghajini commented 14 hours ago

Prerequisites

URL(s) where the issue occurs.

filmy4wap.co.in

Description

there's ad popups on this site when i use filters like

  1. For chrome/firefox filmy4wap.co.in##+js(refresh-defuser) filmy4wap.co.in##+js(nowoif) Images/thumbnails does not load, to reproduce you have to browse the page to different movies

  2. For firefox when i use filmy4wap.co.in##^meta[http-equiv="refresh"] sometimes not work & i can see from view-source:

    <meta http-equiv="refresh" content="1; URL=https://amusementchillyforce.com/nk7fjajv?key=c52e851e3a3a68fb55fea6ca84277129"/>

    is not removed by html filtering

Other extensions used

none

Screenshot(s)

Screenshot(s)

Configuration

Details ```yaml uBlock Origin: 1.60.0 Firefox Mobile: 131 filterset (summary): network: 142263 cosmetic: 59425 scriptlet: 25385 html: 2341 listset (total-discarded, last-updated): added: ublock-annoyances: 5945-39, 2h.14m Δ default: user-filters: 1454-4, never ublock-filters: 41292-686, 2h.14m Δ ublock-badware: 11755-7, 2h.14m Δ ublock-privacy: 1378-23, 2h.14m Δ ublock-unbreak: 2554-9, 2h.14m Δ ublock-quick-fixes: 228-13, 2h.14m Δ adguard-mobile: 9934-104, 1d.4h.31m easylist: 80162-341, 2h.14m Δ easyprivacy: 53214-76, 2h.14m Δ urlhaus-1: 20480-0, 3h.33m plowe-0: 3542-1072, 1d.4h.31m filterset (user): [array of 1122 redacted] trustedset: added: [array of 6 redacted] switchRuleset: removed: no-csp-reports: * true userSettings: advancedUserEnabled: true userFiltersTrusted: true webrtcIPAddressHidden: true hiddenSettings: filterAuthorMode: true trustedListPrefixes: ublock- user- supportStats: allReadyAfter: 1710 ms maxAssetCacheWait: 770 ms cacheBackend: indexedDB popupPanel: blocked: 23 network: addthis.com: 2 arvigorothan.com: 1 brightcriticism.com: 1 cank.xyz: 1 d2klx87bgzngce.cloudfront.net: 1 dcbbwymp1bhlf.cloudfront.net: 3 googletagmanager.com: 2 hollow-love.com: 1 hygeistagua.com: 1 intelligenceadx.com: 1 popcash.net: 2 shebudriftaiter.net: 1 slight-tooth.com: 1 uakarisigneur.com: 4 zovidree.com: 1 extended: ##[href^="https://www.highcpmrevenuegate.com/"] ##+js(prevent-refresh) ##+js(no-window-open-if) ```
ghajini commented 13 hours ago

URL= https://filmy4wap.co.in/page-download/264/PT-Sir-2024-Hindi-Tami-Dual-Audio-UnCut-South-Movie-HD-ESub https://filmy4wap.co.in/

With

filmy4wap.co.in##+js(refresh-defuser)
filmy4wap.co.in##+js(nowoif)

page looks like below https://github.com/user-attachments/assets/cacdb908-7577-4765-abed-bf4a0436e073 https://github.com/user-attachments/assets/2e26997b-caaa-4dcd-9d9e-bf6940916b4e

stephenhawk8054 commented 13 hours ago

refersh-defuser uses window.stop so it will stop all of websites' resources loading as a result.

ghajini commented 13 hours ago

yeah seems so but can this be improved for chrome? @gorhill

stephenhawk8054 commented 13 hours ago

An approach is maybe reloading the images by appending ?, but this is only for images

filmy4wap.co.in##+js(refresh-defuser)
filmy4wap.co.in##+js(rpnt, script, window.dataLayer =, 'setTimeout(()=>{document.querySelectorAll("img[src^=\"http\"]").forEach(img=>{img.src+="?"})},2000);window.dataLayer =', sedCount, 1)
stephenhawk8054 commented 13 hours ago

Oh, a silly solution is reloading body.innerHTML?

filmy4wap.co.in##+js(refresh-defuser)
filmy4wap.co.in##+js(rpnt, script, window.dataLayer =, 'setTimeout(()=>{document.body.innerHTML=document.body.innerHTML},2000);window.dataLayer =', sedCount, 1)
ghajini commented 13 hours ago

pls address for chrome, 2nd approach is good this website changes tld frequently & ad ridden website

ghajini commented 11 hours ago

As it's fixed how to avoid breakage with only refresh-defuser for chrome?

stephenhawk8054 commented 11 hours ago

Will need an update for the scriptlet itself I guess. Maybe a vararg to reload elements selected? I can't guarantee it works on all sites, but at least it works with this site.

gorhill commented 3 hours ago

yeah seems so but can this be improved for chrome?

I think it can. This is a very old scriptlet which I haven't revisited in a while. The documentation re. <meta http-equiv="refresh" ...> says:

The timer starts when the page is completely loaded, which is after the load and pageshow events have both fired.

The scriptlet currently acts x seconds after the page becomes interactive, which is earlier than page load event. I should change this to load event. Additionally, I will make the scriptlet report the content of the content attribute when it actually calls window.stop().