Closed kishan2k2 closed 10 months ago
The extension has a database that stores questions.
Questions are exported from the leetcode website (with a custom scalper program) and stored in a format that the extension can easily retrieve.
When a user requests a premium question, they trigger an action, such as clicking on the question or interacting with the website.
The extension, upon receiving the user's request, retrieves the corresponding premium question from its database.
Once the premium question is retrieved, the extension dynamically injects it into the HTML of the webpage the user is currently viewing.
This means the premium question becomes part of the visible content on the webpage.
How is it possible? Doesn't LeetCode site check premium subscription on the backend?
Its not unlocking the premium features, as i said its getting the datas from a exported database and only injecting it to the buttons, so when you click on a question, the extension disabled it, and made a new onClick() for the button.
And how does leetcode accept the solution, correct me if I am wrong, and sorry in advance for my naivety.
I believe that HTML injection should be a static thing like how we can change the HTML content using the inspect element, but once we refresh the page everything is gone.
I agree that we can inject the question into the webpage but how are we able to submit the question, I mean only premium users should be able to answer the premium questions right?
You are not able to submit, that would be way too complicated to make.
Understandable, And thanks for replying so fast. That was unexpected.
Can some one explain to me how did they build this extension i.e. providing premium content for free, Iam very much interested in learning this. Can someone please?