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

Script gets replaced with the @required script #1906

Closed
JasonBarnabe opened this issue Apr 3, 2014 · 1 comment
Closed

Script gets replaced with the @required script #1906

JasonBarnabe opened this issue Apr 3, 2014 · 1 comment
Milestone

Comments

@JasonBarnabe
Copy link

From here.

  • Install https://greasyfork.org/scripts/103
  • Edit the script, add: // @require https://greasyfork.org/scripts/216/code.user.js?06, save and close the editor.
  • Greasemonkey warns about @grant, close that.

The script in the add-ons manager now shows up with the name and description of the script @required. Attempts to edit the source are unsuccessful with this showing in the Browser Console: NS_ERROR_FILE_TARGET_DOES_NOT_EXIST: Component returned failure code: 0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST) [nsIFile.isFile] in resource://greasemonkey/util/getContents.js.

@Ventero
Copy link
Contributor

Ventero commented Apr 3, 2014

Ventero@dc19a22 is a possible fix for this. This also fixes the minor issue of leaving an empty temporary directory behind after moving all dependency files over.

Semi-related: While debugging this, I also noticed that whenever all @requires are removed from a script, it's injected twice. Ventero@2c07687 fixes this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants