Skip to content

reddit.com: privacyΒ #18938

Closed
Closed

Description

@partingscientist

Prerequisites

  • I read and understand the policy about what is a valid filter issue.
  • I verified that this issue is not a duplicate. (Use this button to find out.)
  • I forced an update of my filter lists. (Click the "Purge all caches" button while holding the 'Shift' key, then click the "Update now" button.)
  • I did not remove any of the default filter lists, or I have verified that the issue was not caused by removing any of the default lists.
  • I did not enable external filter lists, or I have verified that the issue still occurs without enabling external filter lists.
  • I do not have custom filters/rules, or I have verified that the issue still occurs without custom filters/rules.
  • I am not using uBlock Origin (uBO) along with other content blocker extensions.
  • I have verified that the web browser's built-in blocker or DNS blocking (standalone or through a VPN) is not causing the issue.
  • I did not answer truthfully to ALL the above checkpoints.

URL address of the web page

https://www.reddit.com/r/worldnews/

Category

privacy

Description

While not logged in, Reddit mobile site tracks outbound navigation using out.reddit.com.
The behaviour still exists after testing with Firefox 116.0b3 and default uBlock Origin.

Other extensions used

None.

Screenshot(s)

Screenshot(s)

Configuration

Details
uBlock Origin 1.50.0:
 since: 27d.9h.6m
Firefox Mobile: 113
filterset (summary):
 network: 127068
 cosmetic: 196662
 scriptlet: 27009
 html: 1171
listset (total-discarded, last-updated):
 added:
  https://gitlab.com/magnolia1234/bypass-paywalls-clean-filters/-/raw/main/bpc-paywall-filter.txt: 961-0, now
  https://raw.githubusercontent.com/DandelionSprout/adfilt/master/LegitimateURLShortener.txt: 2230-0, now
  adguard-spyware-url: 1117-147, 1m
  block-lan: 47-0, now
  curben-pup: 189-0, now
  adguard-social: 20887-822, now
  fanboy-cookiemonster: 47637-3839, now
  fanboy-social: 16098-8, now
  ublock-annoyances: 5344-16, now
  dpollock-0: 11524-468, now
  IDN-0: 9527-4, now
  adguard-cookies: 26293-61, now
  [8 lists not shown]: [too many]
 default:
  user-filters: 25-0, never
  ublock-filters: 35059-525, 1m
  ublock-badware: 7532-1, 1m
  ublock-privacy: 469-2, 1m
  ublock-unbreak: 2117-1, 1m
  ublock-quick-fixes: 350-0, 1h.58m
  adguard-mobile: 8383-141, 1m
  easylist: 68120-1060, 1m
  easyprivacy: 33422-906, now
  urlhaus-1: 6440-1, now
  plowe-0: 3740-1, now
filterset (user): [array of 25 redacted]
hostRuleset:
 added: [array of 2 redacted]
userSettings:
 advancedUserEnabled: true
 colorBlindFriendly: true
 ignoreGenericCosmeticFilters: false
 webrtcIPAddressHidden: true
hiddenSettings:
 userResourcesLocation: [redacted]
supportStats:
 allReadyAfter: 2482 ms
 maxAssetCacheWait: 1543 ms
popupPanel:
 blocked: 10
 network:
  reddit.com: 1
  amazon-adsystem.com: 1
  googletagservices.com: 1
  redditmedia.com: 5
  redditstatic.com: 2
 extended:
  ##.adsense-ads
  ##.googads
  ##.hasads
  ##.native-ad
  ##.HeaderAd
  ##.NavBarAd
  ##.ad-medium
  ##.post-ad
  ##.promoad
  ##.rectad
  ##.sidebar-ad:not(.adsbygoogle)
  ##.small-ad
  ##.sponsorAd
  ##.sponsorad
  ##.sponsorPost
  ##.PostFooter__share
  ##.XPromoPopupRpl
  ##article[id] > a[href^="https://alb.reddit.com/"] ~ *
  ##.XPromoPopupRpl.m-active
  ##.promotedlink
  ##.PostsList > div article:has(> .Post__header-wrapper .PostHead…
  ##.PostsList > div:not([class]):not([id]) > div:not([class]):not…
  ##.size-compact.Post:has([class*="promoted"])
  ##article.Post:has(a[rel="nofollow noopener sponsored"])
  ##body:style(pointer-events:auto!important;)
  ##body:style(overflow: auto !important;)
  ##body.scroll-disabled:style(overflow: visible!important; positi…
  ##body,html.scroll-is-blocked:style(overflow: auto !important;)
  ##body:style(pointer-events:auto !important;)
  ##body:style(pointer-events: auto !important; overflow: auto !im…
  ##body.scroll-disabled:style(overflow: visible !important; posit…
  ###acceptabletest:style(display: block !important;)
  ###adblocktest:style(display: block !important;)
  ##+js(no-setTimeout-if, /^/)
  ##+js(no-setInterval-if, /^/)
  ##+js(addEventListener-defuser, touchmove)
  ##+js(set-constant, Object.prototype.allowClickTracking, false)
  ##+js(no-fetch-if, url:/^https:\/\/www\.reddit\.com$/ method:pos…
  ##+js(no-xhr-if, method:POST url:/^https:\/\/www\.reddit\.com$/)
  ##+js(replace-node-text, script, "outboundUrl", "outbound")
  ##+js(json-prune, data.*.elements.edges.[].node.outboundLink)
  ##+js(addEventListener-defuser, block-body-scrolling)
  ##+js(remove-class, m-blurred, .m-blurred)
  ##+js(remove-class, scroll-disabled, body)
  ##+js(set-constant, Notification.requestPermission, noopFunc)

Activity

  1. stephenhawk8054 commented on Jul 11, 2023

    @stephenhawk8054
    Member

    Can you test this?

    reddit.com,~out.reddit.com##+js(set, Object.prototype.allowClickTracking, false)
  2. partingscientist commented on Jul 11, 2023

    @partingscientist
    ContributorAuthor

    I have that on my configuration (as attached above) when testing on my dirty profile and the behaviour still persists. I'll test again to make sure.

    Edit: Yeah, still persists

  3. stephenhawk8054 commented on Jul 11, 2023

    @stephenhawk8054
    Member

    Does it occur on desktop?

  4. partingscientist commented on Jul 11, 2023

    @partingscientist
    ContributorAuthor

    I cannot reproduce on desktop using clean profile and default uBlock Origin, only on mobile.

  5. deleted a comment from on Jul 13, 2023
  6. mapx- commented on Jul 13, 2023

    @mapx-
    Contributor

    @partingscientist are you able to reproduce the issue using FF emulator on desktop ?

    How did you note that behaviour on android ? steps ?

  7. partingscientist commented on Jul 13, 2023

    @partingscientist
    ContributorAuthor

    Are you able to reproduce the issue using FF emulator on desktop ?

    Yes, on clean profile and default uBlock Origin.

    How did you note that behaviour on android ? steps ?

    Given https://www.reddit.com/r/worldnews/ as a subreddit example, I just open one of the article links posted while having the logger being opened.

  8. mapx- commented on Jul 13, 2023

    @mapx-
    Contributor

    I cannot reproduce the issue => no out.reddit.com in the logger (even disabling the scriptlets on reddit)

  9. gorhill commented on Jul 13, 2023

    @gorhill
    Member

    I also cannot reproduce on mobile.

  10. partingscientist commented on Jul 14, 2023

    @partingscientist
    ContributorAuthor

    I'm still investigating the reproducibility on my end, as I can confidently reproduce the issue; I'll report my findings soon. Just to make sure, you're not logged in while testing, right?

    While not logged in, Reddit mobile site tracks outbound navigation using out.reddit.com.

  11. partingscientist commented on Jul 14, 2023

    @partingscientist
    ContributorAuthor

    Here's what I found (Firefox Mobile 116.0b3 and default stable-release uBlock Origin on Android):

    It seems to me that Reddit is currently testing a new user interface for their mobile website (reddit.com).

    Here's the old user interface

    old

    Here's what they are currently testing

    new

    The issue is reproducible on the old interface by interacting with the link bar below the post thumbnail on the right hand side. However, the issue is not reproducible on the new interface. I very rarely get this new interface, perhaps due to geolocation and other factors which also might vary amongst the maintainers here.

  12. 29 remaining items

  13. added a commit that references this issue on Sep 9, 2023
  14. partingscientist commented on Nov 4, 2023

    @partingscientist
    ContributorAuthor

    @stephenhawk8054

    Details
    // https://www.redditstatic.com/shreddit/en-US/shell-e5fddcc3.js, 6009
    let Tc;
    const Ic = () => ("boolean" == typeof Tc || (e => {
          Tc = e
       })(document.querySelector("shreddit-app")?.hasAttribute("disable-send-beacon") ?? !1), Tc),
       Cc = (e, t) => Math.floor(Math.random() * (t - e) + e),
       Ac = (e, t, n) => `${e.slice(0,n)}${t}${e.slice(n)}`,
       Lc = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
       Pc = () => Lc[Math.floor(Math.random() * Lc.length)],
       Oc = `/svc/shreddit/${(e=>{if(e<="/!".length)throw new Error(`Invalid len argument supplied. Must be greater than ${"/!".length}`);let t=[...Array(e-"/!".length)].map(Pc).join("");return t=Ac(t,"/!"[0],Math.floor(t.length/2)),t=Ac(t,"/!"[1],Cc(0,t.length-1)),t})(Cc(15,25))}`,
       Rc = ({
          eventsBuffer: e,
          v2EventsRoute: t,
          options: n
       }) => {
          const o = "function" != typeof navigator.sendBeacon || Ic() ? "function" == typeof fetch ? Sc : void 0 : kc;
          void 0 !== o && o({
             url: t || Oc,
             eventsBuffer: e,
             microapp: ar(),
             options: n
          })
       };
    # https://github.com/uBlockOrigin/uAssets/blame/2789c0c31a3ee62e432e3f5090398553075d5f74/filters/privacy.txt#L109-L110
    ||www.reddit.com/svc/shreddit/$xhr,1p,method=post
    @@||reddit.com/svc/shreddit/more-comments/$xhr,1p,method=post

    ?

  15. stephenhawk8054 commented on Nov 5, 2023

    @stephenhawk8054
    Member

    @partingscientist Looks like the above filters cannot load the comments in this link? https://www.reddit.com/r/meirl/comments/17nyl7a/meirl/

  16. partingscientist commented on Nov 5, 2023

    @partingscientist
    ContributorAuthor

    I thought I'd let you know first, haven't attempted to craft or test anything previously.

    How about

    /^https:\/\/www\.reddit\.com\/svc\/shreddit\/[A-z0-9\/!]{15,24}$/$xhr,1p,method=post,match-case

    ?

  17. stephenhawk8054 commented on Nov 5, 2023

    @stephenhawk8054
    Member

    @partingscientist Still does not work for me. If I'm not mistaken, it's because reddit is detecting if you block those XHR, it won't load the comments.

    Even when using no-fetch-if, it still has issue due to this

    Details
    fd = async ({
      url: e,
      eventsBuffer: t,
      microapp: n,
      options: o
    }) => {
      const r = jo.get("csrf_token") ?? "",
         i = !yd() ? t : {
            csrf_token: r,
            info: t
         },
         a = JSON.stringify(i);
      let s;
      try {
         s = await fetch(e, {
            body: a,
            headers: {
               "Content-Type": "text/PLAIN",
               "x-sh-microapp-route": n || "monolith"
            },
            keepalive: !0,
            method: "post",
            credentials: "same-origin"
         })
      } catch (n) {
         return void(o?.shouldNotRetryIfFail ? o?.shouldNotSendDropEvent || bd({
            eventsBuffer: t,
            errorText: `An error: ${n}`,
            v2EventsRoute: e
         }) : Id({
            eventsBuffer: t,
            v2EventsRoute: e,
            options: {
               shouldNotRetryIfFail: !0
            }
         }))
      }
      if (s?.ok) {
         Array.from(s.headers).length && (vd || (vd = document.querySelector("shreddit-app")), vd)?.resolvePendingRequests();
         const e = s.headers.get("x-set-loid") || void 0,
            t = s.headers.get("x-set-session") || void 0;
         window.dispatchEvent(new CustomEvent("v2-events-sent", {
            detail: {
               loid: e,
               session_tracker: t
            }
         }))
      } else o?.shouldNotSendDropEvent || bd({
         eventsBuffer: t,
         errorText: `HTTP Response Code: ${s?.status}`,
         v2EventsRoute: e
      });
      return s
    };

    (This is their old code, they might change something already)

  18. uBlock-user commented on Nov 5, 2023

    @uBlock-user
    Member

    it's because reddit is detecting if you block those XHR, it won't load the comments.

    Technically, it's checking for specific request headers with the fetch request, if the headers are not found, content won't load.

  19. uBlock-user commented on Nov 5, 2023

    @uBlock-user
    Member

    There's two ways to this tracking issue as I can see -

    • Intercept the request and delete the payload before passing the request, so when the request reaches the server, there's no data, so no tracking(All the scriptlets that gorhill has added that intercept are so far only focusing on response)

    • Mimic the request headers when using no-fetch-if and hence fulfill the requirements for the content to load.

    @stephenhawk8054

  20. uBlock-user commented on Jun 23, 2024

    @uBlock-user
    Member

    @gorhill any solution for ongoing issue with reddit ?

  21. partingscientist commented on Aug 12, 2026

    @partingscientist
    ContributorAuthor

    Considering Old Reddit now requires an account, is this issue worth revisiting? I have not followed resources library development for quite some time, so I'm not sure whether a solution is possible at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions