Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intercept user.js files and offer user to install the userscript #1172

Closed
ameshkov opened this issue Jul 10, 2016 · 0 comments

Comments

Projects
None yet
2 participants
@ameshkov
Copy link
Member

commented Jul 10, 2016

Here is a simple algorithm:

  1. Once ".user.js" file is processed, try parse it as a userscript metadata
  2. If it is a valid userscript, send a message to the UI layer (something like UserscriptUrlDetectedEvent)
  3. Catch this event on the UI layer and open a dialog window, offering user to install a userscript
  4. The following fields should be in that dialog window:
    Name
    Description
    Version
    Download URL

Also there should be a "Detect userscript" setting (turned on by default).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.