Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

话题已关闭并存档。 如果需要帮助请提出新问题。

remove search box from about:newtab page

  • 12 个回答
  • 66 人有此问题
  • 1 次查看
  • 最后回复者为 the-edmeister

more options

Recently a search box appeared on top of the thumbnails in the "about:newtab" page, it never had one since i started using it and it said mysearchdial, so i expected something was wrong, after removing this malware or whatever it was, said search box now shows google, but the thing is i never wanted a search box on the about:newtab page, i've tried looking for a solution before posting but i couldn't find anything. This searchbox also made thumbnails smaller and more "clustered" in the middle.

http://i.imgur.com/qai4jC8.jpg Arrows point said searchbox and black square is where all the thumbnails are clustered now

Recently a search box appeared on top of the thumbnails in the "about:newtab" page, it never had one since i started using it and it said mysearchdial, so i expected something was wrong, after removing this malware or whatever it was, said search box now shows google, but the thing is i never wanted a search box on the about:newtab page, i've tried looking for a solution before posting but i couldn't find anything. This searchbox also made thumbnails smaller and more "clustered" in the middle. http://i.imgur.com/qai4jC8.jpg Arrows point said searchbox and black square is where all the thumbnails are clustered now

所有回复 (12)

more options

Here is how you can reset what the tab does. If this setting does not stick, one of your remaining add-ons might be overriding it.

(1) In a new tab, type or paste about:config in the address bar and press Enter. Click the button promising to be careful.

(2) In the search box that appears above the list, type or paste newtab and pause while the list is filtered

(3) Double-click the browser.newtab.url preference and enter the desired value:

  • Page thumbnails (default) => about:newtab
  • Blank tab => about:blank
  • Built-in Firefox home page => about:home
  • Any other page => full URL to the page

Press Ctrl+t to open a new tab and verify that it worked. Fixed?

more options

Oh wait, I haven't seen Firefox 31 (Aurora). Perhaps this is a future change???

more options

browser.newtab.url is set to about:newtab and has the thumbnails and pages i always had, but that search box just appeared out of nowhere this morning and its quite annoying at least for me, since it shrunk the thumbnails and moved them towards the middle and i can't find a way to disable and make it go back to "normal"

As for if it is a new future feature, i don't know, before posting i did a bit of research reading release notes for firefox/aurora or other people with this same "problem" and found nothing

more options

I haven't used 31 either. I might have to download Aurora and test this out.

由Moses于修改

more options

Yep, this is definitely something new. I can see it on the latest Aurora.

more options

So i guess there is no way to disable it at the moment right?

more options

Looking quickly into about:config, I don't think so. But Aurora is the alpha stage of Firefox so features get removed/added from time to time.

On the other hand, I'm not very skilled at the prefs in about:config, so maybe jscher2000 has input to add?

more options

Here's the XUL source code that is related to the newTab search panel.

<div id="newtab-search-container">
        <form id="newtab-search-form" name="searchForm">
          <div id="newtab-search-logo"/>
          <input type="text" name="q" value="" id="newtab-search-text"
                 maxlength="256" dir="auto"/>
          <input id="newtab-search-submit" type="submit"
                 value="&searchEndCap.label;"/>
        </form>
      </div>


This userContent.css code will hide it.

 
@-moz-document url(about:newtab) 
{
  #newtab-search-container, #newtab-search-logo { display:none !important; } 
  } 


correction

由the-edmeister于修改

more options

Thank you, the ed-meister!

Your code did just the thing. However, I had to put it to userContent.css. In userChrome.css, it didn#t work for me.

more options

While some users may appreciate the search on the page, others may see it as redundant especially if they display the search bar in the browser's interface.

There is no direct option to remove search from Firefox's new tab page, but as always, there are edits that you can make use of.

The following requires no third-party add-ons:

Type "about:support" (no quotes) in Firefox's address bar and hit enter. Click on the Show Folder button to open the profile folder. Switch to the Chrome subdirectory here. If it does not exist, create it. Open userContent.css. If it does not exist, create a new plain text document and rename it accordingly. Paste the following information into the file and save it afterwards (No >'s)

> @namespace url(http://www.w3.org/1999/xhtml); > @-moz-document url("about:newtab") { > #newtab-search-container { > display: none !important; > } > }

Restart the Firefox web browser afterwards. When you open the new tab page in the browser now, the search form is no longer displayed on it. Note: IF this does not work, retype or copy from the following page: Remove Search Bar FireFox New Tab Page

由Tolerant于修改

more options

Another option is to create a fix yourself using an add-on.

I used Stylish: https://addons.mozilla.org/en-US/firefox/addon/stylish/

Follow these instructions to remove the bar:

  1. Download Stylish (Restart required)
  2. Open a new tab (Or type 'about:newtab' in your address bar)
  3. Click on the Stylish icon (Located top right)
  4. Hover your mouse over "Write new style..." Select "for this URL"
  5. In the window that popped up delete all of the text and paste the following in the window, then name your work whatever you want and hit save

Copy this set of code (Provided previously here, and from third party sites)

@-moz-document url("about:newtab") {

 #newtab-search-container, #newtab-search-logo { display:none !important; }

}


This might be easier for some users, who don't know what Cascading Style Sheets are, or how to make them. It also saves front-end users with little experience from having to find the AppData folder.

I hope this helps to some extent, Dillon P.

CREDIT: the-edmeister provided me the tools needed, I simply found another way to use them.

Additional note: This will not resize the thumbnails on the new tab, so they are still smaller than they were, but it's still a lot better in my opinion.

由Dillon1990于修改

more options

I am gonna close this thread that was started when Firefox 31 was in the Aurora development stage.

This code from a posting that cor-el made is IMO superior to what I came up with back in May.

@-moz-document url(about:newtab){
#newtab-margin-top, #newtab-search-container 
{ display: none !important; }
}

It eliminates the "margin-top" and the "search-container", thus moving the tabs grid upwards.

edit Here is the UserStyle - https://userstyles.org/styles/103765/fx-31-about-newtab-hide-the-search-bar

locking this thread

由the-edmeister于修改