chrome插件中文开发者文档:http://open.chrome.360.cn/extension_dev/overview.html
manifest.json:
{ "name": "Google_Https", "version": "1.0", "manifest_version": 2, "description": "kagami的google插件.", "content_scripts": [ { "matches": ["https://www.google.com.hk/*"], "js": ["jquery-1.8.2.js", "myscript.js"], "run_at":"document_start" } ] }
myscript.js:
jQuery(document).ready(function(){ console.log("start"); var id=setInterval(function(){ console.log("ref"); jQuery("a.l").each(function(){ jQuery(this).removeAttr("onmousedown"); }); },1000); } );
用Jquery写的,别忘了把jquery-1.8.2.js放进去。
用https访问google搜索是挺快的,但点击结果时访问的不是真正结果的网址而是用http访问google的服务器然后在跳转到真实网址,由于各种原因有时用http访问google会很慢。。。 这个插件用于去除跳转 直接访问结果网址。因为搜索结果是用JS加载的,所以我只能定时执行代码。
浙公网安备 33010602011771号