Greasy Fork

来自缓存

Greasy Fork is available in English.

lyj视频解析工具2.0

2.1beta

当前为 2020-12-18 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         lyj视频解析工具2.0
// @namespace    http://tampermonkey.net/
// @version      2.1
// @description  2.1beta
// @author       tang1jun
// @include      *.youku.com/v*
// @include      *m.youku.com/*
// @include      *v.qq.com/x/*
// @include      *v.qq.com/p*
// @include      *v.qq.com/cover*
// @include      *v.qq.com/tv/*
// @include      *film.sohu.com/album/*
// @include      *tv.sohu.com/*
// @include      *.iqiyi.com/v_*
// @include      *.iqiyi.com/w_*
// @include      *.iqiyi.com/a_*
// @include      *.le.com/ptv/vplay/*
// @include      *.tudou.com/listplay/*
// @include      *.tudou.com/albumplay/*
// @include      *.tudou.com/programs/view/*
// @include      *.tudou.com/v*
// @include      *.mgtv.com/b/*
// @include      *.acfun.cn/v/*
// @include      *.bilibili.com/video/*
// @include      *.bilibili.com/anime/*
// @include      *.bilibili.com/bangumi/play/*
// @include      *.pptv.com/show/*
// @include      *.wasu.cn/Play/show*
// @require      http://libs.baidu.com/jquery/2.0.0/jquery.min.js
// @grant        none
// ==/UserScript==
(function() {
	'use strict';
	var $ = $ || window.$;


	addStyle();

	$('body').append('<div class="lyjvip wrapper"><ui class="mainMenu"><li class="item"id="account"><span class="btn"><i class="fas fa-user-circle"></i>播放线路</span><div class="subMenu vipjx"><span>线路-思古</span><span>线路-2</span><span>线路-3</span></div></li><li class="item"id="about"><span class="btn"><i class="fas fa-address-card"></i>关于我们</span><div class="subMenu"><span>lyj</span><span>tang1jun</span></div></li><li class="item"id="support"><span class="btn"><i class="fas fa-info"></i>技术支持</span><div class="subMenu"><span>tang1jun</span></div></li><li class="item"><span class="btn"><i class="fas fa-sign-out-alt"></i>退出</span></li></ui></div>')

	function GMopenInTab(url, open_in_background) {
		if (typeof GM_openInTab === "function") {
			GM_openInTab(url, open_in_background);
		} else {
			GM.openInTab(url, open_in_background);
		}
	}

	function createStyle() {
		return "*{list-style:none;text-decoration:none}.wrapper{position:fixed;z-index:99999;left:0%;top:50%;transform:translate(0%,-50%)}.mainMenu{width:188px;display:block;border-radius:10px;overflow:hidden}.item{border-top:1px solid #ef584a;overflow:hidden}.btn{display:block;padding:15px 20px;background-color:#ff6f61;color:#fff;position:relative}.btn:before{content:'';position:absolute;width:0;height:0;border-left:8px solid transparent;border-right:8px solid transparent;border-top:10px solid #ff6f61;right:15px;bottom:-10px;z-index:9}.btn i{margin-right:10px}.subMenu{background:#273057;overflow:hidden;transition:max-height 0.7s;max-height:0}.subMenu span{display:block;padding:15px 20px;color:#fff;font-size:14px;border-bottom:1px solid #394c7f;position:relative}.subMenu span:before{content:'';opacity:0;transition:opacity 0.3s}.lyjvip .subMenu span:hover:before{content:'';position:absolute;height:0;width:6px;left:0;top:0;opacity:1;border-top:24px solid transparent;border-left:11px solid #fcdc29;border-bottom:24px solid transparent}.subMenu span:after{content:'';opacity:0;transition:opacity 0.3s}.lyjvip .subMenu span:hover:after{content:'';position:absolute;height:0;width:6px;right:0px;top:0;opacity:1;border-top:24px solid transparent;border-right:11px solid #fcdc29;border-bottom:24px solid transparent}.lyjvip .subMenu span:hover{background:#273057;background:-moz-linear-gradient(top,#273057 0%,#273057 50%,#394c7f 51%,#394c7f 100%);background:-webkit-linear-gradient(top,#273057 0%,#273057 50%,#394c7f 51%,#394c7f 100%);background:linear-gradient(to bottom,#273057 0%,#273057 50%,#394c7f 51%,#394c7f 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#273057',endColorstr='#394c7f',GradientType=0);transition:all 0.3s;border-bottom:1px solid #394c7f}.nihao{max-height:1000em;}"
	}

	function addStyle() {
		var style = document.createElement("style");
		style.type = "text/css";
		style.innerHTML = createStyle();
		window.document.head.appendChild(style);
	}

	// 全屏播放
	function ow(owurl) {
		window.open(owurl);
	}

	var log_count = 1;
	var host = location.host;
	var parseInterfaceList = [];
	var selectedInterfaceList = [];
	var originalInterfaceList = [{
			nme: "思古",
			type: "0",
			url: "https://jx.quanmingjiexi.com/?url="
		},
		{
			nme: "B站解析弹窗一",
			type: "0",
			url: "http://jx.rdhk.net/?v="
		},
		{
			nme: "B站解析弹窗二",
			type: "0",
			url: "https://jiexi.380k.com/?url="
		},
		{
			nme: "B站解析弹窗三",
			type: "0",
			url: "https://jx.shunyiwenxiu.com/?url="
		},
		{
			nme: "B站解析弹窗四",
			type: "0",
			url: "https://jx.688ing.com/?search="
		},
		{
			nme: "B站解析弹窗五",
			type: "0",
			url: "https://api.69ne.com/?url="
		},
		{
			nme: "B站解析弹窗六",
			type: "0",
			url: "https://jiexi.380k.com/?url="
		},
		{
			nme: "自用解析线路一",
			type: "0",
			url: "https://jsap.attakids.com/?url="
		},
		{
			nme: "自用解析线路二",
			type: "0",
			url: "http://api.baiyug.vip/index.php?url="
		},
		{
			nme: "1907",
			type: "0",
			url: "https://z1.m1907.cn/?jx="
		},
		{
			nme: "52",
			type: "0",
			url: "https://vip.52jiexi.top/?url="
		},
		{
			nme: "17云",
			type: "0",
			url: "https://www.1717yun.com/jx/ty.php?url="
		},
		{
			nme: "618G",
			type: "0",
			url: "https://jx.618g.com/?url="
		},
		{
			nme: "明日",
			type: "0",
			url: "https://jx.yingxiangbao.cn/vip.php?url="
		},
		{
			nme: "千叶",
			type: "0",
			url: "https://yi29f.cn/vip.php?url="
		},

		{
			nme: "大幕",
			type: "0",
			url: "https://jx.52damu.com/dmjx/jiexi.php?url="
		},
		//--------------------------------------------------------------------------------------
		{
			name: "线路一",
			type: "1",
			url: "https://api.69ne.com/?url="
		},
		{
			name: "线路二",
			type: "1",
			url: "https://jx.idc126.net/jx/?url="
		},
		{
			name: "线路三",
			type: "1",
			url: "https://z1.m1907.cn/?jx="
		},
		{
			name: "线路四",
			type: "1",
			url: "https://vip.66parse.club/?url="
		},
		{
			name: "线路五",
			type: "1",
			url: "https://yi29f.cn/vip.php?url="
		},
		{
			name: "线路六",
			type: "1",
			url: "https://api.tv920.com/jx/?url="
		},
		{
			name: "线路七",
			type: "1",
			url: "https://www.h8jx.com/jiexi.php?url="
		},
		{
			name: "线路八",
			type: "1",
			url: "https://jsap.attakids.com/?url="
		},
		{
			name: "线路九",
			type: "1",
			url: "https://vip.mcyanyu.com/index.php?url="
		},
		{
			name: "线路十",
			type: "1",
			url: "https://maosp.me:7788/1/?url="
		},
		{
			name: "线路十一",
			type: "1",
			url: "https://jx.m3u8.tv/jiexi/?url="
		},
		{
			name: "线路十二",
			type: "1",
			url: "https://jx.ljtv365.com/?url="
		},
		{
			name: "线路十三",
			type: "1",
			url: "https://www.41478.net/?url="
		},
		{
			name: "线路十四",
			type: "1",
			url: "https://www.yaosou.cc/jiexi/?v="
		},
		{
			name: "线路十五",
			type: "1",
			url: "https://jx.wzslw.cn/147G/?url="
		},
		{
			name: "线路十六",
			type: "1",
			url: "https://jx.yparse.com/index.php?url="
		},
		{
			name: "线路十七",
			type: "1",
			url: "https://jx.688ing.com/?search="
		},
		{
			name: "线路十八",
			type: "1",
			url: "https://jiexi.q-q.wang/?url="
		},
		{
			name: "线路十九",
			type: "1",
			url: "https://jx.youyitv.com/?url="
		},
		{
			name: "线路二十",
			type: "1",
			url: "https://api.bingdou.net/?url="
		},
		//--------------------------------------------------------------------------------------
		{
			name: "B站解析一",
			type: "2",
			url: "https://jx.shunyiwenxiu.com/?url="
		},
		{
			name: "B站解析二",
			type: "2",
			url: "https://jx.688ing.com/?search="
		},
		{
			name: "B站解析三",
			type: "2",
			url: "https://api.69ne.com/?url="
		},
		{
			name: "B站解析四",
			type: "2",
			url: "https://jiexi.380k.com/?url="
		},
		{
			name: "B站解析五",
			type: "2",
			url: "https://api.bingdou.net/?url="
		},
		{
			name: "B站解析六",
			type: "2",
			url: "https://jx.m3u8.tv/jiexi/?url="
		},
		{
			name: "B站解析七",
			type: "2",
			url: "https://jx.yparse.com/index.php?url="
		},
		//--------------------------------------------------------------------------------------

	];
	var innerList = [];
	var outerList = [];
	var innerli = "";
	var innerli1 = "";
	var outerli = "";
	originalInterfaceList.forEach((item, index) => {
		if (item.type == "0") {
			innerList.push(item);
			innerli1 += "<li>" + item.nme + "</li>";
		}
		if (item.type == "1") {
			innerList.push(item);
			innerli += "<li>" + item.name + "</li>";
		}
		if (item.type == "2") {
			outerList.push(item);
			outerli += "<li>" + item.name + "</li>";
		}
	});
	parseInterfaceList = innerList.concat(outerList);



	$(".lyjvip li").on({
		click:function(){
			console.info('lyj:keyile');

			if($(this).find("div.subMenu").is('.nihao')){
				$(this).find("div.subMenu").removeClass('nihao')
			} else {
				console.info('lyj: haved')
				$(this).find("div.subMenu").addClass('nihao')
			}
		}
	});

	$(".lyjvip li").each((index, item) => {
		console.info('lyj:bianli biaoti', item);
		item.addEventListener("click", () => {
			console.info('lyj:add listener to biaoti', );

			// debugger
			$(this).removeClass('btn');

			if($('.vipjx').is(':hidden')){
				console.log('lyj:yincangde !!!')
			} else {
				console.log('lyj:dakaile !!!')
			}

		});
	});

	$(".vipjx span").each((index, item) => {
		console.info('lyj:you click span for vip', item);
		item.addEventListener("click", () => {
			console.info('lyj:add listener to span', parseInterfaceList[index].type);

			if (parseInterfaceList[index].type == "0") {
				// GMopenInTab(parseInterfaceList[index].url + location.href, false);
				ow(parseInterfaceList[index].url + location.href);
			}
		});
	});

})();