8000 GitHub - greeeen-dev/userchrome-loader
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

greeeen-dev/userchrome-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

userChrome Loader

This is a template intended to make it easier for end-users to manually load and manage custom CSS.

Setup Instructions

  1. If you already have custom CSS in your userChrome.css file, back it up by copying the contents to a new CSS file indside the chrome/ folder.

    • If you don't have any custom CSS in your userChrome.css file, skip this step.
  2. Copy the userChrome.css file from this repo into your own userChrome.css file.

    • You can keep manual customizations in this file, however, uCL only uses it for import rules to call mods.
  3. When you find a customization you want to add, copy the contents to a new folder inside chrome/.

    • Make sure the new folder and CSS file have unique names.
  4. Add the @import rule to userChrome.css with the path to the new CSS file made in the last step.

Examples:

@import "chrome/example/example.css";

@import "chrome/example-2/example-mod2.css";

Why Use uCL?

Orginizing custom CSS into their own files and folders will significantly aid users in customization and file management, as well as troubleshooting bugs by enabling easier isolation of custom CSS through @import rules.

This also allows Mod creaters to make their customizations more modular, allowing end users to pick and choose which features they want to add.

Mod Creators / CSS Wizards:

Now when you upload some CSS with the intention of sharing, you can orginize your project folder structure by feauture with Modules. See Natsumi Browser for the ideal project structure.

mod
|- mod.css
|- modules
   |- module1.css
   |- module2.css
userChrome.css

Further Examples:

Here's what your chrome folder should look like, with some example mods already in place:

image

And here's an example of userChrome.css

/* === Load custom files === */

@import "userchrome-loader/Cohesion/Cohesion.css";
@import "userchrome-loader/natsumi/config.css";
@import "userchrome-loader/natsumi/preload.css";
@import "userchrome-loader/natsumi/patches.css";
@import "userchrome-loader/natsumi/base-ui.css";
@import "userchrome-loader/natsumi/tab-groups.css";
@import "userchrome-loader/natsumi/horizontal-tabs.css";
@impo
55C4
rt "userchrome-loader/natsumi/natsumi-urlbar.css";
@import "userchrome-loader/natsumi/natsumi-loading.css";
@import "userchrome-loader/natsumi/ui-tweaks.css";

/* === Other custom CSS === */
. . .

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0