When will App Tabs glow?
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 modificouno o
Chosen solution
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.
Ler a resposta no contexto 👍 5All Replies (1)
Chosen Solution
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.