0

I develop a UserScript and wrote a document for how install it. I found the procedure is too hard for user, so I willing make a script in website to install them automatically.

My plan:

  • Get browser info from user and open the Tampermonkey extention page(chrome webstore or AMO)
  • When the Tampermonkey had installed, open a page whick URL ends with '.user.js'

The problem is how can I get "When the Tampermonkey had installed"?

pea3nut
  • 1,634
  • 3
  • 11
  • 15
  • If there were such a way it'd be a security hole in Tampermonkey which should be fixed. The only sites that can detect Tampermonkey are greasyfork.org, tampermonkey.net, userstyles.org whitelisted in its source code https://puu.sh/Ehp9g/e40620ccbb.png – wOxxOm Sep 15 '19 at 07:58
  • @wOxxOm Why? I even can get what plugins user installed though `navigator.plugins` but extentions – pea3nut Sep 15 '19 at 12:04
  • 1
    Plugins are exposed via standard web API so it's unrelated. As for Tampermonkey, I guess it's because it's often used to modify the behavior of pages so there are quite a few authors who would block that if they could. – wOxxOm Sep 15 '19 at 12:09
  • Pretty close to a duplicate of: https://stackoverflow.com/questions/56821042/can-a-webpage-detect-a-tampermonkey-userscript. and others. – Brock Adams Sep 15 '19 at 14:38

0 Answers0