DandelionSprout / adfilt

The place where I, DandelionSprout, store my web filter lists for countless topics, including my Nordic adblock list. As simple as that, really.
Other
1.3k stars 143 forks source link

Browse Facebook Without Logging In #197

Closed rgiotxy closed 2 years ago

rgiotxy commented 2 years ago

Hi, Are there instructions for using it to browse Facebook without logging in? I'm trying it on AdGuard AdBlocker 3.6.6 in Firefox for Android 68.9.0 and I still can't browse without logging in…

DandelionSprout commented 2 years ago

Which other filterlists are you using?

DandelionSprout commented 2 years ago

I'll close the case due to failure to provide a filterlist screenshot/table, as well as failing to provide an example page. Replies will remain open.

kowith337 commented 2 years ago

Sadly, it seems like Facebook wants to force throwing sign-in page at any chance that they can do, so we can't getting rid of any kind of redirections that done by network and API level.

DandelionSprout commented 2 years ago

My findings over the past few months (Very roughly calculated):

rgiotxy commented 2 years ago

Sorry, I'm new to GitHub and I haven't figured out how to be notified that someone responded to my questions yet (there's a bell icon, but it never displays new responses to my threads). By the time I realised I wasn't being notified, you had already closed the thread, so it didn't appear in my list of active threads. I only now realised there was a closed thread too. My filterlists are:

AdBlock Warning Removal List AdGuard Base filter AdGuard Mobile Ads filter AdGuard Russian filter AdGuard Spanish/Portuguese filter AdGuard Tracking Protection filter AdGuard URL Tracking filter Anti-AdBlock Killer list BarbBlock Browse websites without logging in CPBL filters for ABP/uBO Distractions and clickbait filter NoCoin Filter Must Online Malicious URL Blocklist Peter Lowe's Blocklist PUP Domains Blocklist (AdGuard) Spam404 Staying On The Phone Browser Wikia: Pure Browsing Experience

In case you need to know, my userscripts are: AdGuard Popup Blocker Anti-AdBlock Killer Direct links out Google Cache comeback Google Image Direct View Show and reload broken images URL Shortener Unshortener

Browser: Firefox for Android 68.9.0 AdGuard AdBlocker 3.6.6

krystian3w commented 2 years ago

here enable notifications on page and disable e-mail notify (imo useless):

https://github.com/settings/notifications


And we still waiting for real url where you see "pop-ups" and for hard reproduce good step by step instruction.

rgiotxy commented 2 years ago

https://www.facebook.com/kimcartoonfp/

Screenshot_20210725-132553_Firefox

Will these suffice?

PS: thanks for the tip!!! just implemented it today! PPS: step by step? well, basically, I subscribed to the list via filterlists.com (a website I believe you yourself are one of the administrators of), then tried accessing this webpage via Firefox for Android 68.9.0 with AdGuard AdBlocker 3.6.6 running the lists aforementioned and Tempermonkey 4.13.6136 running the aforementioned userscripts, and the result is what is depicted in this screenshot (taken today, minutes ago)… is this it?

krystian3w commented 2 years ago

I mean what action is needed on facebook domain to reproduce pop-ups. I suppose enough is a little swipe or waiting without any touching screen.

E.g. with player:

If you watch saved livestream on Facebook to reproduce login wall needed is click somewhere to show video/player in larger view space (e.g. with public commets in right column) and these pop-ups for video may need scriptlet or better for start something wrote in *.user.js for Tampermonkey (Custom scripting gives you freedom as far as how much you know JavaScript and possible Facebook api - then you can evaluate if it can be simplified to ramp up some JavaScript actions using the scriptlets built into uBO and AdGuard; if you can't see the simplification, it's more like you're left analyzing at what stage the film doesn't get interrupted).

rgiotxy commented 2 years ago

@krystian3w could you please restate that assuming I have zero knowledge of JavaScript and just use Tempermonkey to apply pre-made userscripts instead of making my own? I'm only basic-level on AdGuard, and I'm assuming Tempermonkey is much more complex… Also, the way you say it makes it seem like I want to see a popup, I don't, I just want to read the comments, not watch video (I mean, it would be nice if I could, but I'd be content with just reading the textual content, which is impossible because a popup pops up in front of the content and won't let go until I log in, which I can't because I don't have an account).

PS: sorry if this sounded rude, it wasn't my intention; I get nervous when I'm talking about subjects I know next to nothing of, and I'm not good with words when I'm nervous

krystian3w commented 2 years ago

Try put this into "user rules" in AdGuard addon settings:

facebook.*,fb.*#?#div#scrollview ~ div div[role="dialog"] form#login_popup_cta_form:upward(div#scrollview ~ div)

If does not work I should better symulate use Firefox 68. Worse if buttons/links are not touchable/clickable.

For now I see bug with infinity load new posts (similar to no property closed new cookie/GDPR pop-up), so pop-up may need use scriptlets instead ExtendedCSS (aka procedural cosmetic filtering).


Example with livestream is harder to disable show up (without breakge player).

rgiotxy commented 2 years ago

I'm not an expert on Facebook, but I fear the new user rule might have made it worse. Now I don't see the request for subscription, but I can't see barely anything else either (just the first comment and the first response): Screenshot_20210802-135859_Firefox PS: AdGuard 3.6.6 should be able to block scriptlets, I believe.

krystian3w commented 2 years ago

Maybe Possible is write pure JavaScript filter ("AG Rule") to fastly click in right "❌".

Path to button on my PC is:

body > div > div > div > div:only-child > div > div:only-child > div:only-child > div > div:only-child > div:has(> div > div > div > div > div > div > form#login_popup_cta_form) > div:only-child > div:only-child > div:only-child > div > div[role="button"]:only-child

But this works in only AdGuard after allow filter "list" as Trusted:

Trusted filters can use powerful filtering rules modifiers which can be dangerous in the wrong hands. Do not check this box unless you fully trust it.

obraz

or copied into "User rules" section in AdGuard.


For uBO maybe faster translate AG rule into "*.user.js" file.

If nobody can found/tried wrote solution with only allowed resoruces:

https://github.com/gorhill/uBlock/wiki/Resources-Library https://github.com/AdguardTeam/Scriptlets/blob/master/wiki/about-scriptlets.md#scriptlets

DandelionSprout commented 2 years ago

Having looked up https://github.com/DandelionSprout/adfilt/issues/197#issuecomment-891182396 a few days late and figured out that the example page was https://www.facebook.com/kimcartoonfp, I finally see why no one were able to see this before: I didn't know it was physically possible to browse the www. version of Facebook on an Android phone.

I can now replicate the problem and then some, and will see if I have any luck removing the exceptionally obnoxious login prompts.

DandelionSprout commented 2 years ago

Considering I am unable to load past the first post on the page in question, I can only vaguely presume that the fix I did above is the best I can do for now.