`
抛出异常的爱
  • 浏览: 620098 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

油猴对抗google抽疯

阅读更多
http://www.iteye.com/topic/1127237

最近google抽疯
主要的是由于

<a href="http://www.google.com.hk/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=1&amp;cad=rja&amp;ved=0CCQQFjAA&amp;url=http%3A%2F%2Fwozailongyou.iteye.com%2Fblog%2F299311&amp;ei=mE2GUMnRAeuXiAfxmoH4BA&amp;usg=AFQjCNEV_hv8easlnC6GowJRla-CQlFMDg&amp;sig2=z7haV2R4lbbSELMvS_S50A" target="_blank" class="l" onmousedown="return rwt(this,'','','','1','AFQjCNEV_hv8easlnC6GowJRla-CQlFMDg','z7haV2R4lbbSELMvS_S50A','0CCQQFjAA',null,event)"><em>jQuery</em>对象与<em>DOM</em>对象之间的转换- Y.out - ITeye技术网站</a>


中的href 很坑爹的走了被墙的url.

所以写了一个油猴来处理

// ==UserScript== 
// @name GooglePassWay
// @version 0.1
// @description 给google穿越用
// @match http://*
// @match https://*
// @copyright maodajun
// @require http://code.jquery.com/jquery-1.4.2.js
// ==/UserScript==



$(function(){
   $(".r").each(function(){
   	   var ha = $(this);
   	   var url =$(".pplsrsl" ,ha.next());
   	   var ht = url.attr("data-url")
       ha.attr("href",ht);

   });

});


如果有错误或是修正站内信我.
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics