// ==UserScript== // @name vipVideos_skipAd // @namespace vipVideos_skipAd // @author xinggsf~gmail。com // @description 油库、土逗 VIP免费看;配合ABP去视频广告;开启GPU加速 // @homepageURL https://greasyfork.org/scripts/8561 // updateURL https://greasyfork.org/scripts/8561.js // @require https://greasyfork.org/scripts/11230.js // @license GPL version 3 // @include http* // @exclude http://*.baidu.com/* // @exclude http://www.hunantv.com/* // @exclude http://*.yinyuetai.com/* // exclude http://www.flv.tv/* // @version 2015.12.9 // @encoding utf-8 // @grant unsafeWindow // grant GM_openInTab // @downloadURL none // ==/UserScript== /* 作者的话:经过实际测试,高版本chrome,如46+已经解决CSS3动画BUG了。 此BUG在脚本表现为在某些页面使其原有菜单、DIV浮动框显示不出来! 所以这样的BUG反馈请不要再提,升级浏览器才是正道! 吐糟二大浏览器:chrome的class功能很早就出来了,但实现很简单的箭头函数却 至今未有!firefox则相反,箭头函数和其它ES6功能早出来了,类功能却迟迟盼不来! 2015-12-8更新油库播放器,可选择P1080分辨率; 彻底解决油库盗链问题; 解决NNAPI Flash不能播放的问题 2015-12-6增加对acfun.tv的油库、iqiyi外链支持 开启GPU硬件加速,如显卡不支持,换direct!参考了thunderhit的代码: https://greasyfork.org/zh-CN/scripts/6479,但用定时器太低效了 doc.querySelectorAll('div') instanceof NodeList bd.childNodes instanceof NodeList true bd.children instanceof NodeList == false bd.children.constructor: HTMLCollection */ -function(doc, bd) { var isEmbed, style = doc.createElement('style'); style.textContent = '@-webkit-keyframes gAnimatAct{from{opacity:0.99;}to{opacity:1;}}@keyframes gAnimatAct{from{opacity:0.99;}to{opacity:1;}}embed,object{animation:gAnimatAct 1ms;-webkit-animation:gAnimatAct 1ms;}'; doc.head.appendChild(style); //var youkuMark = '', var youkuMark = '