X
Tik hier voor de mobiele versie van de website.

Ondersteuningsforum

CSS Code to remove "recommanded" box from themes menu?

Geplaatst

Hello,

What is the CSS code to remove the "Recommended" box from the themes menu inside the cuztomize preferences?

Please see attached image for reference.


Thanks in advance.

Hello, What is the CSS code to remove the "Recommended" box from the themes menu inside the cuztomize preferences? Please see attached image for reference. Thanks in advance.

Gekozen oplossing

There is no easy way to remove items in the list. The Recommneded label and the footer have an id/ To hide specific items in the list you need to provide their label name or at least the first letters.

#customization-lwtheme-menu-recommended,
#customization-lwtheme-menu-footer,
.customization-lwtheme-menu-theme[label^="<label name>"]{
 display:none!important;
}

https://dxr.mozilla.org/mozilla-release/source/browser/components/customizableui/CustomizeMode.jsm https://dxr.mozilla.org/mozilla-release/source/browser/components/customizableui/content/customizeMode.inc.xul

Dit antwoord in context lezen 0
Citeren

Aanvullende systeemdetails

Toepassing

  • Useragent: Mozilla/5.0 (Windows NT 6.1; rv:67.0) Gecko/20100101 Firefox/67.0

Meer informatie

cor-el
  • Top 10 Contributor
  • Moderator
17351 oplossingen 156825 antwoorden

Is this about the Recommendations tab on the about:addons page?

You can create a new Boolean pref on the about:config page and set its value to false.

  • extensions.getAddons.showPane = false

You can open the about:config page via the location/address bar. You can accept the warning and click "I accept the risk!" to continue.

Is this about the Recommendations tab on the about:addons page? You can create a new Boolean pref on the <b>about:config</b> page and set its value to false. * extensions.getAddons.showPane = false You can open the <b>about:config</b> page via the location/address bar. You can accept the warning and click "I accept the risk!" to continue. *https://support.mozilla.org/en-US/kb/about-config-editor-firefox
Was dit nuttig voor u?
Citeren

Vraageigenaar

cor-el said

Is this about the Recommendations tab on the about:addons page? You can create a new Boolean pref on the about:config page and set its value to false.
  • extensions.getAddons.showPane = false
You can open the about:config page via the location/address bar. You can accept the warning and click "I accept the risk!" to continue.

No, that's not the one. As the image shows:

Hamburger menu -> customize -> themes button (bottom left corner)

There's a box labelled "Recommanded" that I would like to remove.

Normally there is a list of 3-4 themes under it but I have already removed the list since it's just a simple hot link in the "about:config" menu.

''cor-el [[#answer-1238400|said]]'' <blockquote> Is this about the Recommendations tab on the about:addons page? You can create a new Boolean pref on the <b>about:config</b> page and set its value to false. * extensions.getAddons.showPane = false You can open the <b>about:config</b> page via the location/address bar. You can accept the warning and click "I accept the risk!" to continue. *https://support.mozilla.org/en-US/kb/about-config-editor-firefox </blockquote> No, that's not the one. As the image shows: Hamburger menu -> customize -> themes button (bottom left corner) There's a box labelled "Recommanded" that I would like to remove. Normally there is a list of 3-4 themes under it but I have already removed the list since it's just a simple hot link in the "about:config" menu.
Was dit nuttig voor u?
Citeren
cor-el
  • Top 10 Contributor
  • Moderator
17351 oplossingen 156825 antwoorden

Gekozen oplossing

There is no easy way to remove items in the list. The Recommneded label and the footer have an id/ To hide specific items in the list you need to provide their label name or at least the first letters.

#customization-lwtheme-menu-recommended,
#customization-lwtheme-menu-footer,
.customization-lwtheme-menu-theme[label^="<label name>"]{
 display:none!important;
}

https://dxr.mozilla.org/mozilla-release/source/browser/components/customizableui/CustomizeMode.jsm https://dxr.mozilla.org/mozilla-release/source/browser/components/customizableui/content/customizeMode.inc.xul

There is no easy way to remove items in the list. The Recommneded label and the footer have an id/ To hide specific items in the list you need to provide their label name or at least the first letters. <pre><nowiki>#customization-lwtheme-menu-recommended, #customization-lwtheme-menu-footer, .customization-lwtheme-menu-theme[label^="<label name>"]{ display:none!important; }</nowiki></pre> ----- https://dxr.mozilla.org/mozilla-release/source/browser/components/customizableui/CustomizeMode.jsm https://dxr.mozilla.org/mozilla-release/source/browser/components/customizableui/content/customizeMode.inc.xul

Bewerkt door cor-el op

Was dit nuttig voor u?
Citeren
McCoy
  • Top 10 Contributor
496 oplossingen 4563 antwoorden

Avengement said

Normally there is a list of 3-4 themes under it but I have already removed the list since it's just a simple hot link in the "about:config" menu.

Hello Avengement,

I don't know what "simple hot link" you are referring to, but it should be these :

extensions.htmlaboutaddons.discover.enabled and extensions.htmlaboutaddons.recommendations.enabled

(and of course set both values to false)

Not only will that remove the "Recommended" from "about:addons", but you won't see it on the Customize page anymore either.

''Avengement [[#answer-1238412|said]]'' <blockquote> Normally there is a list of 3-4 themes under it but I have already removed the list since it's just a simple hot link in the "about:config" menu. </blockquote> Hello Avengement, I don't know what "simple hot link" you are referring to, but it should be these : '''extensions.htmlaboutaddons.discover.enabled''' and '''extensions.htmlaboutaddons.recommendations.enabled''' (and of course set both values to '''false''') Not only will that remove the "Recommended" from "about:addons", but you won't see it on the Customize page anymore either.
Was dit nuttig voor u?
Citeren

Vraageigenaar

McCoy said

Avengement said
Normally there is a list of 3-4 themes under it but I have already removed the list since it's just a simple hot link in the "about:config" menu.

Hello Avengement,

I don't know what "simple hot link" you are referring to, but it should be these :

extensions.htmlaboutaddons.discover.enabled and extensions.htmlaboutaddons.recommendations.enabled

(and of course set both values to false)

Not only will that remove the "Recommended" from "about:addons", but you won't see it on the Customize page anymore either.

Both of those booleans do not exist but when I manually added them with the false flag there was no change regarding what I was looking for.

Regarding the list of recommended themes they are easily removed once the following is cleared:

lightweightThemes.recommendedThemes,

However that still leaves the "Recommended" text box that I was trying to get rid of.

''McCoy [[#answer-1238422|said]]'' <blockquote> ''Avengement [[#answer-1238412|said]]'' <blockquote> Normally there is a list of 3-4 themes under it but I have already removed the list since it's just a simple hot link in the "about:config" menu. </blockquote> Hello Avengement, I don't know what "simple hot link" you are referring to, but it should be these : '''extensions.htmlaboutaddons.discover.enabled''' and '''extensions.htmlaboutaddons.recommendations.enabled''' (and of course set both values to '''false''') Not only will that remove the "Recommended" from "about:addons", but you won't see it on the Customize page anymore either. </blockquote> Both of those booleans do not exist but when I manually added them with the false flag there was no change regarding what I was looking for. Regarding the list of recommended themes they are easily removed once the following is cleared: <blockquote>lightweightThemes.recommendedThemes,</blockquote> However that still leaves the "Recommended" text box that I was trying to get rid of.

Bewerkt door Avengement op

Was dit nuttig voor u?
Citeren

Vraageigenaar

cor-el said

There is no easy way to remove items in the list. The Recommneded label and the footer have an id/ To hide specific items in the list you need to provide their label name or at least the first letters.
#customization-lwtheme-menu-recommended,
#customization-lwtheme-menu-footer,
.customization-lwtheme-menu-theme[label^="<label name>"]{
 display:none!important;
}

https://dxr.mozilla.org/mozilla-release/source/browser/components/customizableui/CustomizeMode.jsm https://dxr.mozilla.org/mozilla-release/source/browser/components/customizableui/content/customizeMode.inc.xul

The top line solved the problem.

Thanks again cor-el.

''cor-el [[#answer-1238415|said]]'' <blockquote> There is no easy way to remove items in the list. The Recommneded label and the footer have an id/ To hide specific items in the list you need to provide their label name or at least the first letters. <pre><nowiki>#customization-lwtheme-menu-recommended, #customization-lwtheme-menu-footer, .customization-lwtheme-menu-theme[label^="<label name>"]{ display:none!important; }</nowiki></pre> ----- https://dxr.mozilla.org/mozilla-release/source/browser/components/customizableui/CustomizeMode.jsm https://dxr.mozilla.org/mozilla-release/source/browser/components/customizableui/content/customizeMode.inc.xul </blockquote> The top line solved the problem. Thanks again cor-el.
Was dit nuttig voor u?
Citeren
McCoy
  • Top 10 Contributor
496 oplossingen 4563 antwoorden

Avengement said

Both of those booleans do not exist but when I manually added them with the false flag there was no change regarding what I was looking for.

That's because you're using Firefox version 67.0 - any particular reason why you haven't updated ?

''Avengement [[#answer-1238465|said]]'' <blockquote> Both of those booleans do not exist but when I manually added them with the false flag there was no change regarding what I was looking for. </blockquote> That's because you're using Firefox version 67.0 - any particular reason why you haven't updated ?
Was dit nuttig voor u?
Citeren
cor-el
  • Top 10 Contributor
  • Moderator
17351 oplossingen 156825 antwoorden

Note that this thread is about the Customize palette window and not about the about:addons page.

Note that this thread is about the Customize palette window and not about the about:addons page.
Was dit nuttig voor u?
Citeren
McCoy
  • Top 10 Contributor
496 oplossingen 4563 antwoorden

cor-el said

Note that this thread is about the Customize palette window and not about the about:addons page.

Noted. Like I said in my first post : changing those two prefs will also remove the "Recommended" from the Customize palette. But only with Firefox 68+ ....

''cor-el [[#answer-1238715|said]]'' <blockquote> Note that this thread is about the Customize palette window and not about the about:addons page. </blockquote> Noted. Like I said in my first post : changing those two prefs will also remove the "Recommended" from the Customize palette. But only with Firefox 68+ ....
Was dit nuttig voor u?
Citeren
Een vraag stellen

U moet zich aanmelden bij uw account om op berichten te antwoorden. Stel een nieuwe vraag als u nog geen account hebt.