MrOtherGuy / fx-autoconfig

Load custom javascript in browser context
Mozilla Public License 2.0
173 stars 11 forks source link

MacOS install instructions? #5

Open Tnings opened 2 years ago

Tnings commented 2 years ago

Could you write instructions on how to install on MacOS? Thanks!

MrOtherGuy commented 2 years ago

Sorry no, I can't really since I don't have access to any mac system. But it would likely be pretty much the same as described, except that the install directory (or "program folder") is somewhere else.

I don't know where macOS installs programs. But once you find that then the rest should probably be the same.

aminomancer commented 2 years ago

I wrote some instructions a while ago:

You first need to find your Firefox installation folder. On Windows that's C:/Program Files/Firefox Nightly/. On Linux it should be usr/lib/firefox/. On macOS this is more complicated. You need to open the application file itself, probably in Macintosh HD/Applications/. It's the file you double-click to open Firefox, but it's actually a package, not a binary. If you right click it, there will be an option in the context menu labeled "Show Package Contents." Clicking this takes you to the app constants. From there, navigate to Contents/Resources/ to reach the root directory. So whichever OS you're on, you should end up with...

  1.   a file called config.js in your Firefox installation's root directory;
  2.   a folder called defaults in the root directory;
  3.   a folder called pref inside that defaults folder;
  4.   a file called config-prefs.js inside that pref folder;
  5.   a JS folder in your profile's chrome folder;
  6.   a utils folder in your chrome folder, containing chrome.manifest and boot.jsm;

So you're basically going to Macintosh HD/Applications/Firefox Nightly.app/Contents/Resources/ and dumping the contents of the program folder into there. And then of course, you need to make a chrome folder in your profile folder if you don't already have one. That's easier to find, you can go to about:profiles in your urlbar, find your profile in the page, click the "Open Folder" button in the profile's "Root Directory" row. That will locate it for you. Then you just make a chrome folder in that profile folder, and put the contents of the profile/chrome folder in there.

I have personally tested this, it works.