Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StyloaiX @import url within chrome profile folder doesn't work #189

Closed
megamorphg opened this issue Oct 12, 2022 · 2 comments
Closed

StyloaiX @import url within chrome profile folder doesn't work #189

megamorphg opened this issue Oct 12, 2022 · 2 comments

Comments

@megamorphg
Copy link

When I try to import the "autohide_sidebar.css" in a different chrome profile folder, it doesn't work:
@import url("../../aeskq86n.default-ahmed/chrome/firefox-csshacks/chrome/autohide_sidebar.css");

The CSS is within a different chrome profile folder and this works fine with normal userChrome.css modification.
I'd like to be able to enable/disable this without restarting FF and tested that other styles work fine so it is something to do with importing syntax?

@xiaoxiaoflood
Copy link
Owner

StyloaiX's styles path is like resource://userchromejs/UserStyles/autohide_sidebar.css. The root resource://userchromejs/ is the chrome folder from running profile.

If you need to import from outside this context, you must use full path like file:///home/user/.mozilla/firefox/aeskq86n.default-ahmed/chrome/firefox-csshacks/chrome/autohide_sidebar.css.

If unsure of full path, just drag the file from your file manager to Firefox and copy the value in addressbar.

@megamorphg
Copy link
Author

Ah, looks like I can't share a single CSS across profiles with StylaoiX then (without symlink). Btw had to use "file://" and not "file:////"; maybe it's a Windows thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants