X
Tap here to go to the mobile version of the site.

Support Forum

I need to edit the .js file for an add-on, but my text editor won't let me

Posted

I'm sorry to have to include much detail, as I really don't understand what is important or not for this question. Using FF43.0.2 and Snow Leopard. A forum using the file name gave no hits.

The add-on file that needs editing is dstocks2.js (/Users/cglenn/Library/Application Support/Firefox/Profiles/a683761i.default/extensions/dstocks@dstocks.fr.xpi/chrome/content/dstocks2.js). However, the file does not exist in Finder. Instead, in Finder, I go to dstocks@dstocks.fr.xpi, click on that, and my text editor (TextWrangler) opens that file. In finder, the .xpi file is the end file with no sub-flolders, but in textwrangler, new folder are "created", so that the file path is ...dstocks@dstocks.fr.xpi/chrome/content/dstocks2.js.

Since this file does not "exist" for searching, I can't select the file and edit it. When I try, textwrangler says I must save dstocks2.js to a file to edit, so I finish that dialog, but the file is not saved, even when FF is closed.

I'm at a loss how to edit the dstocks2.js file.

I'm sorry to have to include much detail, as I really don't understand what is important or not for this question. Using FF43.0.2 and Snow Leopard. A forum using the file name gave no hits. The add-on file that needs editing is dstocks2.js (/Users/cglenn/Library/Application Support/Firefox/Profiles/a683761i.default/extensions/dstocks@dstocks.fr.xpi/chrome/content/dstocks2.js). However, the file does not exist in Finder. Instead, in Finder, I go to dstocks@dstocks.fr.xpi, click on that, and my text editor (TextWrangler) opens that file. In finder, the .xpi file is the end file with no sub-flolders, but in textwrangler, new folder are "created", so that the file path is ...dstocks@dstocks.fr.xpi/chrome/content/dstocks2.js. Since this file does not "exist" for searching, I can't select the file and edit it. When I try, textwrangler says I must save dstocks2.js to a file to edit, so I finish that dialog, but the file is not saved, even when FF is closed. I'm at a loss how to edit the dstocks2.js file.

Additional System Details

Installed Plug-ins

  • Amazon MP3 Downloader Plugin 1.0.17
  • The Flip4Mac WMV Plugin allows you to view Windows Media content using QuickTime.
  • Displays Java applet content, or a placeholder if Java is not installed.
  • Office Live Update v1.0
  • The QuickTime Plugin allows you to view a wide variety of multimedia content in web pages. For more information, visit the QuickTime Web site.
  • RealPlayer Plugin
  • Shockwave Flash 20.0 r0
  • WebEx64 General Plugin Container Version 205
  • iPhoto6

Application

  • User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:43.0) Gecko/20100101 Firefox/43.0

More Information

Question owner

I don't see a 'edit post' tab, so here is my edit to the above post:

By copy>paste, I was able to create a new dstocks2.js file, with the edits, on my desktop. But now the issue is how to copy this file to where it goes. As said above, I can't get there with Finder.

I don't see a 'edit post' tab, so here is my edit to the above post: By copy>paste, I was able to create a new dstocks2.js file, with the edits, on my desktop. But now the issue is how to copy this file to where it goes. As said above, I can't get there with Finder.
the-edmeister
  • Top 25 Contributor
  • Moderator
5395 solutions 40093 answers

Helpful Reply

This "signing" thing in Firefox 43 and later precludes users from doing hacks like that.

Sorry, I don't know anything about the text editor in MacOSX. But if you edit any file in an XPI package, it will break the signing "seal" for the add-on. Changes like that would require the XPI to be signed again - but it ain't that easy.

This "signing" thing in Firefox 43 and later precludes users from doing hacks like that. Sorry, I don't know anything about the text editor in MacOSX. But if you edit any file in an XPI package, it will break the signing "seal" for the add-on. Changes like that would require the XPI to be signed again - but it ain't that easy.
cor-el
  • Top 10 Contributor
  • Moderator
17424 solutions 157452 answers

An XPI file is a ZIP archive. If Finder can't search for files in a ZIP archive and open such a file then you would have to use an archive manager. Note that you can open such a file in Firefox for inspection via the chrome protocol.

  • chrome://dstocks2/content/dstocks2.js

But you can't modify (edit) this file because that will break the signing information stored in the META-INF folder.

An XPI file is a ZIP archive. If Finder can't search for files in a ZIP archive and open such a file then you would have to use an archive manager. Note that you can open such a file in Firefox for inspection via the chrome protocol. *chrome://dstocks2/content/dstocks2.js But you can't modify (edit) this file because that will break the signing information stored in the META-INF folder.
jscher2000
  • Top 10 Contributor
8643 solutions 70721 answers

Helpful Reply

What kind of edit is needed? You could try contacting the author Didier Lafleur about the problem at didier.lafleur@hotmail.com and see whether you can get it fixed officially.

What kind of edit is needed? You could try contacting the author Didier Lafleur about the problem at didier.lafleur@hotmail.com and see whether you can get it fixed officially.