解析爱奇艺、腾讯视频VIP
当前为
// ==UserScript==
// @name vip video
// @description 解析爱奇艺、腾讯视频VIP
// @namespace http://study365.free.nf
// @version 28
// @include https://*.iqiyi.com/v_*
// @include https://*.iqiyi.com/w_*
// @include https://*.iqiyi.com/a_*
// @include https://v.qq.com/x/cover/*
// @include https://v.qq.com/x/page/*
// @include https://v.qq.com/tv/*
// @include https://m.v.qq.com/x/m/play*
// @include https://m.v.qq.com/x/play*
// @grant none
// ==/UserScript==
(function() {
'use strict';
let list = [
{"name": "虾米", "url": "https://jx.xmflv.com/?url=", "type":"PC"},
{"name": "M1907", "url": "https://im1907.top/?jx="},
{"name": "playerjy", "url": "https://jx.playerjy.com/?url="},
{"name": "ckplayer", "url": "https://www.ckplayer.vip/jiexi/?url=", "type":"PC"},
];
setTimeout(function () {
let href = location.href;
let params = {};
let arr = location.search.substring(1).split('&');
for (let str of arr) {
let pair = str.split("=");
params[pair[0]] = pair[1];
}
if (href.indexOf('/m.v.qq.com') > 0) {
href = 'https://v.qq.com/x/cover/' + params.cid + '/' + params.vid + '.html';
}
let mobile= !!navigator.userAgent.match(/AppleWebKit.*Mobile.*/);
let html = "<div style='z-index:999999999999;position:fixed;top:0;background:rgba(255,255,255,0.5)'>";
for (let ele of list) {
if(mobile && ele.type=="PC"){
continue;
}
html += `<a href="` + ele.url + href + `" target="_blank" rel='noopener noreferrer' style="margin:5px;color:red;line-height:24px;font-size:16px">` + ele.name + `</a>`
}
html += "</div>";
let div = document.createElement("div");
div.innerHTML = html;
document.body.appendChild(div);
},2000);
})();