const hasUnsafeWindow = "undefined" != typeof unsafeWindow, MAX_SNIFF_PLAY_COUNT = 10;
let isAllowIframeSniff = GlobalStore.get("isAllowIframeSniff") || !1;
const isHiker = !!window.fy_bridge_app, isMixia = !!window.mx_browser_obj, isAllowHikerSniff = isHiker && !!window.fy_bridge_app.getNetworkRecords, isAllowMixiaSniff = isMixia && !!window.mx_browser_obj.getweblog;
let isAllowSniff = isAllowHikerSniff || isAllowMixiaSniff || isAllowIframeSniff, sniffTimestamp = Date.now(), isSniffing = !1, sniffTick = 0, sniffUrls = [], sniffUrlsKey = [], isPlayingInPage = GlobalStore.get("isPlayingInPage") || !isMobile;
const isInvalidSniffUrlRegex = /btrace.video.qq.com|qzonestyle.gtimg.cn|img.baidu.com|dplayer\/\w+.mp4|vip.fwwmy1.cn|vwecam.gtimg.com|com-t-iqiyi.com|hz189cloud.oos-hz.ctyunapi.cn|(titan.mgtv.com).+.m3u8|\/\/\//, isValidUrlRegex = /^(http|\/\/)/, isOnlyDownloadVideoUrlRegex = /.titan.mgtv.com/, isVideoUrlRegex = /\.(mp4|m3u8|3gp|wmv|flv|avi|rmvb|m4v|ts)|m3u8play.php/, shortVideoUrlRegex = /\/\/([^\/]+)\/(.*\/)?([^\/]+)\.(mp4|m3u8|3gp|wmv|flv|avi|rmvb|m4v|ts)/, shortVideoUrlLoseRegex = /\/\/([^\/]+)\/(.*[^\/])\/?(mp4|m3u8|3gp|wmv|flv|avi|rmvb|m4v|ts)/, MESSAGE_ID = OO_SIGN;
let isLoadPlayer = !1, player, sniffTimes = {}, sniffStartTime = Date.now(), QR = "", qrcodeCode = "";
const iframes = {};
if (E.on("url.change", (function(n) {
let {oldUrl: o, newUrl: e, autoPlay: i} = n;
log("urlDetector: ".concat(o, " → ").concat(e));
const t = BETTER_ADDONS.find((function(n) {
return n.vip && Is(n.match, o);
})), a = BETTER_ADDONS.find((function(n) {
return n.vip && Is(n.match, e);
}));
log("reload execQuickAddons"), addonGo(), t && a && (i ? (log("auto play"), playVipItem($(".o--vip-item.is-active"))) : (sniffDone(),
$(".o--vip-item").removeClass("is-active")));
})), E.on("enable.sniff", (function(n) {
n.from === PlayerCover && removeIframe(), !isAllowIframeSniff && (isAllowIframeSniff = !0,
isAllowSniff = !0, GlobalStore.set("isAllowIframeSniff", !0), $(".o--vip").addClass("is-allow-sniff"));
})), E.on("play.video", (function(n) {
const o = getIframeId(n.from);
log("✔ Sniff url: ".concat(n.url, " (").concat(n.from, ") #").concat(o, " - ").concat(getSniffTime(n.from))),
removeIframe(o), sniffSuccess(n.url, n.from);
})), E.on("sniff.fail", (function(n) {
if (isAllowSniff) {
const o = getIframeId(n.from);
log("× Sniff fail url: ".concat(n.origin, " (").concat(n.from, ") #").concat(o, " - ").concat(getSniffTime(n.from))),
removeIframe(o);
}
})), E.on("log", (function(n) {
log("GET LOG:", n);
})), Is(isVipUrlRegex) && (log("isVipUrlRegex"), Is(/=http/) && ($("title").html(PLUGIN_ID),
$((function() {
if ($("title").html(PLUGIN_ID), fixM3u8Playing(), Is(/beijixs\.cn\//)) if (log("beijixs.cn match"),
/%\d/.test(location.href)) {
addCss("body > form {position: absolute !important;left: 0 !important;right: 0 !important;top: 0 !important;bottom: 0 !important;background: #eee8d3 !important;z-index: 2147483647 !important;}form #divcss5 {height: auto;min-height: 90vh;}.o--fail {height: auto !important;}.o--fail > div {text-align: center;border-top: 1px solid #495057;border-bottom: 1px solid #495057;padding: 1em;color: #d9480f;font-weight: bold;font-size: 16px;background-color: #fff4e6;}.o--fail > div > div + div {margin-top: 1em;}");
let n = 0;
const o = setInterval((function() {
const e = document.querySelector("video");
if (e.duration < 390) {
e.pause();
const n = $("#TextBox2").attr("value") || "";
$(".video-js").addClass("o--fail").html("<div><div>解析失败</div>".concat(n ? "<div>" + n + "</div>" : "", "</div>")),
clearInterval(o);
}
n++ > 100 && clearInterval(o);
}), 100);
} else {
const n = Href.split("url=")[1];
if (n) {
$("#TextBox1").val(decodeURI(n)), log("vipUrl:", decodeURI(n));
const o = $("#Button1");
o.length > 0 && ($(".video-js").css("display", "none !important"), o.click());
}
let o = 0;
const e = setInterval((function() {
const n = document.querySelector("video");
n && n.duration < 360 ? n.pause() : n.play(), o++ > 100 && clearInterval(e);
}), 100);
} else if (Is(/m1907\.cn/)) {
log("m1907.cn match"), addCss("#s-player + .show > div[title],#s-controls + div > div:nth-child(n+5):not(:last-child)\n{".concat(PurifyStyle, "}"));
let n = 0;
const o = setInterval((function() {
($("#s-player + .show").length > 0 || n++ > 30) && (clearInterval(o), $("#s-controls > div img + span").click());
}), 100);
window.alert = function() {};
}
})))), isNotTop) {
if (location.href.includes("m1907")) {
const n = window.alert;
window.alert = function() {}, setTimeout((function() {
window.alert = n;
}), 1e3);
}
const n = document.body.clientWidth, o = n < 100, e = document.body.clientHeight, i = {
isSniffIframe: o,
docW: n,
docH: e
};
return void (o ? sniffInIframe(i) : fixM3u8Playing(i));
}
log("【嗅探】isAllowSniff:", isAllowSniff ? "✔" : "×"), urlDetector(), $((function() {
$("html").append((_D ? '<oo-logs style="display: none;"></oo-logs>' : "") + '<oo-iframes style="visibility: hidden; position: fixed; bottom: 0; pointer-events: none;"></oo-iframes>');
}));
const Icon = {
vip: '<svg fill="currentColor" viewBox="0 0 18 18" role="img" aria-hidden="true"><path d="M17.731,6.27l-2.771-4.464c-0.332-0.534-0.906-0.852-1.538-0.852h-2.364c-0.553,0-1,0.448-1,1s0.447,1,1,1h2.261l2.628,4.232l-6.955,7.58L2.053,7.187l2.628-4.233h2.33c0.552,0,1-0.448,1-1s-0.448-1-1-1H4.577c-0.623,0-1.212,0.327-1.537,0.853L0.267,6.272c-0.416,0.671-0.346,1.521,0.189,2.133l7.475,8.167c0.275,0.313,0.663,0.475,1.056,0.475c0.324,0,0.651-0.11,0.92-0.336l7.648-8.321C18.077,7.794,18.148,6.943,17.731,6.27z"></path><path d="M4.517,6.167C4.108,6.538,4.078,7.171,4.45,7.58l3.81,4.19c0.189,0.208,0.458,0.327,0.739,0.327c0,0,0,0,0,0c0.281,0,0.55-0.118,0.739-0.327l3.81-4.184c0.372-0.409,0.

Prev | Next
Pg.: 1 2 3 4 5 6 7 8 9 10


Back to home | File page

Subscribe | Register | Login | N