您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
小黄片去广告,绕过会员机制
当前为
// ==UserScript== // @name ri003小黄片去广告 // @namespace undefined // @version 0.0.5 // @description 小黄片去广告,绕过会员机制 // @author 16Free // @match http://www.ri003.com/* // @require https://code.jquery.com/jquery-latest.js // @run-at document-start // @grant unsafeWindow // @grant GM_setClipboard // ==/UserScript== $(document).ready(function () { ri003(); }); function ri003() { setCookie('video_log', 0, '.ri003.com', '/'); //ad $('div[align="center"]').remove(); $('div.footer-margin').remove(); $('noindex').remove(); $('qq').remove(); if (flashvars) { var videoUrl = flashvars.video_url; if (videoUrl[videoUrl.length - 1] === '/') videoUrl = videoUrl.substr(0, videoUrl.length - 1); console.log('play video url :', videoUrl); createVideoEle('#kt_player',videoUrl); } } 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 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: '#fff' }); $('#user_video').css({ width: '100%', height: '100%' }); }