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

Extension Stylesheet Loader question #51

Open
VitalSkib opened this issue Aug 24, 2022 · 3 comments
Open

Extension Stylesheet Loader question #51

VitalSkib opened this issue Aug 24, 2022 · 3 comments
Assignees
Labels
discussion If you just want to discuss something you can use this like a message board thread

Comments

@VitalSkib
Copy link

Hi.
@aminomancer
I tried to use your Extension Stylesheet Loader script and it does not want to work for me.
Could you please explain step by step (or at least briefly) how to make it work without using DuskFox?
Sorry for the stupid questions.
By the way, I successfully use some of your scripts, for example, tooltips related ones (you helped me on Reddit 👍).
Thanks in advance..

@VitalSkib VitalSkib added the discussion If you just want to discuss something you can use this like a message board thread label Aug 24, 2022
@aminomancer
Copy link
Owner

Can you give some more details? When you say it does not want to work, what do you mean? You're not seeing a uc-extension-id attribute on the document root element? What version of firefox? What extension is it not working for? Are you using fx-autoconfig? etc.

@aminomancer
Copy link
Owner

Also, your chrome folder can't be set to read-only, the script needs to create temp files inside it. Anyway, it will help if you open the browser toolbox (Ctrl+Alt+Shift+I), go to the Console tab, right click inside the message area and click "Copy all Messages" or "Save all Messages to File" and upload the messages here.

@VitalSkib
Copy link
Author

Yeah, I'm sorry that I was not detailed enough..
I'll try to explain more carefully.
So, I must say right away that your script is loads and works, the style .css file also loads and works..
However, what I can’t understand is why my rules also apply to other extensions, the body background in particular..?
And if I add html for example, then it applies to all other open pages.
I thought that this method should only be applied to a specific extension and will be limited to it.
But it turned out to be not so.
Or, most likely I do something wrong and that is why I asked for step-by-step instructions.
Although I see in your example stylesheets that you also use the @-moz-document regexp("^moz-extension://.. to limit it.
So, can you explain this to me please, if it is normal that the rules apply to other extensions?
And if not, then what may be wrong in theory..?

Here is a part of my code:

:root[uc-extension-id="{9a253c57-0e95-4589-be64-365b3602c564}"i]
body {
    background: #242424 !important;
    color: #fff !important;
}

As for your counter questions..
I'm on Windows 11 25188.1000 Dev Insider, Firefox Nightly 106.0a1 and fx-autoconfig (MrOtherGuy).
And the extension I experiment with: Resource Override.
Here is the Console Messages..
tia

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion If you just want to discuss something you can use this like a message board thread
Projects
None yet
Development

No branches or pull requests

2 participants