// ==UserScript== // @name 无心解析-vip视频免费看 // @namespace https://www.luckyblank.cn // @version 20.20.09.21 // @description 【增加浏览器插件】【支持反馈,不定期优化】【支持拖动】【接口动态化】【一个脚本用到老】除去其他不必要的功能,专注于VIP影视解析。因为只做vip解析,所以更专业。调整为8条解析线路,更加方便快捷的观看vip影视。 // @author 我本无心 // @icon http://www.luckyblank.cn/jiaoben/favorite.ico // @match *://v.youku.com/v_show/* // @match *://*.iqiyi.com/v_* // @match *://*.iqiyi.com/w_* // @match *://*.iqiyi.com/a_* // @match *://*.iqiyi.com/dianying/* // @match *://*.le.com/ptv/vplay/* // @match *://v.qq.com/x/cover/* // @match *://v.qq.com/x/page/* // @match *://*.tudou.com/listplay/* // @match *://*.tudou.com/albumplay/* // @match *://*.tudou.com/programs/view/* // @match *://*.mgtv.com/b/* // @match *://film.sohu.com/album/* // @match *://*.acfun.cn/v/* // @match *://*.bilibili.com/video/* // @match *://*.bilibili.com/anime/* // @match *://vip.pptv.com/show/* // @match *://v.pptv.com/show/* // @match *://v.yinyuetai.com/video/* // @match *://v.yinyuetai.com/playlist/* // @match *://*.wasu.cn/Play/show/* // @require https://cdn.staticfile.org/jquery/1.12.4/jquery.min.js // @downloadURL none // ==/UserScript== (function() { var qq0 = '' var qq1 = '' var qq2 = '' var qq3 = '' function getAll(){var vips;$.ajax({url:"//www.luckyblank.cn:8443/vipaddress/getaddress",type:"GET",async:false,success:function(data){vips=data}});console.log("vips:"+vips);return vips}; var arr=getAll(); var apis = [ { name:qq0 + "网站解析0",url:"https://www.luckyblank.cn/jiaoben/vipvideos/index.html?link=",title:"接口0" }, { name:qq1 + "插件下载0",url:"https://lanzous.com/b0e6zvlc?link=",title:"插件下载" }, { name:qq2 + "解析接口1",url:arr[1],title:"接口1" },{ name:qq3 + "解析接口2",url:arr[2],title:"接口2" } ]; //创建选项 function createSelect (apis) { var myul = document.createElement("ul"); myul.id = "myul"; myul.setAttribute("style","overflow: hidden;display:none;background:#fff;box-shadow:0px 1px 10px rgba(0,0,0,0.3);margin:0;position:fixed;bottom:33vh;right:8vw;z-index:99999;height:300px;border-radius:1.26vw;"); for (var i = 0; i < apis.length; i ++) { var myli = document.createElement("li"); var that=this; myli.setAttribute("style","cursor: pointer;margin:0;padding:0;display:block;list-style:none;font-size:2vw;width:15vw;text-align:left;line-height:5vw;letter-spacing:0;border-bottom:1px solid #f0f0f0;position:relative;overflow:hidden;text-overflow:hidden;white-space:nowrap;"); (function (num) { myli.onclick = function () { window.open(apis[num].url + location.href,'_blank'); }; myli.ontouchstart = function () { this.style.cssText += "color:yellow;background:#373737;border-radius:1.26vw;"; } myli.ontouchend = function () { this.style.cssText += "color:black;background:transparent;border-radius:0;"; } })(i); myli.innerHTML = apis[i].name; myul.appendChild(myli); } document.body.appendChild(myul); } //创建菜单 function createMenu(){ var myBtn = document.createElement("div"); myBtn.id = "myBtn"; myBtn.innerHTML = "+"; myBtn.setAttribute("title","我可以拖动啦"); myBtn.setAttribute("style","cursor: move;width:5vw;height:5vw;position:fixed;bottom:30vh;right:1vw;z-index:100000;border-radius:100%;text-align:center;line-height:5vw;box-shadow:0px 1px 10px rgba(0,0,0,0.3);font-size:3vw;background:rgb(228, 8, 8);"); document.body.appendChild(myBtn); } //绑定元素拖动 function bindGrabble(){ $('#myBtn').on('mousedown', function(e) { //鼠标按下 // 判断一下这个按下是点击还是拖动 var isClick = true; $(document).on('mousemove', (e) => {//鼠标移动 let left = e.clientX - $(this).width() / 2//计算元素left值 let top = e.clientY - $(this).height() / 2//计算元素top值 top = suan(top, 0, $(document).innerHeight() - $(this).height())//调用封装的方法 left = suan(left, 0,$(document).innerWidth() - $(this).width())//调用封装的方法 $(this).css({ //给盒子设置坐标 left, top }) //拖动后,把isClick设为false,后面就不会执行点击事件 isClick = false; e.preventDefault(); }) $(document).on('mouseup', (e) => {//鼠标抬起 //当isClick为true时,就执行点击事件 if( isClick ){ var myul = document.getElementById("myul"); if(myul.style.display == "none"){ myul.style.display = "block"; this.style.transform="rotateZ(45deg)"; }else{ myul.style.display = "none"; this.style.transform="rotateZ(0deg)"; } } $(document).off('mousemove mouseup')//移除鼠标移动、鼠标抬起事件 }) }) } //防止拖出边界 function suan(o, min, max) { //重复封装 o < min ? o = min : o > max ? o = max : ''//限制出界 return o } /*document.addEventListener("DOMContentLoaded",function () { createMenu(); createSelect(apis); });*/ if(location.href.match(".iqiyi.com") || location.href.match(".youku.com") || location.href.match(".le.com") || location.href.match(".letv.com") || location.href.match("v.qq.com") || location.href.match(".tudou.com") || location.href.match(".mgtv.com") || location.href.match("film.sohu.com") || location.href.match("tv.sohu.com") || location.href.match(".acfun.cn") || location.href.match(".bilibili.com") || location.href.match(".pptv.com") || location.href.match("vip.1905.com") || location.href.match(".yinyuetai.com") || location.href.match(".fun.tv") || location.href.match(".56.com") || location.href.match(".wasu.cn")) { createMenu(); createSelect(apis); bindGrabble(); } var oHead1002 = document.getElementsByTagName('body').item(0); var oScript1002 = document.createElement("script"); oScript1002.type = "text/javascript"; //oScript1002.src="http://www.luckyblank.cn/jiaoben/video.js"; oHead1002.appendChild( oScript1002); })();