代码如下:

<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>

文字可自定义修改。

使用方法:加在之间即可