Git Product home page Git Product logo

firefoxmac's Introduction

Firefox

Clone the project in /Applications/Firefox

The original app is located at /Applications/Firefox/Firefox.app

  • Download Firefox English
  • Open dmg file
  • Backup: drag and drop the old one in Backup directoy and copy the content of Profiles as well for a backup
  • Update: download the new version and simply replace it by a drag & drop from the dmg file
  • Launch FireUpdate.appto update all the launchers with the new version of the app

Default locations

FYI

  • ~/Library/Application Support/Firefox/Profiles
  • ~/Library/Caches/Firefox/Profiles

Aliases: Profiles/Default

Change an icon of an app:

  • Get Info
  • Drag and Drop the icns file to the first icon (the upper left one, not the big one)

Launchers

Launchers in the current directory are Automator scripts

1 - Application receives files and folders as input

2 - Run AppleScript

	-- Add Application path as first argument
	on run {input, parameters}

		set arg0 to path to me
		set output to {arg0} & input

	end run

3 - Run Shell Script

	apppath="$1"
	appname=$(basename -- "$1")
	profile="${appname%.*}"

	cd $apppath/Contents/$appname
	./Contents/MacOS/firefox -profile "$apppath/../Profiles/$profile/" > /dev/null 2>&1 &

FireManager

FireManager.app is also an Automator script with the same steps as Launchers except for the step 3

It is use for creating and managing profiles

3 - Run Shell Script

	cd $1/../Firefox.app
	./Contents/MacOS/firefox-bin -p &

FireUpdate

FireUpdate.app is again an Automator script with the same steps as Launchers except for the step 3

It is use to update all the Firefox app included inside each launcher

3 - Run Shell Script

	apppath="$1"
	cd $apppath/..

	update_profile_app(){
		local profile=$1
		mkdir -p ${profile}.app/Contents/${profile}.app
		rm -rf ${profile}.app/Contents/${profile}.app/Contents
		cp -R Firefox.app/Contents ${profile}.app/Contents/${profile}.app/Contents/
	}

	update_profile_app Empty

Create a new profile

  • Copy Empty.app
  • Paste New.app
  • Show Package Contents
  • Rename Contents/Empty.app to Contents/New.app
  • Change the icon of both New.app and Contents/New.app
  • Copy Profiles/Empty
  • New Profiles/New
  • Check that prefs.js and user.js are here before first startup.

Note:

  • New.app is the Automator script launcher
  • Contents/New.app is the copied Firefox app

Preferences

Configuration As Doc

  • user.js to set some default parameters at startup
  • prefs.js to set some default parameters for first startup

prefs.js changed when Firefox closes

AddOns

Security

Search Tool

firefoxmac's People

Contributors

starli0n avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.