You are not logged in.

#21 2024-12-15 13:33:37

novice
Member
Registered: 2020-01-30
Posts: 61

Re: [SOLVED] YouTube text problem posting comments

marens wrote:

Then add to the userContent.css file:

@-moz-document domain(youtube.com) {

   name_of_the_element {
     color: red !important;
   }
   
}

I don't have a usercontent.css. If I want to use one, where does it go, in my theme or in Firefox profile folder? I got the dark text sorted out by just changing the text colour in Firefox settings, but I don't know if that will have any undesirable effects on other sites.

Offline

#22 2024-12-15 15:42:21

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

Re: [SOLVED] YouTube text problem posting comments

The files usrContent.css (for content) and user.Chrome.css (for user interface) are located in the Firefox profile folder ~/.mozilla/firefox/XXXXXX.default-release/chrome  (replace XXXXXX with your folder name - profile names are different for everyone).

1) Open your Firefox profile folder ~/.mozilla/firefox/XXXXXX.default-release.
2) Then create a chrome folder inside.
3) Open the chrome folder and create userContent.css and user.Chrome.css files.

Note *
4) To improve performance, Firefox 69 and later have disabled loading of userChrome.css  and  userContent.css  by default.
You will need to do is set the pref toolkit.legacyUserProfileCustomizations.stylesheets  to  true in  about:config.

Now you can try my YouTube search box code.
https://forums.bunsenlabs.org/viewtopic … 37#p140037

If it works, then you did everything right.

Unfortunately, as I said before:

marens wrote:

If the above tips don't help, the solution is to use a custom userContent.css  file for the YouTube domain.
But that is a completely different and even more complicated topic.


P.S.
These guys are doing a great job and you can learn a lot from them:
https://github.com/Aris-t2/CustomCSSforFx/tree/master
https://github.com/MrOtherGuy/firefox-csshacks


If people would know how little brain is ruling the world, they would die of fear.

Offline

#23 2024-12-16 05:45:31

Döbbie03
Resident Metalhead
From: New Zealand
Registered: 2015-09-29
Posts: 3,852

Re: [SOLVED] YouTube text problem posting comments

johnraff wrote:

^You wouldn't. It's noscript that causes the hanging till you enable jnn-pa.googleapis.com. smile

Well that makes sense smile


"All we are is dust in the wind, dude"
                                       - Theodore "Ted" Logan
"Led Zeppelin didn't write tunes that everybody liked, they left that to the Bee Gees."
                                       - Wayne Campbell

Offline

#24 2024-12-16 11:03:27

novice
Member
Registered: 2020-01-30
Posts: 61

Re: [SOLVED] YouTube text problem posting comments

Thanks marens.
That works perfectly mate. Search box was OK for me so I just had to do the .css for the comment box. If anyone else needs it, the element name is:

yt-formatted-string

The about:config setting was already 'true' for me.

Offline

#25 2024-12-16 14:38:21

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

Re: [SOLVED] YouTube text problem posting comments

Very nice, @novice.

Thanks for sharing the solution with others.
Is there a dot missing at the beginning of the element yt-formatted-string?

Anyway, you can add [SOLVED] to the thread title If all is well.


If people would know how little brain is ruling the world, they would die of fear.

Offline

#26 2024-12-16 15:52:14

novice
Member
Registered: 2020-01-30
Posts: 61

Re: [SOLVED] YouTube text problem posting comments

No, I've had another look just to make sure, it's just like  that. Thanks.

Offline

Board footer

Powered by FluxBB