Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

178
Views
Get a stable information from the user

I'm coding a chrome extension. My extension is for free but i want people to know better about the product that I provide. So, when a user used my extension 5 times or more, I want to get the user's mail adress (i propose him to enter it). Here I come to the problem : before asking the user his mail adress, I have to count the number of times he clicked. popup.js open itself each time a user open an extension. Here my algorithm :

-> Each time popup.js open :

id = ? from the user

if id not in dico :

add ? key to the dico, with value [1, false]

else

add 1 to dico.id[0]

if dico.id[0] >= 5 and dico.id[1] == false

    ask the mail

        if the user entered his mail

            dico.id[1] = true

            add the mail to my database

My question : what could be "?" ? I want something stable, like the IP (not stable because of the VPN), or the MAC adress (impossible acces). I also want to be able to get "?" with javascript.

Thanks.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!