搜索 | 用户支持

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

详细了解

When will App Tabs glow?

  • 1 个回答
  • 18 人有此问题
  • 4 次查看
  • 最后回复者为 mrmr1993

more options

I checked the "What are App Tabs?" and read the following descriptions:

App Tabs notify you with a blue highlight when they change.

  • If you have Gmail set as an App Tab, for example, and you are using a different tab when a new email is received, your Gmail tab will glow.

I'm wondering the exact meaning of "change" because after I pinned Weibo.com(biggest twitter-like website in China) as an App Tab, new messages won't make the tab look different. So I want to know if there is an API to do the job or it's just the customized feature for only limited websites by Firefox itself. Thanks!

I checked the "What are App Tabs?" and read the following descriptions: App Tabs notify you with a blue highlight when they '''change'''. * If you have Gmail set as an App Tab, for example, and you are using a different tab when a new email is received, your Gmail tab will glow. I'm wondering the exact meaning of "change" because after I pinned Weibo.com(biggest twitter-like website in China) as an App Tab, new messages won't make the tab look different. So I want to know if there is an API to do the job or it's just the customized feature for only limited websites by Firefox itself. Thanks!

由justineo于修改

被采纳的解决方案

Quite simply, the blue highlight is caused by a change in title. It was a fix implemented in response to the bug "App Tabs should indicate change of state in <title>".

For proof of the above, enter the JavaScript code from here in the address bar and press enter. The App Tab will then turn blue every time it loses focus, until it is next refreshed.

Brief explaination: The code adds an event listener to change the title to a random number every time the tab is changed (ie. a blur event is fired). The containing void sets the return value to undefined, so the document content is not changed (which it would be otherwise). JavaScript is a client-side (user-end) scripting language that can modify HTML (website) content throughout the duration of a single page (ie. until a new page is loaded/the same page is reloaded), and is built into all popular browsers, along with the ability to access it through the "javascript:" address protocol.

For the case of weibo.com, you would be well advised to have a look at the greasemonkey add-on for firefox, and either create your own script or persuade a friendly JavaScript coder to make one for you, that changes the title whenever a new message is received.

定位到答案原位置 👍 5

所有回复 (1)

more options

选择的解决方案

Quite simply, the blue highlight is caused by a change in title. It was a fix implemented in response to the bug "App Tabs should indicate change of state in <title>".

For proof of the above, enter the JavaScript code from here in the address bar and press enter. The App Tab will then turn blue every time it loses focus, until it is next refreshed.

Brief explaination: The code adds an event listener to change the title to a random number every time the tab is changed (ie. a blur event is fired). The containing void sets the return value to undefined, so the document content is not changed (which it would be otherwise). JavaScript is a client-side (user-end) scripting language that can modify HTML (website) content throughout the duration of a single page (ie. until a new page is loaded/the same page is reloaded), and is built into all popular browsers, along with the ability to access it through the "javascript:" address protocol.

For the case of weibo.com, you would be well advised to have a look at the greasemonkey add-on for firefox, and either create your own script or persuade a friendly JavaScript coder to make one for you, that changes the title whenever a new message is received.