rospino74 / Quizlet-Bypass

WebExtension to bypass Quizlet paywall
Apache License 2.0
289 stars 12 forks source link

How does this extension work? #100

Closed jtpotato closed 2 years ago

jtpotato commented 2 years ago

Hi! Just wanted to know how this extension works. As you might be aware, Quizlet has put almost all of its functions behind a paywall... I've just tried the extension out, and after changing the manifest.json to fix some errors, it doesn't work for those situations...

Would be quite useful if you could explain what the extension does, and I'd be more than happy to contribute.

rospino74 commented 2 years ago

Basically, it creates a new account via the Quizlet API, which cheekily doesn't implement any captcha challenge: https://github.com/rospino74/Quizlet-Bypass/blob/481a1e834c8b7f3a1ea2b5df5274affb144847d7/src/foreground/quizlet/import/accountMaker.js#L29-L47

And then set the cookies for the page with the newly created session token: https://github.com/rospino74/Quizlet-Bypass/blob/481a1e834c8b7f3a1ea2b5df5274affb144847d7/src/background/cookieReplacer.ts#L20-L24

At the moment I am also thinking of a way to bypass a possible captcha.

Edit: I realized that you meant various Quizlet functions, for those we can adapt the extension. I originally only meant it for textbook solutions, being the only site feature I use