```js
24: ()=>{
var t;
window.CONFIG.favicon.visibilitychange && (window.originTitle = document.title,
document.addEventListener("visibilitychange", (function() {
document.hidden ? ($('[rel="icon"]').attr("href", window.CONFIG.favicon.hidden),
document.title = window.CONFIG.favicon.hide_text,
clearTimeout(t)) : ($('[rel="icon"]').attr("href", window.CONFIG.favicon.narmal),
document.title = window.CONFIG.favicon.show_text + window.originTitle,
t = setTimeout((function() {
document.title = window.originTitle
}
), 2e3))
}
)))
}
{
"root": "",
"scheme": "Pisces",
"version": "1.0.2",
"since": "2/9/2014 11:30:00",
"favicon": {
"visibilitychange": true,
"narmal": "/favicon.ico",
"hidden": "/failure.ico",
"show_text": "(/≧▽≦/)咦!又好了!",
"hide_text": "(●—●)喔哟,崩溃啦!"
}
}
```
DPlayer 作者的博客就是这样,页面失焦后(切换到别的窗口或别的 tab ),就会显示 "(●—●)喔哟,崩溃啦!",切换回来显示"(/≧▽≦/)咦!又好了!",更可气的是把 favicon 也换成 Chrome 崩溃时的图标,第一次就上当受骗了 O_o
受气体验地址:
https://diygod.me/