rospino74 / Quizlet-Bypass

WebExtension to bypass Quizlet paywall
Apache License 2.0
281 stars 13 forks source link

Bug #459

Open 0juni opened 10 months ago

0juni commented 10 months ago

Browser Version

Chrome

Exension Version

1.4.2

Actual behaviour

Sometimes the extention bugs out and it shows the paywall unless I reinstall the plugin. Still happens right now.

Also how does the extension work?

Reproduction steps

No response

Expected behaviour

No response

rospino74 commented 10 months ago

Hi, Do you see any error in the console _(except something about browser_specific_settings)_?

Issues apart, the extension works pretty much this way:

  1. The extension determines that you are on Quizlet https://github.com/rospino74/Quizlet-Bypass/blob/e905a84c5d5a65f016f6d9b6dd841af9933cbf61/src/frontend/quizlet/structure.json#L10-L12
  2. It makes a new account in the background simulating the user signing in https://github.com/rospino74/Quizlet-Bypass/blob/481a1e834c8b7f3a1ea2b5df5274affb144847d7/src/foreground/quizlet/import/accountMaker.js#L29-L47
  3. Then it logs in and gets new session cookies
  4. Finally, it replaces existing cookies with the new ones https://github.com/rospino74/Quizlet-Bypass/blob/e905a84c5d5a65f016f6d9b6dd841af9933cbf61/src/frontend/quizlet/index.ts#L52-L56

This way you always have a new account to see textbook solutions (because that's the only thing unlocked by this extension). Please note that we don't have to worry about IP blacklisting because account creation happens on the user's computer with his own IP address.

yenuGH commented 10 months ago

From what I can see, v1.5.4 doesn't seem to be signing into a new account when it detects that a solution has been paywalled. It just sticks to the same account, making the loop infinite, triggering the CloudFlare security