GithubHelp home page GithubHelp logo

Comments (3)

aminomancer avatar aminomancer commented on May 12, 2024

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.

from uc.css.js.

aminomancer avatar aminomancer commented on May 12, 2024

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.

from uc.css.js.

VitalSkib avatar VitalSkib commented on May 12, 2024

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

from uc.css.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.