谷歌插件-无法点到百度搜索按钮

来源:互联网 发布:淘宝信用支付怎么开通 编辑:程序博客网 时间:2024/06/05 12:59

1.mainfest.json文件

{    "manifest_version": 2,    "name": "永远点不到的搜索按钮",    "version": "1.0",    "description": "让你永远也点击不到Google的搜索按钮",    "content_scripts": [        {            "matches": ["*://www.baidu.com/"],            "js": ["/js/plug/jquery-3.2.1.js","/js/cannot_touch.js"]        }    ]}

2.js文件

$('#su').mouseover(function(mouseLeft,mouseTop){    var leftRnd = (Math.random()) * $(window).width();    var topRnd = (Math.random()) * $(window).height();    leftRnd = $(window).width() - leftRnd < 100?leftRnd - 100:(leftRnd < 100?leftRnd + 100:leftRnd);    topRnd = $(window).height() - topRnd < 50?topRnd - 50:(topRnd < 50?topRnd + 50:topRnd);    $(this).offset({top:topRnd,left:leftRnd});});
原创粉丝点击