Comments (8)
You know, now that im primarily on linux.. I looked at your script again to really see what its about. The script is actually really good, and I made some modifications to transformed it into a universal installer TUI
After autodetecting the current profile, or taking in a users specified profile path:
- Ask the user to delete their chrome folder for a new theme/update
- It uses Git, to download the latest version of the theme
- The user can also enter a different theme's github page (example: https://github.com/user/Theme.git)
- Then it Git clones the latest version of whichever theme straight into the chrome folder
- It searches to see if the theme has a user.js
- If there is a user.js, it copies it into the profile folder, and restarts firefox
- If there is a user.js, it also removes it, after firefox is restarted
Now the script works standalone, it will download latest sources of whatever theme you input, and do the rest. Let me know what you think @Noraxx1
2024-06-07.23-11-51-mc.mp4
from ff-ultima.
Just letting it here if anyone want to try Windows version.
https://stackoverflow.com/questions/60525393/install-git-if-not-installed-and-clone#60526053
Although it lacks git setup downloading, but it is a simple command to add I guess.
More work would be needed to navigate various profile folders and cleanup.
from ff-ultima.
Its pretty simple which is cool, ill test it out in a bit
from ff-ultima.
for me firefox always makes the profiles.ini file in a way that the actual profile is the 2nd one under [Profile0]
I use this
profile_dir="$HOME/.mozilla/firefox/$(kreadconfig5 --file ~/.mozilla/firefox/profiles.ini --group Profile0 --key Path)"
I'm lazy but the script could also do
- temporarily move existing user.js
- move the FF-ULTIMA user.js into place, then kill/run firefox for 5 seconds, then delete the user.js and move the original back into place
from ff-ultima.
Yeah Im not as experienced with bash myself, I did notice the need to still enter the folder and do that exactly, I considered restructuring the source -> into a chrome folder, with the user.js on the outside like Kaedriz once suggested. It might be easier than making the directory via script, but then, the user.js doesnt need to be added in on every update, its typically a one time application.
from ff-ultima.
I would nitpick that it requires git installed in order to work. While that is common on Linux systems, on Windows not so much I think, not sure about Mac. There is another way using download and extract, but is more convoluted as there is systems-specific code to execute commands.
You probably need a warning that git must be installed in order to installer to work, as confusion can arrive.
EDIT: But seeing as it is .sh file, it probably won't work on Windows easily. Dunno how PShell comp goes.
from ff-ultima.
I would nitpick that it requires git installed in order to work.|
Yeah definitely, but that requirement can be included in the installers distribution, shouldnt be an issue since a majority (maybe all) css themes are acquired through Github anyway.
EDIT: But seeing as it is .sh file, it probably won't work on Windows easily. Dunno how PShell comp goes.
A Windows script I wouldn't even attempt, after switching to Linux as a main pc, I see more and more how complicated Windows makes things for the User. Rven potentially deleting downloaded scripts that they would have to go into Windows Defender (typically) to 'restore' is a pain.
from ff-ultima.
I further corrected the firefox restart process to shutdown gracefully, and restart in time for the user.js deletion phase. Added a git check at least, for the first page. Will look into making the Windows thing.
from ff-ultima.
Related Issues (20)
- Youtube notifs look more vibrant than it should. HOT 3
- Add an OS option for no titlebar HOT 2
- The Google search tools do not get displayed correctly HOT 7
- [Help] Can you make sidebery behave like arc HOT 4
- settings not showing up in about:config HOT 5
- Vertical tab bar overlaps bookmarks bar on Fedora Gnome HOT 3
- Tab arrangement bug HOT 2
- How to put wallpaper on the home page, and how to make round icons at the top of the panel where you can close firefox? HOT 2
- Sidebery bottom bar disappears when `squared` or `squished` are set to true HOT 5
- Opening a new tab causes this problem? HOT 4
- Sidebar for vertical tabs with wrong size HOT 6
- Do you have any account to receive donation? HOT 1
- Vertical tabs not being vertical HOT 2
- New Firefox Update bricked Vertical Tabs HOT 3
- sidebery tree style tabs getting cut off HOT 6
- White line at the top edge of the browser HOT 2
- top right corner
- yt shorts texture glitch HOT 1
- Simply not working HOT 2
- Bugged sideline/buttons HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ff-ultima.