uBlockOrigin / uAssets

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

[nsfw] pornhub.com: detection #25446

Closed webhunted closed 1 month ago

webhunted commented 1 month ago

Prerequisites

URL address of the web page

https://www.pornhub.com/view_video.php?viewkey=6599a19d61232

Category

detection

Description

Site detects U-Block as AdBlock

Other extensions used

none

Screenshot(s)

Screenshot(s) ![image](https://github.com/user-attachments/assets/ab2f38e9-14e9-4745-9516-473430414889)

Configuration

```yaml uBlock Origin: 1.59.0 Chromium: 129 filterset (summary): network: 149991 cosmetic: 48472 scriptlet: 22597 html: 0 listset (total-discarded, last-updated): default: user-filters: 0-0, never easylist: 85550-577, now easyprivacy: 53092-628, now plowe-0: 3553-0, now ublock-badware: 11162-6, now ublock-filters: 40321-268, now ublock-privacy: 1261-22, now ublock-quick-fixes: 140-0, now ublock-unbreak: 2479-19, now urlhaus-1: 25170-0, now filterset (user): [empty] trustedset: added: [array of 8 redacted] removed: chrome-extension-scheme userSettings: [none] hiddenSettings: [none] supportStats: allReadyAfter: 612 ms (selfie) maxAssetCacheWait: 49 ms cacheBackend: indexedDB popupPanel: blocked: 12 network: pornhub.com: 5 etahub.com: 3 googletagmanager.com: 1 prvc.io: 1 trafficjunky.com: 2 extended: ###pb_template ###relatedVideosCenter > li[class^="related"] ##.realsex ##a[href*="?ats="] ##a[href^="https://www.uviu.com"] ##div[class="video-wrapper"] > .clear.hd:has(.adsbytrafficjunky) ##.video-wrapper > #player ~ .hd.clear ###pb_block ##a[data-href^="http://ads.trafficjunky.net/"] ##.adsbytrafficjunky ##+js(no-setTimeout-if, adsbytrafficjunkycontext) ##+js(abort-current-script, Object.defineProperty, trafficjunky) ##+js(no-window-open-if) ##+js(set-constant, page_params.holiday_promo, true) ##+js(set-constant, abp1, 1) ```
Yuki2718 commented 1 month ago

It's by https://static.trafficjunky.com/ab/ads_test.js blocked.

(function a0_0x1267bd(_0x5bdd87, _0x3970da) {
  if (typeof exports === "object" && typeof module === "object") {
    module.exports = _0x3970da();
  } else {
    if (typeof define === "function" && define.amd) {
      define("Ads test script", [], _0x3970da);
    } else {
      if (typeof exports === "object") {
        exports["Ads test script"] = _0x3970da();
      } else {
        _0x5bdd87["Ads test script"] = _0x3970da();
      }
    }
  }
})(self, function () {
  return function () {
    var _0x41c143 = {};
    page_params = window.page_params ? page_params : {};
    page_params.phxvv78s = (() => {
      const _0x4dd196 = document.createElement("div");
      _0x4dd196.innerHTML = " ";
      _0x4dd196.className = "adsbox";
      let _0x5305e6 = undefined;
      try {
        document.body.appendChild(_0x4dd196);
        _0x5305e6 = document.getElementsByClassName("adsbox")[0x0].offsetHeight === 0x0;
        document.body.removeChild(_0x4dd196);
      } catch (_0x527428) {
        _0x5305e6 = undefined;
      }
      return _0x5305e6 === true ? undefined : true;
    })();
    page_params.holiday_promo_prem = page_params.phxvv78s;
    page_params.holiday_promo = page_params.phxvv78s;
    page_params.holiday_promo = page_params.phxvv78s;
    page_params.holiday_promo = page_params.phxvv78s;
    return _0x41c143;
  }();
});
Yuki2718 commented 1 month ago

pornhub.com##+js(set, page_params.holiday_promo_prem, null) fixes this, but can this not be undefined if premium user?

uBlock-user commented 1 month ago

pornhub.*###js-abContainterMain already present in uBlock Annoyances list.

Yuki2718 commented 1 month ago

@webhunted Enable uBlock filters – Annoyances.