Answer the question
In order to leave comments, you need to log in
How to understand how the extension works?
I want to create a coupon extension for the browser. But there are many questions, since there are few such extensions. And there is practically no information about their creation. So, there is a similar extension. The principle of its work is that when you make online purchases, go to the payment page, a popup window of this extension appears, which offers to use the coupon. That is, whenever you go to the payment page in any online store, this window appears. Here the first question arises - how do they determine what exactly this is the payment page and what the coupon needs to be shown to the person ???
Then I click on the button to use the coupon, another window appears in the center, which starts looking for coupons. There are several coupons. And here the second question arises ---- how does the extension determine which coupon to give you ??? That is, it automatically inserts into the coupon field. But most likely I understood what the principle is here --- the extension starts inserting each coupon into the coupon field and inserts the one that gives the greatest benefit.
Answer the question
In order to leave comments, you need to log in
You can read how to make extensions in Google.
THAT it works in "any online store" I doubt very much.
And so the usual DOM manipulator that substitutes codes from a known code base in a field found by Id or class.
C:\Users\Yes\AppData\Local\Google\Chrome Beta\User Data\Default\Extensions
..лежит исходный код в папке, которую через ид ищешь :) Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question