RealFire
A minimalist animated oneliner theme for Firefox perfectly matching real Dark.
Install / Use
/learn @Hakanbaban53/RealFireREADME
RealFire 🔥
A minimalist animated oneliner theme for Firefox perfectly matching real Dark
</div> <p align="center"><img src="./assets/preview.png"></p>🏞 Screenshots
<details><summary>Click me 🐈</summary> <h3 align="center">Adaptive Tab Bar Extension Support</h3> <p align="center"><img src="./assets/adaptive-tab-bar-extension-support.gif"></p> <h3 align="center">MacOs Window Control & Fonts</h3> <p align="center" style="max-heigh:250px"><img src="./assets/mac_os_theme.gif"></p> <h3 align="center">Animated Background</h3> <p align="center" style="max-heigh:250px"><img src="./assets/navbar.gif"></p> <h3 align="center">Context Menu</h3> <p align="center"><img src="./assets/context.png"></p> <h3 align="center">Auto-hide Scrollbars</h3> <p align="center" style="max-heigh:250px"><img src="./assets/hide_scroll_bar.gif"></p> <h3 align="center">Library</h3> <p align="center"><img src="./assets/library.png"></p> <h3 align="center">Adaptive Window Color With Windows & GNU/Linux</h3> <p align="center"><img src="./assets/adaptive.gif"></p> </details>📃 Browser JS Files
userChrome.css
This helps to customize Firefox User Interface.
userContent.css
This helps to customize web content like a specific site.
hideScrollbar.uc.js
It's now possible to autohide scrollbars.
macosTheme.uc.js
This script to convert font and window controls to macos style.
❓ But how does it work?
Custom startup-script (aka mozilla.cfg here) is loaded using local-settings.js. This startup-script adds "loader" scripts from utils folder that loads arbitrary javascript files from the script folder into Firefox<br>
mozilla.cfg also helps in setting local webpage as your homepage. Details in Installation (Currently Not Working!).
💡 Installation
<details><summary><strong><em>GUI Installation</em></strong></summary> <summary>Firefox Theme Installer</summary>Check This Repo
Explore the Firefox Theme Installer repository for an easy and efficient way to install and manage your Firefox themes.
</details> <details><summary><strong><em>Curl based Installation (You can install this theme with one line command)</em></strong></summary> <details><summary>GNU/Linux & MacOS</summary><br>```console
$ curl -s -o- https://raw.githubusercontent.com/Hakanbaban53/RealFire/main/programs/install-curl.sh | bash # Standard
$ curl -s -o- https://raw.githubusercontent.com/Hakanbaban53/RealFire/main/programs/install-curl.sh | bash -s -- -f ~/.var/app/org.mozilla.firefox/.mozilla/firefox # Flatpak
$ curl -s -o- https://raw.githubusercontent.com/Hakanbaban53/RealFire/main/programs/install-curl.sh | bash -s -- -f ~/snap/firefox/common/.mozilla/firefox/ # Snap
```
</details>
<details><summary>Windows</summary><br>
```powershell
> curl -sL "https://raw.githubusercontent.com/Hakanbaban53/RealFire/main/programs/install-curl.bat" > %TEMP%\install-curl.bat && %TEMP%\install-curl.bat REM Standard
> curl -sL "https://raw.githubusercontent.com/Hakanbaban53/RealFire/main/programs/install-curl.bat" > %TEMP%\install-curl.bat && %TEMP%\install-curl.bat -b "C:\Program Files (x86)\Mozilla Firefox" REM Custom binary folder
```
</details>
This will download the master branch and run the installation script.
`mozilla.cfg` can be configured after complete installation
</details>
<details><summary><strong><em>Script Installation</em></strong></summary>
-
Clone the repository and enter folder:
$ git clone https://github.com/Hakanbaban53/RealFire.git && cd RealFire -
Run installation script
This script will lookup default Firefox profile location and install the theme with default configurations.
<details><summary>GNU/Linux & MacOS</summary><br>
</details> <details><summary>Windows</summary><br>$ ./programs/install.sh # Standard $ ./programs/install.sh -f ~/.var/app/org.mozilla.firefox/.mozilla/firefox # Flatpak $ ./programs/install.sh -f ~/snap/firefox/common/.mozilla/firefox/ # Snap
</details>> programs\install.bat REM Standard > programs\install.bat -e -b "C:\Program Files (x86)\Mozilla Firefox" REM Disable fx-autoconfig and Custom binary folderScript options
-
-b <binary_folder>optional- Set custom Firefox binary folder path, for example
/usr/lib32/firefox - Default: Auto detects in linux.
C:\Program Files\Mozilla Firefoxin windows
- Set custom Firefox binary folder path, for example
-
-f <firefox_folder>optional- Set custom Firefox folder path, for example
~/.mozilla/icecat/ - Default:
~/.mozilla/firefox/in linux.%APPDATA%\Mozilla\Firefoxin windows
- Set custom Firefox folder path, for example
-
-p <profile_name>optional- Set custom profile name, for example
4htgy4pu.app - Default: Profile folder name found in
profiles.iniat ->
[Install4F96D1932A9F858E] Default=1yrah0xg.default-release Locked=1 - Set custom profile name, for example
-
-eoptional- Install
fx-autoconfig - Runs sudo to copy
mozilla.cfgandlocal-settings.jsto Application Binary folder - Default: True
- Install
-
-hoptional- Shows help message with flags info
-
-
Open
about:supportin new tab and clickOpen DirectorynearProfile Directory. -
Open this directory in terminal and clone the repository
Note: If you already have a
chromefolder underProfile Directory, rename it tochrome_bakor anything else to preserve your old theme.
<details><summary>MacOS</summary><br>$ cd {Your profile directory} $ git clone https://github.com/Hakanbaban53/RealFire.git chrome $ cd chrome-
about:support>Application Binary>{Installation folder}firefox<br> GenerallyInstallation folderis/Applications/Firefox.app/Contents/MacOS/(Firefox Nightlyfor Nightly version)For
MacOS, our destination folder is/Applications/Firefox.app/Contents/Resources/
</details> <details><summary>Windows</summary><br>$ ln -s "`pwd`/programs/user.js" ../user.js $ cp ./programs/mozilla.cfg /Applications/Firefox.app/Contents/Resources/ $ cp ./programs/local-settings.js /Applications/Firefox.app/Contents/Resources/defaults/pref/about:support>Application Binary>{Installation folder}firefox.exe<br> GenerallyInstallation folderisC:\Program Files\Mozilla Firefox\
</details> ```> mklink ..\user.js "%cd%\programs\user.js" > copy .\programs\mozilla.cfg "C:\Program Files\Mozilla Firefox\" > copy .\programs\local-settings.js "C:\Program Files\Mozilla Firefox\defaults\pref\" -
-
🗑️ If you want to remove the Theme:
GNU/Linux & MacOS
./programs/uninstall.sh
Windows
./programs/uninstall.bat
🔧 Follow-up changes
-
In Firefox
- Right click hamburger button >
customize toolbardisableTitle Bar,Drag Space. - Remove
Flexible Spacefrom urlbar. - Set Density to
Compact/Normal/Touchand Themes toDarkorLight.
- Right click hamburger button >
-
Open
about:support>Clear startup cache...>Restarttwice -
Voilà
⚙️ Configuration
-
You can use the realfire-config.css change the a lot of variables.
-
If you run the automatic installation script, it will install all the files in the folders where they need to be installed.
-
If something breaks on your system then please raise a issue
-
If you want to use
vertical tabs, you may need to edit this line in the realfire-config.css file.
📌 Known issues
- Adaptive window color with windows not working on preferences page and start page (Windows only). If you want the change it use the realfire-config.css file.
📂 Folder structure
🗃 .
├── 🖿 assets
│ └── 🖻 preview images
├── 🖿 img
│ └── 🖻 new tab background image
├── 🖿 includes
│ ├── 🗎 realfire-checkbox.css
│ ├── 🗎 realfire-icons.css
│ ├── 🗎 realfire-config.css
│ └── 🗐 other .css files
├── 🖿 JS
│ ├── 🗎 aboutUserChrome.sys.mjs
│ ├── 🗎 navbarToolbarButtonSlider.uc.js
│ ├── 🗎 macosTheme.us.js
│ └── 🗐 many script in .uc.js format
├── 🖿 programs
│ ├── 🗎 install-cfg.sh
│ ├── 🗎 install.sh
│ ├── 🗎 install-curl.sh
│ ├── 🗎 install.bat
│ ├── 🗎 install-curl.bat
│ ├── 🗎 local-settings.js
│ ├── 🗎 mozilla.cfg
│ ├── 🗎 uninstall.bat
│ ├── 🗎 uninstall.sh
│ └── 🗎 user.js
├── 🖿 resources
│ └── 🖿 icons
│ └── 🗐 many icons in .svg format
├── 🖿 utils
│ ├── 🗎 .editorconfig
│ ├── 🗎 boot.sys.mjs
│ ├── 🗎 chrome.manifest
│ ├── 🗎 fs.sys.mjs
│ └── 🗎 utils.sys.mjs
├── 🗎 README.md
├── 🗎 userChrome.css
└── 🗎 userContent.css
Credits
-
I started with this amazing material theme : Sweet_Pop! by PROxZIMA
-
One of the best dark theme for Firefox : ShadowFox by overdodactyl
-
Installation script details.
Stargazers over time
[