uBlockOrigin / uAssets

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

[NSFW] jpvhub.com: popups #16679

Closed sabotendaaaa closed 1 year ago

sabotendaaaa commented 1 year ago

Prerequisites

URL address of the web page

https://www.jpvhub.com/jp/9edgp69d8k/jav/%E6%9C%89%E4%BF%AE%E6%AD%A3/first-impression-azumi-ipz-094

Category

popups

Description

When I click "Skip Ad", then new tab opens and fail to skip ad.

NSFW

Screenshot(s)

Screenshot(s) 1. I click "Skip Ad". ![jpvhub1](https://user-images.githubusercontent.com/123542342/217732460-759a5891-56bd-4cdd-a3b0-8fbb2e8b3160.jpg) 2. Then, the original tab changes chrome-extension, and new tab opens (but not skip ad). ![jpvhub3](https://user-images.githubusercontent.com/123542342/217733003-26b4b1f8-8210-4026-8c6f-edb2e13f3a90.jpg) ![jpvhub2](https://user-images.githubusercontent.com/123542342/217733027-95fc1544-eb4a-4724-bfc1-6bd8fb4e27a5.jpg)

Configuration

```yaml uBlock Origin: 1.46.0 Chromium: 109 filterset (summary): network: 79235 cosmetic: 48290 scriptlet: 17136 html: 0 listset (total-discarded, last-updated): removed: urlhaus-1: null added: https://raw.githubusercontent.com/tofukko/filter/master/Adblock_Plus_list.txt: 5293-10, 1d.2h.51m default: user-filters: 6-0, never JPN-1: 9226-1010, 2d.5h.22m easylist: 61276-367, 2h.41m easyprivacy: 30932-1415, 2h.40m plowe-0: 3671-906, 6d.5h.42m ublock-abuse: 77-0, 2d.5h.28m ublock-badware: 4231-121, 2d.5h.27m ublock-filters: 31917-438, 2d.5h.26m ublock-privacy: 263-18, 2d.5h.24m ublock-quick-fixes: 439-23, 2h.39m ublock-unbreak: 1868-59, 2d.5h.23m filterset (user): [array of 6 redacted] trustedset: added: [array of 79 redacted] removed: edge-scheme wyciwyg-scheme switchRuleset: added: [array of 11 redacted] hostRuleset: added: [array of 22 redacted] modifiedUserSettings: advancedUserEnabled: true modifiedHiddenSettings: filterAuthorMode: true supportStats: allReadyAfter: 5542 ms (selfie) maxAssetCacheWait: 2630 ms popupPanel: blocked: 37 blockedDetails: dmm.co.jp: 1 google-analytics.com: 1 googletagmanager.com: 1 juicyads.com: 5 newrelic.com: 5 realsrv.com: 16 tsyndicate.com: 8 ```
stephenhawk8054 commented 1 year ago

I can't reproduce the popup on desktop after adding the filter, but I have adjusted it to work on mobile.

mapx- commented 1 year ago

maybe on pause is necessary this too:

asianclub.tv###player_ad

stephenhawk8054 commented 1 year ago

Download > Link Still Has PopUps

The site uses window.location to redirect to ads site

r.a.createElement(o, null), r.a.createElement("a", {
    className: "".concat(n.text_container),
    onClick: function() {
        window.open("http://".concat(i), "_blank"), window.location = "https://remorsefulindependence.com/bR3/Vv0hP.3dpQvCbMmXVLJ-ZMDD0N0QN/DKQk1/NEznks5/L/TPQq0SNOD-Uw4dMiDLAd"
    }
}

so I don't think we can do much with it except blocking that domain.

stephenhawk8054 commented 1 year ago

It requires modifying local storage and modifying content response (not possible yet due to security risk).

ghajini commented 1 year ago

Test link= NSFW https://www.jpvhub.com/download?link=streamtape.com/v/ZDykQMqbRYsyYl

@gorhill will you see

random adserver redirections when clicking click me to download

detail what is happening = https://github.com/uBlockOrigin/uAssets/issues/16699#issuecomment-1426587477

window.location used for ad redirect.

MasterKia commented 1 year ago

##+js(aopw, location) or ##+js(aopw, location.href) doesn't work?

ghajini commented 1 year ago

##+js(aopw, location) or ##+js(aopw, location.href) doesn't work?

no, did you try yourself?

gorhill commented 1 year ago

window.location is read-only, it can't be trapped.

ghajini commented 1 year ago

so what will be solution here/generally as much no of nsfw sites/other file hosting sites uses window.location to redirect to ads & they are randomised ad servers

MasterKia commented 1 year ago

@gorhill It's read-only but it can still be changed?

window.location.href = "https://example.com"

gorhill commented 1 year ago

I linked to the documentation above.

ghajini commented 1 year ago

apart from this ,what's recommended fix here ?

mapx- commented 1 year ago
jpvhub.com##+js(rpnt, script, /.*adConfig.*frequency_period.*/, (async () => {const a=location.href;if(!a.includes("/download?link="))return;const b=new URL(a)\,c=b.searchParams.get("link");try{location.assign(`${location.protocol}//${c}`)}catch(a){}} )();)