This is a quick how-to for generic rebranding of TenFourFox.
You'll need a name for your browser, some new icons and logos, a website and/or file hosting, and some patience.
Download TenFourFox's source from https://github.com/classilla/tenfourfox/releases and extract it somewhere.
Now start editing files.
The semicolons indicate the line number to jump to in each file.
Example: /browser/base/content/aboutDialog.xul:133: means you'll edit line 133 of aboutDialog.xul
/browser/base/content/aboutDialog.xul:133: (change the URL)
/browser/app/profile/firefox.js:1122: (change the URL)
/browser/app/profile/firefox.js:1128: (change the URL)
/browser/app/macbuild/Contents/Info.plist.in:162: (change firefox to name of your browser in lowercase)
/browser/branding/unofficial/pref/firefox-branding.js:5: (change the URL)
/browser/branding/unofficial/pref/firefox-branding.js:6: (change the URL)
/browser/branding/unofficial/pref/firefox-branding.js:17 (change the URL)
/browser/branding/unofficial/pref/firefox-branding.js:20: (change the URL)
/browser/branding/unofficial/pref/firefox-branding.js:40: (change the URL)
/browser/branding/unofficial/pref/firefox-branding.js:41: (change the URL)
/browser/branding/nightly/pref/firefox-branding.js:5: (change the URL)
/browser/branding/nightly/pref/firefox-branding.js:6: (change the URL)
/browser/branding/nightly/pref/firefox-branding.js:18: (change the URL)
/browser/branding/nightly/pref/firefox-branding.js:21: (change the URL)
/browser/branding/nightly/pref/firefox-branding.js:41: (change the URL)
/browser/branding/nightly/pref/firefox-branding.js:42: (change the URL)
/browser/branding/official/pref/firefox-branding.js:5: (change the URL)
/browser/branding/official/pref/firefox-branding.js:6: (change the URL)
/browser/components/preferences/in-content/tenfourfox.xul:34: (change to your browser name)
/browser/components/preferences/in-content/preferences.xul:179: (change to your browser name)
/browser/components/preferences/in-content/preferences.xul:182: (change to your browser name)
/browser/locales/en-US/chrome/browser/aboutDialog.dtd:35: (change to your site or vendor name)
/browser/locales/en-US/chrome/browser/aboutDialog.dtd:41: (add yourself to the contributors list)
/browser/locales/en-US/chrome/browser/aboutDialog.dtd:52: (add to this, but it'd be a nice gesture to leave the original info)
/browser/branding/unofficial/locales/en-US/brand.properties:5: (new browser name)
/browser/branding/unofficial/locales/en-US/brand.properties:6: (new browser name)
/browser/branding/unofficial/locales/en-US/brand.properties:7: (new browser name)
/browser/branding/unofficial/locales/en-US/brand.dtd:5: (new browser name)
/browser/branding/unofficial/locales/en-US/brand.dtd:6: (new browser name)
/browser/branding/unofficial/locales/en-US/brand.dtd:7: (new browser name)
/browser/branding/unofficial/locales/en-US/brand.dtd:8: (new vendor name)
/browser/branding/unofficial/configure.sh:5: (new browser name)
/browser/branding/nightly/locales/en-US/brand.properties:5: (new browser name)
/browser/branding/nightly/locales/en-US/brand.properties:6: (new browser name)
/browser/branding/nightly/locales/en-US/brand.properties:7: (new browser name)
/browser/branding/nightly/locales/en-US/brand.dtd:5: (new browser name)
/browser/branding/nightly/locales/en-US/brand.dtd:6: (new browser name)
/browser/branding/nightly/locales/en-US/brand.dtd:7: (new browser name)
/browser/branding/nightly/locales/en-US/brand.dtd:8: (new vendor name)
/browser/branding/nightly/configure.sh:5: (new browser name)
/browser/confvars.sh:6: (change browser name)
/browser/confvars.sh:7: (change vendor name)
/browser/config/version.txt (change version of browser)
/browser/config/version_display.txt (change version of browser)
/toolkit/mozapps/update/nsUpdateService.js:3329: (change the URL)
/toolkit/mozapps/update/content/updates.js:932: (change the URL)
/toolkit/mozapps/update/content/updates.js:949: (change the URL)
/netwerk/protocol/http/nsHttpHandler.cpp:736: (change browser name)
/104fx_copy.sh:15: (change TenFourFox.app to YourBrowserName.app)
Now create some new icons and logos. Use the existing as templates for the sizes that you'll need.
/browser/branding/nightly replace firefox.icns and background.png
/browser/branding/nightly/content replace about.png, about-background.png,
about-logo.png, about-wordmark.png, icon48.png, icon64.png
/browser/branding/unofficial replace firefox.icns and background.png
/browser/branding/unofficial/content replace about.png, about-background.png,
about-logo.png, about-wordmark.png, icon48.png, icon64.png
That should be it for the basics.
If you want to do a "full" rebrand you can grep your way through the source for specific words.
Example:
This will create a txt file with every file that has the word "TenFourFox" in it.
Note this is case sensitive and you'll get different results when running:
These results give you the option to replace every instance of TFF if you want.
Just be careful of what you change as going overboard could break your build.
Now go and build your "new" browser!
With any luck you'll get results like this:
You'll need a name for your browser, some new icons and logos, a website and/or file hosting, and some patience.
Download TenFourFox's source from https://github.com/classilla/tenfourfox/releases and extract it somewhere.
Now start editing files.
The semicolons indicate the line number to jump to in each file.
Example: /browser/base/content/aboutDialog.xul:133: means you'll edit line 133 of aboutDialog.xul
/browser/base/content/aboutDialog.xul:133: (change the URL)
/browser/app/profile/firefox.js:1122: (change the URL)
/browser/app/profile/firefox.js:1128: (change the URL)
/browser/app/macbuild/Contents/Info.plist.in:162: (change firefox to name of your browser in lowercase)
/browser/branding/unofficial/pref/firefox-branding.js:5: (change the URL)
/browser/branding/unofficial/pref/firefox-branding.js:6: (change the URL)
/browser/branding/unofficial/pref/firefox-branding.js:17 (change the URL)
/browser/branding/unofficial/pref/firefox-branding.js:20: (change the URL)
/browser/branding/unofficial/pref/firefox-branding.js:40: (change the URL)
/browser/branding/unofficial/pref/firefox-branding.js:41: (change the URL)
/browser/branding/nightly/pref/firefox-branding.js:5: (change the URL)
/browser/branding/nightly/pref/firefox-branding.js:6: (change the URL)
/browser/branding/nightly/pref/firefox-branding.js:18: (change the URL)
/browser/branding/nightly/pref/firefox-branding.js:21: (change the URL)
/browser/branding/nightly/pref/firefox-branding.js:41: (change the URL)
/browser/branding/nightly/pref/firefox-branding.js:42: (change the URL)
/browser/branding/official/pref/firefox-branding.js:5: (change the URL)
/browser/branding/official/pref/firefox-branding.js:6: (change the URL)
/browser/components/preferences/in-content/tenfourfox.xul:34: (change to your browser name)
/browser/components/preferences/in-content/preferences.xul:179: (change to your browser name)
/browser/components/preferences/in-content/preferences.xul:182: (change to your browser name)
/browser/locales/en-US/chrome/browser/aboutDialog.dtd:35: (change to your site or vendor name)
/browser/locales/en-US/chrome/browser/aboutDialog.dtd:41: (add yourself to the contributors list)
/browser/locales/en-US/chrome/browser/aboutDialog.dtd:52: (add to this, but it'd be a nice gesture to leave the original info)
/browser/branding/unofficial/locales/en-US/brand.properties:5: (new browser name)
/browser/branding/unofficial/locales/en-US/brand.properties:6: (new browser name)
/browser/branding/unofficial/locales/en-US/brand.properties:7: (new browser name)
/browser/branding/unofficial/locales/en-US/brand.dtd:5: (new browser name)
/browser/branding/unofficial/locales/en-US/brand.dtd:6: (new browser name)
/browser/branding/unofficial/locales/en-US/brand.dtd:7: (new browser name)
/browser/branding/unofficial/locales/en-US/brand.dtd:8: (new vendor name)
/browser/branding/unofficial/configure.sh:5: (new browser name)
/browser/branding/nightly/locales/en-US/brand.properties:5: (new browser name)
/browser/branding/nightly/locales/en-US/brand.properties:6: (new browser name)
/browser/branding/nightly/locales/en-US/brand.properties:7: (new browser name)
/browser/branding/nightly/locales/en-US/brand.dtd:5: (new browser name)
/browser/branding/nightly/locales/en-US/brand.dtd:6: (new browser name)
/browser/branding/nightly/locales/en-US/brand.dtd:7: (new browser name)
/browser/branding/nightly/locales/en-US/brand.dtd:8: (new vendor name)
/browser/branding/nightly/configure.sh:5: (new browser name)
/browser/confvars.sh:6: (change browser name)
/browser/confvars.sh:7: (change vendor name)
/browser/config/version.txt (change version of browser)
/browser/config/version_display.txt (change version of browser)
/toolkit/mozapps/update/nsUpdateService.js:3329: (change the URL)
/toolkit/mozapps/update/content/updates.js:932: (change the URL)
/toolkit/mozapps/update/content/updates.js:949: (change the URL)
/netwerk/protocol/http/nsHttpHandler.cpp:736: (change browser name)
/104fx_copy.sh:15: (change TenFourFox.app to YourBrowserName.app)
Now create some new icons and logos. Use the existing as templates for the sizes that you'll need.
/browser/branding/nightly replace firefox.icns and background.png
/browser/branding/nightly/content replace about.png, about-background.png,
about-logo.png, about-wordmark.png, icon48.png, icon64.png
/browser/branding/unofficial replace firefox.icns and background.png
/browser/branding/unofficial/content replace about.png, about-background.png,
about-logo.png, about-wordmark.png, icon48.png, icon64.png
That should be it for the basics.
If you want to do a "full" rebrand you can grep your way through the source for specific words.
Example:
Code:
grep -rnw '/path/to/tenfourfox-FPR32b1' -e 'TenFourFox' > TFF.txt
Note this is case sensitive and you'll get different results when running:
Code:
grep -rnw '/path/to/tenfourfox-FPR32b1' -e 'tenfourfox' > TFF.txt
Just be careful of what you change as going overboard could break your build.
Now go and build your "new" browser!
With any luck you'll get results like this:
Last edited: