I need to edit the .js file for an add-on, but my text editor won't let me
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/Profilesemail@example.com/chrome/content/dstocks2.js). However, the file does not exist in Finder. Instead, in Finder, I go to firstname.lastname@example.org, 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 ...email@example.com/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
- 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
- User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:43.0) Gecko/20100101 Firefox/43.0
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.
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.
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.
But you can't modify (edit) this file because that will break the signing information stored in the META-INF folder.
What kind of edit is needed? You could try contacting the author Didier Lafleur about the problem at firstname.lastname@example.org and see whether you can get it fixed officially.