X
Tap here to go to the mobile version of the site.

Support Forum

CSS code to remove this block of text from the "extensions" menu?

Posted

Hello,

What is the CSS code to remove the following block of text from the extensions menu?

https://i.postimg.cc/85svkSXk/extensions-menu.jpg


Cheers.

Hello, What is the CSS code to remove the following block of text from the extensions menu? https://i.postimg.cc/85svkSXk/extensions-menu.jpg Cheers.
Attached screenshots

Chosen solution

You did place the code in userContent.css and not in userChrome.css ? I think that Firefox 67 still needs userContent.css, but you can try to add the code in userChrome.css as well. Try to code in userChrome.css without or above the default @namespace line.

Read this answer in context 0
Quote

Additional System Details

Application

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

More Information

cor-el
  • Top 10 Contributor
  • Moderator
17350 solutions 156824 answers

The about:addons page is an HTML page and this code needs to be in userContent.css to hide the notice.

You can add this code to the userContent.css file.


@-moz-document url-prefix(about:addons){
 #private-browsing-notice { display:none !important }
}
The about:addons page is an HTML page and this code needs to be in userContent.css to hide the notice. You can add this code to the <b>userContent.css</b> file. *http://kb.mozillazine.org/userContent.css <hr> <pre><nowiki>@-moz-document url-prefix(about:addons){ #private-browsing-notice { display:none !important } }</nowiki></pre>

Modified by cor-el

Was this helpful to you?
Quote

Question owner

The message is still present on this one as well after applying that code as well.

The message is still present on this one as well after applying that code as well.
Was this helpful to you?
Quote
cor-el
  • Top 10 Contributor
  • Moderator
17350 solutions 156824 answers

Chosen Solution

You did place the code in userContent.css and not in userChrome.css ? I think that Firefox 67 still needs userContent.css, but you can try to add the code in userChrome.css as well. Try to code in userChrome.css without or above the default @namespace line.

You did place the code in userContent.css and not in userChrome.css ? I think that Firefox 67 still needs userContent.css, but you can try to add the code in userChrome.css as well. Try to code in userChrome.css without or above the default @namespace line.

Modified by cor-el

Was this helpful to you?
Quote

Question owner

cor-el said

You did place the code in userContent.css and not in userChrome.css ? I think that Firefox 67 still needs userContent.css, but you can try to add the code in userChrome.css as well. Try to code in userChrome.css without or above the default @namespace line.

Removing the top part took care of it.

Thanks again sir.

''cor-el [[#answer-1238729|said]]'' <blockquote> You did place the code in userContent.css and not in userChrome.css ? I think that Firefox 67 still needs userContent.css, but you can try to add the code in userChrome.css as well. Try to code in userChrome.css without or above the default @namespace line. </blockquote> Removing the top part took care of it. Thanks again sir.
Was this helpful to you?
Quote
cor-el
  • Top 10 Contributor
  • Moderator
17350 solutions 156824 answers

If there is any data appended on the location bar after about:addons then you have to use url-prefix() instead of url() if that line is what you are referring to. This is probably better anyway. This line specifies where this code should be applied.

If there is any data appended on the location bar after about:addons then you have to use url-prefix() instead of url() if that line is what you are referring to. This is probably better anyway. This line specifies where this code should be applied. *https://developer.mozilla.org/en-US/docs/Web/CSS/@document
Was this helpful to you?
Quote
Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.