GithubHelp home page GithubHelp logo

m-rcus / onlyfans-cookie-helper Goto Github PK

View Code? Open in Web Editor NEW
185.0 8.0 14.0 37 KB

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

License: MIT License

HTML 8.73% JavaScript 88.42% Shell 2.85%
chrome-extension cookies firefox-addon onlyfans

onlyfans-cookie-helper's Introduction

OnlyFans Cookie Helper

An extension made to make it easier to copy the correct config.json values when using datawhores/OF-Scraper or DIGITALCRIMINALS/OnlyFans.

How to install

Extension is only available on the Firefox addon store, but not on the Chrome web store. For Chromium-based browsers, alternatively installation methods are necessary.
One of these days I might explore putting it on the Chrome web store, but for a few different reasons I bit am hesitant to so (one of them being the paywall Google has to publish extensions).

Firefox

Option 1 (Recommended)

Install it from the Firefox Addon Store (AMO)

NOTE: Mozilla disabled the addon on February 27th 2024 citing the reason:

Acceptable Use, specifically Sexual content: This content contains sexual or pornographic content that violates Mozilla’s Acceptable Use Policy.

I have replied to them to appeal, since the addon doesn't contain (or link to) any sexual content, but still awaiting any further reply from Mozilla.
If you need to [re-]install the addon, please use option 2 or 3 for the time being.

Option 2

Go to Releases, download the .xpi file and install it by typing about:addons into your URL bar, pressing CTRL+Shift+A or clicking the "hamburger menu" top-right of the Firefox window and then "Addons".

Screenshot on how to do Firefox install option 1

Option 3

Follow the Trying it out steps on their developer website.

Chrome / Chromium

These steps MAY work on other Chromium-based browsers, such as: Brave, Microsoft Edge, Vivaldi and Opera (to name a few).
No guarantees though, I only do simple tests on a basic Chromium install, as my primary browser is Firefox.

Option 1

This option is only available as of v2.2.0. This is VERY unofficial way of installing the extension and you might a few warnings about it being unsafe (which is generally true).
If you are not comfortable with that, you can either choose to use Firefox instead or try option 2 below.

  1. Go to Releases and click the .crx file. Your browser might prompt you to install the extension. You can then just click 'Add extension'.
    • From my testing, Google Chrome and Brave give you an error when doing this. It does seem to work on "Ungoogled Chromium". Besides that I am not sure whether it will work or not.

If it does not prompt you to install the extension, you can try the following:

  1. Right-click on the .crx download link and click "Save link as..."
    • As I mentioned, it will likely ask you (sometimes multiple times) if you want to keep the file as it can be malicious. You want to keep the file.
  2. In your Chromium-browser, go to your URL bar and hit enter after typing in chrome://extensions
  3. Find the .crx file that you just downloaded.
  4. Click and drag the .crx file into your Chromium browser window, where chrome://extensions is open.
  5. It should prompt you to add the extension.

Option 2

  1. Download the ZIP file of the version - Source code (.zip)
  2. Extract the ZIP into a folder.
  3. In your Chromium-browser, go to your URL bar and hit enter after typing in chrome://extensions
  4. Click on "Load unpacked". Select the extracted folder and click "Open".

How to use

Make sure you're logged into the OnlyFans website normally.

After installing the extension, click the cookie icon.
A popup should show up (see preview) with a JSON-formatted text.
There's a a "Copy to clipboard" button at the bottom of the popup that should copy the text to your clipboard.
If it does not work, you can just copy the text manually by selecting it.

Once you've copied the text to clipboard, you can paste it into the auth.json file in your profiles folder.
The default auth.json file should be located in <OnlyFans-Software-Folder>/.profiles/OnlyFans/default/auth.json, but may not show up until you've started up the OnlyFans software at least once.

You can also create a new folder and a separate auth.json file, which is useful if you have multiple accounts.
For example:

  • <OnlyFans-Software-Folder>/.profiles/OnlyFans/my-personal-account/auth.json
  • <OnlyFans-Software-Folder>/.profiles/OnlyFans/my-secret-account/auth.json

Preview

Screenshot as of extension version v1.0.3, which means it's slightly outdated.
A few things to note:

  • auth_hash, auth_uniq_, email and password are typically empty. Don't panic if they don't have any values, as it's completely normal.
  • The username field is by default set to "u" plus the same number as auth_id. It does not need to be your actual OnlyFans username.

Preview of extension

Permissions

Overview of permissions and why they're required.

  • cookies
    • Values such as auth_id and sess are contained within cookies.
    • Keep in mind that the cookies permission only applies for onlyfans.com and no other websites.
  • clipboardWrite
    • To copy the auth.json values into your clipboard
  • storage
    • This is specifically just to "synchronize" the x_bc value to the popup (so it can be copied).
    • x_bc isn't available via the regular cookies permission, so we need a workaround (which utilizes the storage permission).
  • contextualIdentities
    • On Firefox, it's used to support multi-account containers.
    • On Chromium-based browsers (Google Chrome, Brave, Microsoft Edge, Vivaldi, Opera etc.) it does nothing. However, it may give a warning. The extension should still work even with this warning. - This should no longer happen as of v2.2.0.

LICENSE

MIT License

Mirrors

This project is currently mirrored to three different providers:

Those are the only 'official' sources for this extension.
Anyone else can of course freely mirror the project as they see fit.

Sellout (Tips)

If you find the extension useful and would like to send me a tip, then I'll gladly take some crypto <3

  • Bitcoin: bc1qps35rpadgmpf2a7vmuq45xnt7qscymtlnny6mx
  • Dogecoin: DAjtoHdXFFhRc3qJq8sqCWpQLLDB8t3L6n
  • Litecoin: LbX5iqVfYoRz7kPAPQoEKdqiN7Y9PRxsAg

Alternatively, PayPal, though crypto is preferred: https://paypal.me/maaaarcus

onlyfans-cookie-helper's People

Contributors

m-rcus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

onlyfans-cookie-helper's Issues

x-bc header

there is x-bc requirement now, could you please add it, thank you

GPT chat connecting to a website

Hiii,

I have an OnlyFans agency and I would be happy to build Python script to automate chatting with costumers via GPT chat.
Could you please help me to create this code? As far as I know there are some difficulties with API in Onlyfans website so the data could only be transferred by data scrapping, am I right?

Improve user-agent handling

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.

Could not find valid x_bc value.

Since the latest update of this on chrome when i am logged in all i receive is this error message now

Could not find valid x_bc value. Please open OnlyFans.com once and make sure it fully loads. If you are not logged in, please log in and refresh the page

it doesn't matter if i uninstall the extension re install it anything it still throws the same error

Cookie format doesnt match

The way the text is formatted, or the order of the values rather, doesnt work as a direct copy paste, have to go through and fill in each one individually - still very handy!

Auth Issues

Installed the new version of OnlyFans ripper, followed instructions, copy/pasted auth info from latest version of Cookie Helper and still have Auth Issues, errors. Any ideas?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.