设为首页收藏本站

简体中文 繁體中文 English 日本語 Deutsch 한국 사람 بالعربية TÜRKÇE português คนไทย french

搜索
热搜: 活动 交友 discuz

求一个现在能用的谷歌浏览器去优酷广告插件~~~ [复制链接]
查看:107 | 回复:7

141

主题

1986

回帖

4465

积分

论坛元老

积分
4465
发表于 2013-7-13 19:48:25 | 显示全部楼层 |阅读模式
求一个现在能用的谷歌浏览器去优酷广告插件~~~

155

主题

1883

回帖

4351

积分

论坛元老

积分
4351
发表于 2013-7-13 19:49:01 | 显示全部楼层

ekucn 发表于 2013-7-13 19:49



AdSafe
或者 AdMunch
通用所有浏览器



怎么搜索不到呢 绿帽哥

141

主题

1986

回帖

4465

积分

论坛元老

积分
4465
 楼主| 发表于 2013-7-13 19:51:57 | 显示全部楼层

ekucn 发表于 2013-7-13 19:53



你用的火星搜索引擎吧
http://www.baidu.com/baidu?wd=AdSafe



哥还以为你指的是谷歌应用

155

主题

1883

回帖

4351

积分

论坛元老

积分
4351
发表于 2013-7-13 19:49:00 | 显示全部楼层
有的

141

主题

1986

回帖

4465

积分

论坛元老

积分
4465
 楼主| 发表于 2013-7-13 19:53:53 | 显示全部楼层
[ol]
  • // ==UserScript==
  • // @name OpenGG.Clean.Player(Bae
  • // @author Anonymous
  • // @description 通过替换swf播放器的方式来解决优酷的黑屏广告+Bilibili黑科技 In God,We Turst.
  • // @version 1.366.2
  • // @namespace http://userscripts.org/users/Kawaiiushio
  • // @updateURL https://userscripts.org/scripts/source/162286.meta.js
  • // @downloadURL https://userscripts.org/scripts/source/162286.user.js
  • // @icon http://extensiondl.maxthon.cn/skinpack/17276781/1366787326/icons/icon_48.png
  • // @include http://*/*
  • // @include https://*/*
  • // ==/UserScript==
  • /*
  • * === 说明 ===
  • * 本脚本参考http://bbs.kafan.cn/thread-1514537-1-1.html 感谢卡饭大神
  • * Chrome用户也可以使用Adkill and Media download这个扩展
  • * 此脚本设计修改人员OpenGG  Harv  xplsy  15536900  yndoc  KawaiiUshio 5B4B铅笔
  • * Bilibili黑科技由FireAway提供      参考:http://userscripts.org/scripts/show/165424
  • * Opera兼容部分由Gerald修改
  • * In God,We Trust.
  • * THX.
  • */
  • /*
  • * Love Jiani
  • */
  • (function() {
  •     Function.prototype.bind = function() {
  •         var fn = this, args = Array.prototype.slice.call(arguments), obj = args.shift();
  •         return function() {
  •             return fn.apply(obj, args.concat(Array.prototype.slice.call(arguments)));
  •         };
  •     };
  •     function YoukuAntiAds() {}
  •     YoukuAntiAds.prototype = {
  •         _players: null,
  •         _rules: null,
  •         _done: null,
  •         get players() {
  •             if(!this._players) {
  •                 this._players = {
  •                     'youku': 'http://lovejiani.cdn.duapp.com/kafan/loader.swf',
  •                     'ku6': 'http://lovejiani.cdn.duapp.com/kafan/ku6.swf',
  •                     'iqiyi': 'http://lovejiani.cdn.duapp.com/kafan/iqiyi.swf',
  •                     'iqiyi5': 'http://lovejiani.cdn.duapp.com/kafan/iqiyi5.swf',
  •                     'tudou': 'http://lovejiani.cdn.duapp.com/kafan/tudou.swf',
  •                     'tudou_olc': 'http://lovejiani.cdn.duapp.com/kafan/olc_8.swf',
  •                     'tudou_sp': 'http://lovejiani.cdn.duapp.com/kafan/sp.swf',
  •                                         'letv': 'http://lovejiani.cdn.duapp.com/kafan/letv.swf'
  •                 };
  •             }
  •             return this._players;
  •         },
  •         get rules() {
  •             if(!this._rules) {
  •                 this._rules = {
  •                     'youku': {
  •                         'find': /^http:\/\/static\.youku\.com(\/v[\d\.]+)?\/v\/swf\/(loader|q?player[^\.]*)\.swf/i,
  •                         'replace': this.players['youku']
  •                     },
  •                     'youku_out': {
  •                         'find': /^http:\/\/player\.youku\.com\/player\.php\/.*sid\/([\w=]+).*(\/v)?\.swf.*/i,
  •                         'replace': this.players['youku'] + '?showAd=0&VideoIDS=$1'
  •                     },
  •                     'ku6': {
  •                         'find': /^http:\/\/player\.ku6cdn\.com\/default\/.*\/\d+\/player\.swf/i,
  •                         'replace': this.players['ku6']
  •                     },
  •                     'ku6_out': {
  •                         'find': /^http:\/\/player\.ku6\.com\/(inside|refer)\/([^\/]+)\/v\.swf.*/i,
  •                         'replace': this.players['ku6'] + '?vid=$2'
  •                     },
  •                     'letv1': {
  •                         'find': /^http:\/\/.*letv[\w]*\.com\/[^\.]*\/.*player\/((?!Live).*)Player[^\.]*\.swf/i,
  •                         'replace': this.players['letv']
  •                     },
  •                     'letv2': {
  •                         'find': /^http:\/\/.*letv[\w]*\.com\/.*player[^\.]*\.swf\?v_list=[\d]/i,
  •                         'replace': this.players['letv']
  •                     },
  •                     'letv3': {
  •                         'find': /^http:\/\/.*letv[\w]*\.com\/.*\/v_list=[\d]*\/\.swf/i,
  •                         'replace': this.players['letv']
  •                     },
  •                     'iqiyi': {
  •                         'find': /^http:\/\/www\.iqiyi\.com\/player\/\d+\/player\.swf/i,
  •                         'replace': this.players['iqiyi']
  •                     },
  •                     'iqiyi_out': {
  •                         'find': /^http:\/\/(player|dispatcher)\.video\.i?qiyi\.com\/(.*[\?&]vid=)?([^\/&]+).*/i,
  •                         'replace': this.players['iqiyi5'] + '?vid=$3'
  •                     },
  •                     'tudou': {
  •                         'find': /^http:\/\/js\.tudouui\.com\/.*player[^\.]*\.swf/i,
  •                         'replace': this.players['tudou']
  •                     },
  •                     'tudou_out': {
  •                         'find': /^http:\/\/www\.tudou\.com\/.*(\/v\.swf)?/i,
  •                         'replace': this.players['tudou_olc'] + '?tvcCode=-1&swfPath=' + this.players['tudou_sp']
  •                     }
  •                 }
  •             }
  •             return this._rules;
  •         },
  •         get done() {
  •             if(!this._done) {
  •                 this._done = new Array();
  •             }
  •             return this._done;
  •         },
  •         initPreHandlers: function() {
  •             this.rules['iqiyi']['preHandle'] = function(elem, find, replace, player) {
  •                 if(document.querySelector('span[data-flashplayerparam-flashurl]')) {
  •                     replace = this.players['iqiyi5'];
  •                 }
  •                 this.reallyReplace.bind(this, elem, find, replace)();
  •             }
  •             this.rules['tudou_out']['preHandle'] = function(elem, find, replace, player) {
  •                 var fn = this;
  •                 var isFx = /firefox/i.test(navigator.userAgent);
  •                 GM_xmlhttpRequest({
  •                     method: isFx ? 'HEAD' : 'GET',
  •                     url: isFx ? player : 'https://query.yahooapis.com/v1/public/yql?format=json&q=' + encodeURIComponent('use"https://haoutil.googlecode.com/svn/trunk/firefox/tudou_redirect.yql.xml" as tudou; select * from tudou where url="' + player + '" and referer="' + window.location.href + '"'),
  •                     onload: function(response) {
  •                         var finalUrl = (isFx ? response.finalUrl : response.responseText);
  •                         var match = finalUrl.match(/(iid|youkuid|resourceid|autoplay|snap_pic)=[^&]+/ig);
  •                         if(match && !/error/i.test(finalUrl)) {
  •                             replace += '&' + match.join('&');
  •                             fn.reallyReplace.bind(fn, elem, find, replace)();
  •                         }
  •                     }
  •                 });
  •             }
  •         },
  •         addAnimations: function() {
  •             var style = document.createElement('style');
  •             style.type = 'text/css';
  •             style.innerHTML = 'object,embed{\
  • -webkit-animation-duration:.001s;-webkit-animation-name:playerInserted;\
  • -ms-animation-duration:.001s;-ms-animation-name:playerInserted;\
  • -o-animation-duration:.001s;-o-animation-name:playerInserted;\
  • animation-duration:.001s;animation-name:playerInserted;}\
  • @-webkit-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}\
  • @-ms-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}\
  • @-o-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}\
  • @keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}';
  •             document.getElementsByTagName('head')[0].appendChild(style);
  •         },
  •         animationsHandler: function(e) {
  •             if(e.animationName === 'playerInserted') {
  •                 this.replace(e.target);
  •             }
  •         },
  •         replace: function(elem) {
  •             if(this.done.indexOf(elem) != -1) return;
  •             this.done.push(elem);
  •             var player = elem.data || elem.src;
  •             if(!player) return;
  •             var i, find, replace, isReplacing = false;
  •             for(i in this.rules) {
  •                 find = this.rules['find'];
  •                 if(find.test(player)) {
  •                     replace = this.rules['replace'];
  •                     if('function' === typeof this.rules['preHandle']) {
  •                         isReplacing = true;
  •                         this.rules['preHandle'].bind(this, elem, find, replace, player)();
  •                     }
  •                     if(!isReplacing) {
  •                         this.reallyReplace.bind(this, elem, find, replace)();
  •                     }
  •                     break;
  •                 }
  •             }
  •         },
  •         reallyReplace: function(elem, find, replace) {
  •             elem.data && (elem.data = elem.data.replace(find, replace)) || elem.src && ((elem.src = elem.src.replace(find, replace)) && (elem.style.display = 'block'));
  •             this.reloadPlugin(elem);
  •         },
  •         reloadPlugin: function(elem) {
  •             var nextSibling = elem.nextSibling;
  •             var parentNode = elem.parentNode;
  •             parentNode.removeChild(elem);
  •             var newElem = elem.cloneNode(true);
  •             this.done.push(newElem);
  •             if(nextSibling) {
  •                 parentNode.insertBefore(newElem, nextSibling);
  •             } else {
  •                 parentNode.appendChild(newElem);
  •             }
  •         },
  •         init: function() {
  •             this.initPreHandlers();
  •             var handler = this.animationsHandler.bind(this);
  •             document.body.addEventListener('webkitAnimationStart', handler, false);
  •             document.body.addEventListener('msAnimationStart', handler, false);
  •             document.body.addEventListener('oAnimationStart', handler, false);
  •             document.body.addEventListener('animationstart', handler, false);
  •             this.addAnimations();
  •         }
  •     };
  •     new YoukuAntiAds().init();
  • })();[/ol]复制代码保持.JS直接拖进chrome
  • 155

    主题

    1883

    回帖

    4351

    积分

    论坛元老

    积分
    4351
    发表于 2013-7-13 19:55:01 | 显示全部楼层
    Adkill  我在用这个

    37

    主题

    794

    回帖

    1719

    积分

    金牌会员

    积分
    1719
    发表于 2013-7-13 19:53:00 | 显示全部楼层
    用奶牛的 不错

    Adblock

    19

    主题

    123

    回帖

    341

    积分

    中级会员

    积分
    341
    发表于 2013-7-13 19:56:11 | 显示全部楼层
    Adkill and Media download
    您需要登录后才可以回帖 登录 | 立即注册

    论坛客服/商务合作/投诉举报:2171544 (QQ)
    落伍者创建于2001/03/14,本站内容均为会员发表,并不代表落伍立场!
    拒绝任何人以任何形式在本论坛发表与中华人民共和国法律相抵触的言论!
    落伍官方微信:2030286 邮箱:(djfsys@gmail.com|tech@im286.com)
    © 2001-2014

    浙公网安备 33060302000191号

    浙ICP备11034705号 BBS专项电子公告通信管[2010]226号

      落伍法律顾问: ITlaw-庄毅雄

    Archiver|手机版|Discuz! X

    GMT+8, 2026-8-2 21:17 , Processed in 0.028768 second(s), 4 queries , Gzip On, Redis On.

    返回顶部