搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

On the Firefox Start Page, the ad/message about sending Firefox to an Android device won't go away even when I click the x.

more options

On my MacBook, I have the Firefox Start Page set as my start page. The top is normal, but there is a message below that starts with "Unlock the Web, online or off", and to send Firefox to my Android device to view cached pages when offline. There is a place to put my phone number so that an SMS can be sent. At the bottom is a link to Google Play. I don't want to do this. I have linked a screen shot of it.

When I mouse over it, a small x comes up in the corner, but clicking on it only makes the screen flicker for a moment or two and then return. How do I get rid of the message?

Thanks for any help you can offer.

On my MacBook, I have the Firefox Start Page set as my start page. The top is normal, but there is a message below that starts with "Unlock the Web, online or off", and to send Firefox to my Android device to view cached pages when offline. There is a place to put my phone number so that an SMS can be sent. At the bottom is a link to Google Play. I don't want to do this. I have linked a screen shot of it. When I mouse over it, a small x comes up in the corner, but clicking on it only makes the screen flicker for a moment or two and then return. How do I get rid of the message? Thanks for any help you can offer.

被選擇的解決方法

Searching around, it seems the most common reason for the "InvalidStateError" error is attempting to open/update a disk-based database in a private window. For example, if Firefox is set to automatic private browsing on the Preferences page, Privacy panel. This kind of storage is blocked in private windows.

So... I think you're stuck with that snippet for the duration of its normal cycle, or you can use an add-on/custom style rule to hide it if it's making you crazy. See: How to stop firefox from showing quick links like new features addons etc below the search bar in the home page on initially starting firefox.

從原來的回覆中察看解決方案 👍 1

所有回覆 (6)

more options

Oops - here's the image.

more options

Hmm, the "x" worked for me on Windows. I should have poked around a bit more to learn what it does. Let me see whether I can get it back...

more options

Okay, the x button runs a script that adds that "snippet" to the blocked snippets list. You can try running the script manually and see whether that works any better. To do that:

(1) Select and copy the following script in its entirety:

var snip = document.querySelector('#snippetContainer div[data-snippet-id]'); if (snip){ var snippetID = parseInt(snip.getAttribute('data-snippet-id'), 10); var blockList = getBlockList(); if (blockList.indexOf(snippetID) === -1) { blockList = [snippetID].concat(blockList); gSnippetsMap.set('blockList', blockList); window.setTimeout(function(){window.location.reload();}, 500); } else { console.log(snippetID+" is already blocked!"); } } else { console.log("Could not locate blockable snippet ID"); }

(2) Open the Web Console is the lower part of the tab containing the built-in Firefox home page

(3) Click in the bar at the bottom next to the >> icon and paste (Mac: Command+v, Windows: Ctrl+v). Firefox may require you to type allow pasting or something like that. After that, you can clear that line and paste again. Press Enter to run the code and the snippet should be removed. Or you should get some kind of error message.

Success?

Note to self: paste this to clear the blocklist, then you can reload to display previously blocked snippets: gSnippetsMap.set('blockList',[]);

由 jscher2000 - Support Volunteer 於 修改

more options

Whoops, on Mac, of course, paste is Command+v, not Ctrl+v.

more options

Unfortunately, I got a pair of error messages. Both had InvalidStateError at the start; the first was aboutHome : 130:20, while the second had aboutHome :136:4. It clearly refers to the line number in the code, but I don't have a clue what the issue is; I attached a screen shot of the code that was linked to the errors.

more options

選擇的解決方法

Searching around, it seems the most common reason for the "InvalidStateError" error is attempting to open/update a disk-based database in a private window. For example, if Firefox is set to automatic private browsing on the Preferences page, Privacy panel. This kind of storage is blocked in private windows.

So... I think you're stuck with that snippet for the duration of its normal cycle, or you can use an add-on/custom style rule to hide it if it's making you crazy. See: How to stop firefox from showing quick links like new features addons etc below the search bar in the home page on initially starting firefox.