您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
超碰视频去广告,解决VIP限制,提取视频地址,添加下载按钮
当前为
// ==UserScript== // @name 超碰视频去广告,解决VIP限制 // @namespace undefined // @version 0.0.23 // @description 超碰视频去广告,解决VIP限制,提取视频地址,添加下载按钮 // @author Svend // @match http://www.ri003.com/* // @match http://www.ri005.com/* // @match http://www.ri006.com/* // @match https://www.gan008.com/* // @match https://www.kedou03.com/* // @match http://www.gansex2.com/* // @match http://www.risex2.com/* // @match http://www.kkddsex2.com/* // @match http://www.pornsex11.com/* // @match http://www.gansex3.com/* // @match http://www.kedousex3.com/* // @match http://www.risex3.com/* // @match http://www.kkddsex3.com/* // @match http://www.pornsex12.com/* // @match http://www.gansex4.com/* // @match http://www.kedousex4.com/* // @match http://www.risex4.com/* // @match http://www.kkddsex4.com/* // @match http://www.pornsex13.com/* // @match http://www.pornsex14.com/* // @match http://www.kkddsex5.com/* // @match http://www.risex5.com/* // @match http://www.kedousex5.com/* // @match http://www.gansex5.com/* // @match http://www.gansex6.com/* // @match http://www.risex6.com/* // @match http://www.kkddsex6.com/* // @match http://www.pornsex15.com/* // @match http://www.gansex7.com/* // @match http://www.kedousex7.com/* // @match http://www.sexx109.com/* // @match http://www.xkd27.com/* // @match http://www.xkd26.com/* // @match http://www.xkd25.com/* // @match http://www.xkd24.com/* // @match http://www.xkd23.com/* // @match http://www.xkd22.com/* // @match http://www.xkd21.com/* // @match http://www.xkd20.com/* // @match http://www.xkd19.com/* // @match http://www.xkd18.com/* // @match http://www.xkd17.com/* // @match http://www.xkd16.com/* // @match http://www.xkd15.com/* // @match http://www.caca045.com/* // @require https://code.jquery.com/jquery-latest.js // @run-at document-start // @grant unsafeWindow // @grant GM_setClipboard // ==/UserScript== $(document).ready(function() { caoporn(); }); function caoporn() { var host = window.location.host.replace('www', ''); if (!host.startsWith('.')) { host = '.' + host; } setCookie('video_log', 0, host, '/'); setTimeout(function() { //ad removeAD(); }, 100); setTimeout(function() { removeAD(); console.clear(); if (typeof layer !== 'undefined') { layer.closeAll(); delete layer; } if (typeof flashvars !== 'undefined') { var videoUrl = flashvars.video_url; videoUrl = videoUrl.slice(0, videoUrl.lastIndexOf('/?')); console.log('视频地址 ---> :', videoUrl); //createVideoEle("#kt_player", videoUrl); createDownloadBtn(videoUrl); } }, 500); } function setCookie(name, value, domain, path) { var Days = 30; var exp = new Date(); exp.setTime(exp.getTime() + Days * 24 * 60 * 60 * 1000); var cookie = name + '=' + escape(value) + ';expires=' + exp.toGMTString() + ';domain=' + domain + ';path=' + path; document.cookie = cookie; console.log('set cookie:', cookie); } function removeAD() { $('.m_ad').remove(); $('.pc_ad').remove(); $('.thumbs__list cfx').remove(); $('qq').remove(); $('noindex').remove(); $('.place').remove(); $('.right-vip').remove(); $('.top-links').remove(); } function createVideoEle(ele, url) { var videoDiv = '<div id="user_video_div"><video id="user_video" controls="controls" autoplay></video></div>'; $(ele).html(videoDiv); $('#user_video').attr('src', url); $('#user_video_div').css({ width: '100%', height: '100%', top: '0', left: '0', background: '#000' }); $('#user_video').css({ width: '100%', height: '100%', background: '#000' }); $(document).keydown(function(e) { if (e.keyCode === 39) { $('#user_video')[0].currentTime += 5; } else if (e.keyCode === 37) { $('#user_video')[0].currentTime -= 5; } }); $('#user_video').on('play', function(e) { $('#user_video').css('opacity', 1); }); $('#user_video').on('pause', function(e) { $('#user_video').css('opacity', 0); }); $('#user_video').on('click', function(e) { return this.paused ? this.play() : this.pause(); }); } function createDownloadBtn(videoUrl) { var top = $('#kt_player').offset().top + 2; var left = $('#kt_player').offset().left + $('#kt_player').width() - 92; var title = '' var headline = document.getElementsByClassName('headline')[0] if (headline) { title = headline.firstElementChild.textContent } var downloadBtn = '<a style="position:absolute; top: ' + top + 'px; left: ' + left + 'px; background: #e9e9e9; color: green; width: 90px; height: 30px; line-height: 30px; z-index: 99999; text-align: center; font-size: 20px; border-radius: 5px; cursor: pointer;" href="' + videoUrl + '" download="'+title+'">下载</a>'; $(document.body).append(downloadBtn); }