Park handwritten blog for everyone to blacklist plugin used to purify the soul

Plug-in code is very simple, JS paste this code into your web page to send them to go where you want them

// 黑名单插件
var hits = ['张三','李四'];//他们的博客园昵称,显示名称
var urls = "http://www.baidu.com"; //送他们去的地方
$(document).ready(function(){
  $(document).mousemove(function(event){
    var name = $("#tbCommentAuthor").attr("value");
    for (var i = 0;i<hits.length;i++) {
        if(name==hits[i]){
            window.location.replace(urls);
        }
    }
  });
});

Guess you like

Origin www.cnblogs.com/yueshutong/p/11135354.html