M-rcus / OnlyFans-Cookie-Helper

An extension made to make it easier to copy the correct `auth.json` values when using https://github.com/datawhores/OF-Scraper or https://github.com/DIGITALCRIMINALS/OnlyFans
MIT License
210 stars 14 forks source link

Improve user-agent handling #3

Open M-rcus opened 4 years ago

M-rcus commented 4 years ago

Currently the user agent is retrieved using the navigator.userAgent global variable. This is what the browser reports by default.

However, some power users might be using user agent switchers or Firefox's resistFingerprinting setting, making navigator.userAgent the "wrong" value.

We should probably make use of a 3rd party API to retrieve the user agent that the browser sends to websites, if possible via the extension.

M-rcus commented 3 years ago

The plan, as of right now, is to utilize Cloudflare Workers with my own custom worker: https://github.com/M-rcus/CloudflareWorkers/tree/main/user-agent

I assume that some people, for privacy reasons, might dislike the usage of Cloudflare Workers for user agent detection. So if I'm not really lazy, I'll probably release this feature in two ways:

The (sub)domain I plan on using is ua.rcus.dev