Skip to content

Commit fa1665d

Browse files
committed
[v1.0.3] Wrap 'config' under the auth key to follow the new format
[LICENSE] Update license year to 2021 [README] Better install descriptions for Firefox
1 parent 3e177e3 commit fa1665d

File tree

4 files changed

+31
-7
lines changed

4 files changed

+31
-7
lines changed

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MIT License
22

3-
Copyright (c) 2020 Marcus <m@rcus.dev>
3+
Copyright (c) 2020-2021 Marcus <m@rcus.dev>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ Eventually I may upload it to the Firefox / Chrome extension stores, but for now
1313

1414
### Firefox
1515

16-
Option 1: Go to [Releases](https://github.com/M-rcus/OnlyFans-Cookie-Helper/releases), download the `.xpi` file and install it via `about:addons` (CTRL+Shift+A).
16+
#### Option 1:
17+
Go to [Releases](https://github.com/M-rcus/OnlyFans-Cookie-Helper/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".
1718

18-
Option 2: Follow the [Trying it out](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Your_first_WebExtension#Trying_it_out) steps on their developer website.
19+
![Screenshot on how to do Firefox install option 1](https://i.marcus.pw/ss/2021-04-10_vOzkx1.png)
20+
21+
#### Option 2:
22+
Follow the [Trying it out](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Your_first_WebExtension#Trying_it_out) steps on their developer website.
1923

2024
### Chrome / Brave
2125

@@ -36,10 +40,11 @@ If it does not work, you can just copy the text manually by selecting it.
3640

3741
### Preview
3842

39-
**FYI**: As of v1.0.1 the `"fp": "xxxxxxxxxxxx"` value is no longer included, as it's no longer being used by the software.
43+
**FYI**: This is an old screenshot, but the popup looks practically identical.
44+
As of v1.0.1 the `"fp": "xxxxxxxxxxxx"` value is no longer included, as it's no longer being used by the software.
4045

4146
![Preview of extension](https://i.marcus.pw/ss/2020-09-03_m5qLXS.png)
4247

4348
## LICENSE
4449

45-
[MIT License](./LICENSE.md)
50+
[MIT License](./LICENSE.md)

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 2,
33
"name": "OnlyFans Cookie Helper",
4-
"version": "1.0.2",
4+
"version": "1.0.3",
55
"description": "Helper extension that makes it easier to copy config.json values for the DIGITALCRIMINAL/OnlyFans software",
66
"icons": {
77
"48": "icons/cookie.png"

popup/cookies.js

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,32 @@ async function grabCookies() {
112112
config.username = 'u' + authId;
113113
// For the "profiles" feature added in v6.1
114114
config.active = true;
115+
/**
116+
* These were added in v6.4.x or something
117+
*
118+
* They're not necessary to include,
119+
* as the software will fill in empty values here anyways,
120+
* but it doesn't hurt I suppose.
121+
*/
122+
config.email = "";
123+
config.password = "";
115124

116125
/**
117126
* Then we print it to the popup :)
118127
*
119128
* Third parameter to JSON.stringify() is for spacing the indentation.
129+
*
130+
* We wrap the config we set inside a new object, under the `auth` key,
131+
* due to more recent changes of the downloader software.
132+
*
133+
* Technically wasn't necessary, but the result was that it was a bit more
134+
* pain in the ass if you used more than one account with the software.
120135
*/
121-
const cookieJson = JSON.stringify(config, null, 2);
136+
const authConfig = {
137+
auth: config,
138+
};
139+
140+
const cookieJson = JSON.stringify(authConfig, null, 2);
122141
jsonElement.innerHTML = cookieJson;
123142

124143
/**

0 commit comments

Comments
 (0)