网站修改标题栏离开状态
代码如下:
<script type="text/javascript">
jQuery(document).ready(function() {
function d() {
document.title = document[b] ? "(๑•́ ₃ •̀๑) 不喜欢人家啦?" : a
}
var b, c, a = document.title;
"undefined" != typeof document.hidden ? (b = "hidden", c = "visibilitychange") : "undefined" != typeof document.mozHidden ? (b = "mozHidden", c = "mozvisibilitychange") : "undefined" != typeof document.webkitHidden && (b = "webkitHidden", c = "webkitvisibilitychange"), ("undefined" != typeof document.addEventListener || "undefined" != typeof document[b]) && document.addEventListener(c, d, !1)
});
</script>
文字可自定义修改。
使用方法:加在
之间即可商业转载请联系作者获得授权,非商业转载请注明本文出处及文章链接