build
This commit is contained in:
394
dist/jop.user.js
vendored
394
dist/jop.user.js
vendored
@@ -10,7 +10,7 @@
|
||||
// @include /^https?:\/\/(\w*\.)?(javbus|seejav|javsee)*\.(com|cc|me|life).*$/
|
||||
// @include /^https?:\/\/(\w*\.)?(javlib|javlibrary)*\.com.*$/
|
||||
// @match *://*/cn/?v=jav*
|
||||
// @require https://cdn.jsdelivr.net/npm/preact@10.11.0/dist/preact.min.js
|
||||
// @require https://cdn.jsdelivr.net/npm/preact@10.11.3/dist/preact.min.js
|
||||
// @connect jable.tv
|
||||
// @connect missav.com
|
||||
// @connect supjav.com
|
||||
@@ -28,7 +28,7 @@
|
||||
// @connect ggjav.com
|
||||
// @connect av01.tv
|
||||
// @connect javbus.com
|
||||
// @connect javdb005.com
|
||||
// @connect javdb007.com
|
||||
// @grant GM_getValue
|
||||
// @grant GM_setValue
|
||||
// @grant GM_xmlhttpRequest
|
||||
@@ -41,7 +41,7 @@
|
||||
".jop-list{box-sizing:border-box;display:flex;flex-wrap:wrap;justify-content:flex-start;gap:10px;width:100%;height:100%;z-index:1;background-color:#fff;transition:right .2s ease-in-out;font-family:Roboto,Helvetica,Arial,sans-serif;color:#000}.jop-button,.jop-button_def{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:3px 10px;border-radius:4px;font-weight:500;font-size:14px;border:1px solid #dcdfe6;color:#606266;cursor:pointer}.jop-button_def{margin:10px 0;width:50px}.jop-button:visited{color:#606266}.jop-button:hover{text-decoration:none;color:#409eff;border:1px solid #c6e2ff;background-color:#ecf5ff}.jop-button_label{position:absolute;font-size:10px;padding:4px;border-radius:4px;top:-13px;right:-10px;line-height:.75;color:#67c23a;border:1px solid #e1f3d8;background:white}.jop-button_green{color:#fff!important;background-color:#67c23a}.jop-button_green:hover{color:#fff!important;background-color:#95d475}.jop-button_red{color:#fff!important;background-color:#f56c6c}.jop-button_red:hover{color:#fff!important;background-color:#f89898}.jop-loading{display:inline-block;width:14px;height:14px;margin-right:10px;border:2px dashed #dcdfe6;border-top-color:transparent;border-radius:100%;animation:btnLoading infinite 1s linear}@keyframes btnLoading{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.jop-tag{padding:3px 6px;color:#409eff!important;background:#ecf5ff;border:1px solid #d9ecff;border-radius:4px}.jop-setting-list{display:flex;flex-wrap:wrap;background-color:#fff}.jop-setting-title{margin:10px 0 5px}.jop-setting-item{display:flex;height:20px;justify-content:center;align-items:center;margin-right:15px}.db-panel .movie-panel-info div.panel-block{padding:5.5px 12px}.db-panel .jop-app{padding:15px 12px}.lib-panel .jop-app{padding:20px 30px;margin-top:10px}input[type=checkbox],input[type=radio]{margin:0 0 0 5px}",
|
||||
);
|
||||
|
||||
(function (preact2, client) {
|
||||
(function (preact2) {
|
||||
"use strict";
|
||||
const matchList = [
|
||||
{
|
||||
@@ -97,141 +97,137 @@
|
||||
return codeText;
|
||||
}
|
||||
const style = "";
|
||||
var r,
|
||||
var t,
|
||||
r,
|
||||
u,
|
||||
i,
|
||||
o$1,
|
||||
f = 0,
|
||||
o$1 = 0,
|
||||
f = [],
|
||||
c = [],
|
||||
e = [],
|
||||
a = preact2.options.__b,
|
||||
v = preact2.options.__r,
|
||||
l = preact2.options.diffed,
|
||||
m = preact2.options.__c,
|
||||
d = preact2.options.unmount;
|
||||
function p(t, r2) {
|
||||
preact2.options.__h && preact2.options.__h(u, t, f || r2), (f = 0);
|
||||
var i2 = u.__H || (u.__H = { __: [], __h: [] });
|
||||
return t >= i2.__.length && i2.__.push({ __V: e }), i2.__[t];
|
||||
e = preact2.options.__b,
|
||||
a = preact2.options.__r,
|
||||
v = preact2.options.diffed,
|
||||
l = preact2.options.__c,
|
||||
m = preact2.options.unmount;
|
||||
function d(t2, u2) {
|
||||
preact2.options.__h && preact2.options.__h(r, t2, o$1 || u2), (o$1 = 0);
|
||||
var i2 = r.__H || (r.__H = { __: [], __h: [] });
|
||||
return t2 >= i2.__.length && i2.__.push({ __V: c }), i2.__[t2];
|
||||
}
|
||||
function y(n) {
|
||||
return (f = 1), h(C$1, n);
|
||||
function p(n) {
|
||||
return (o$1 = 1), y(B$1, n);
|
||||
}
|
||||
function h(n, t, i2) {
|
||||
var o2 = p(r++, 2);
|
||||
function y(n, u2, i2) {
|
||||
var o2 = d(t++, 2);
|
||||
if (
|
||||
((o2.t = n),
|
||||
!o2.__c &&
|
||||
((o2.__ = [
|
||||
i2 ? i2(t) : C$1(void 0, t),
|
||||
i2 ? i2(u2) : B$1(void 0, u2),
|
||||
function (n2) {
|
||||
var t2 = o2.__N ? o2.__N[0] : o2.__[0],
|
||||
r2 = o2.t(t2, n2);
|
||||
t2 !== r2 && ((o2.__N = [r2, o2.__[1]]), o2.__c.setState({}));
|
||||
},
|
||||
]),
|
||||
(o2.__c = u),
|
||||
!u.u))
|
||||
(o2.__c = r),
|
||||
!r.u))
|
||||
) {
|
||||
u.u = true;
|
||||
var f2 = u.shouldComponentUpdate;
|
||||
u.shouldComponentUpdate = function (n2, t2, r2) {
|
||||
r.u = true;
|
||||
var f2 = r.shouldComponentUpdate;
|
||||
r.shouldComponentUpdate = function (n2, t2, r2) {
|
||||
if (!o2.__c.__H) return true;
|
||||
var u2 = o2.__c.__H.__.filter(function (n3) {
|
||||
var u3 = o2.__c.__H.__.filter(function (n3) {
|
||||
return n3.__c;
|
||||
});
|
||||
if (
|
||||
u2.every(function (n3) {
|
||||
u3.every(function (n3) {
|
||||
return !n3.__N;
|
||||
})
|
||||
)
|
||||
return !f2 || f2.call(this, n2, t2, r2);
|
||||
var i3 = false;
|
||||
return (
|
||||
u2.forEach(function (n3) {
|
||||
u3.forEach(function (n3) {
|
||||
if (n3.__N) {
|
||||
var t3 = n3.__[0];
|
||||
(n3.__ = n3.__N), (n3.__N = void 0), t3 !== n3.__[0] && (i3 = true);
|
||||
}
|
||||
}),
|
||||
!!i3 && (!f2 || f2.call(this, n2, t2, r2))
|
||||
!(!i3 && o2.__c.props === n2) && (!f2 || f2.call(this, n2, t2, r2))
|
||||
);
|
||||
};
|
||||
}
|
||||
return o2.__N || o2.__;
|
||||
}
|
||||
function s(t, i2) {
|
||||
var o2 = p(r++, 3);
|
||||
!preact2.options.__s && B$1(o2.__H, i2) && ((o2.__ = t), (o2.i = i2), u.__H.__h.push(o2));
|
||||
function h(u2, i2) {
|
||||
var o2 = d(t++, 3);
|
||||
!preact2.options.__s && z$1(o2.__H, i2) && ((o2.__ = u2), (o2.i = i2), r.__H.__h.push(o2));
|
||||
}
|
||||
function g$1() {
|
||||
for (var t; (t = c.shift()); )
|
||||
if (t.__P && t.__H)
|
||||
function b() {
|
||||
for (var t2; (t2 = f.shift()); )
|
||||
if (t2.__P && t2.__H)
|
||||
try {
|
||||
t.__H.__h.forEach(w$1), t.__H.__h.forEach(z$1), (t.__H.__h = []);
|
||||
t2.__H.__h.forEach(k), t2.__H.__h.forEach(w$1), (t2.__H.__h = []);
|
||||
} catch (r2) {
|
||||
(t.__H.__h = []), preact2.options.__e(r2, t.__v);
|
||||
(t2.__H.__h = []), preact2.options.__e(r2, t2.__v);
|
||||
}
|
||||
}
|
||||
(preact2.options.__b = function (n) {
|
||||
"function" != typeof n.type || n.o || n.type === preact2.Fragment
|
||||
? n.o || (n.o = n.__ && n.__.o ? n.__.o : "")
|
||||
: (n.o = (n.__ && n.__.o ? n.__.o : "") + (n.__ && n.__.__k ? n.__.__k.indexOf(n) : 0)),
|
||||
(u = null),
|
||||
a && a(n);
|
||||
(r = null), e && e(n);
|
||||
}),
|
||||
(preact2.options.__r = function (n) {
|
||||
v && v(n), (r = 0);
|
||||
var t = (u = n.__c).__H;
|
||||
t &&
|
||||
(i === u
|
||||
? ((t.__h = []),
|
||||
(u.__h = []),
|
||||
t.__.forEach(function (n2) {
|
||||
n2.__N && (n2.__ = n2.__N), (n2.__V = e), (n2.__N = n2.i = void 0);
|
||||
a && a(n), (t = 0);
|
||||
var i2 = (r = n.__c).__H;
|
||||
i2 &&
|
||||
(u === r
|
||||
? ((i2.__h = []),
|
||||
(r.__h = []),
|
||||
i2.__.forEach(function (n2) {
|
||||
n2.__N && (n2.__ = n2.__N), (n2.__V = c), (n2.__N = n2.i = void 0);
|
||||
}))
|
||||
: (t.__h.forEach(w$1), t.__h.forEach(z$1), (t.__h = []))),
|
||||
(i = u);
|
||||
: (i2.__h.forEach(k), i2.__h.forEach(w$1), (i2.__h = []))),
|
||||
(u = r);
|
||||
}),
|
||||
(preact2.options.diffed = function (t) {
|
||||
l && l(t);
|
||||
var r2 = t.__c;
|
||||
r2 &&
|
||||
r2.__H &&
|
||||
(r2.__H.__h.length &&
|
||||
((1 !== c.push(r2) && o$1 === preact2.options.requestAnimationFrame) ||
|
||||
((o$1 = preact2.options.requestAnimationFrame) || k)(g$1)),
|
||||
r2.__H.__.forEach(function (n) {
|
||||
n.i && (n.__H = n.i), n.__V !== e && (n.__ = n.__V), (n.i = void 0), (n.__V = e);
|
||||
(preact2.options.diffed = function (t2) {
|
||||
v && v(t2);
|
||||
var o2 = t2.__c;
|
||||
o2 &&
|
||||
o2.__H &&
|
||||
(o2.__H.__h.length &&
|
||||
((1 !== f.push(o2) && i === preact2.options.requestAnimationFrame) ||
|
||||
((i = preact2.options.requestAnimationFrame) || j)(b)),
|
||||
o2.__H.__.forEach(function (n) {
|
||||
n.i && (n.__H = n.i), n.__V !== c && (n.__ = n.__V), (n.i = void 0), (n.__V = c);
|
||||
})),
|
||||
(i = u = null);
|
||||
(u = r = null);
|
||||
}),
|
||||
(preact2.options.__c = function (t, r2) {
|
||||
r2.some(function (t2) {
|
||||
(preact2.options.__c = function (t2, r2) {
|
||||
r2.some(function (t3) {
|
||||
try {
|
||||
t2.__h.forEach(w$1),
|
||||
(t2.__h = t2.__h.filter(function (n) {
|
||||
return !n.__ || z$1(n);
|
||||
t3.__h.forEach(k),
|
||||
(t3.__h = t3.__h.filter(function (n) {
|
||||
return !n.__ || w$1(n);
|
||||
}));
|
||||
} catch (u2) {
|
||||
r2.some(function (n) {
|
||||
n.__h && (n.__h = []);
|
||||
}),
|
||||
(r2 = []),
|
||||
preact2.options.__e(u2, t2.__v);
|
||||
preact2.options.__e(u2, t3.__v);
|
||||
}
|
||||
}),
|
||||
m && m(t, r2);
|
||||
l && l(t2, r2);
|
||||
}),
|
||||
(preact2.options.unmount = function (t) {
|
||||
d && d(t);
|
||||
(preact2.options.unmount = function (t2) {
|
||||
m && m(t2);
|
||||
var r2,
|
||||
u2 = t.__c;
|
||||
u2 = t2.__c;
|
||||
u2 &&
|
||||
u2.__H &&
|
||||
(u2.__H.__.forEach(function (n) {
|
||||
try {
|
||||
w$1(n);
|
||||
k(n);
|
||||
} catch (n2) {
|
||||
r2 = n2;
|
||||
}
|
||||
@@ -239,54 +235,54 @@
|
||||
(u2.__H = void 0),
|
||||
r2 && preact2.options.__e(r2, u2.__v));
|
||||
});
|
||||
var j$1 = "function" == typeof requestAnimationFrame;
|
||||
function k(n) {
|
||||
var t,
|
||||
var g$1 = "function" == typeof requestAnimationFrame;
|
||||
function j(n) {
|
||||
var t2,
|
||||
r2 = function () {
|
||||
clearTimeout(u2), j$1 && cancelAnimationFrame(t), setTimeout(n);
|
||||
clearTimeout(u2), g$1 && cancelAnimationFrame(t2), setTimeout(n);
|
||||
},
|
||||
u2 = setTimeout(r2, 100);
|
||||
j$1 && (t = requestAnimationFrame(r2));
|
||||
g$1 && (t2 = requestAnimationFrame(r2));
|
||||
}
|
||||
function k(n) {
|
||||
var t2 = r,
|
||||
u2 = n.__c;
|
||||
"function" == typeof u2 && ((n.__c = void 0), u2()), (r = t2);
|
||||
}
|
||||
function w$1(n) {
|
||||
var t = u,
|
||||
r2 = n.__c;
|
||||
"function" == typeof r2 && ((n.__c = void 0), r2()), (u = t);
|
||||
var t2 = r;
|
||||
(n.__c = n.__()), (r = t2);
|
||||
}
|
||||
function z$1(n) {
|
||||
var t = u;
|
||||
(n.__c = n.__()), (u = t);
|
||||
}
|
||||
function B$1(n, t) {
|
||||
function z$1(n, t2) {
|
||||
return (
|
||||
!n ||
|
||||
n.length !== t.length ||
|
||||
t.some(function (t2, r2) {
|
||||
return t2 !== n[r2];
|
||||
n.length !== t2.length ||
|
||||
t2.some(function (t3, r2) {
|
||||
return t3 !== n[r2];
|
||||
})
|
||||
);
|
||||
}
|
||||
function C$1(n, t) {
|
||||
return "function" == typeof t ? t(n) : t;
|
||||
function B$1(n, t2) {
|
||||
return "function" == typeof t2 ? t2(n) : t2;
|
||||
}
|
||||
function g(n, t) {
|
||||
for (var e2 in t) n[e2] = t[e2];
|
||||
function g(n, t2) {
|
||||
for (var e2 in t2) n[e2] = t2[e2];
|
||||
return n;
|
||||
}
|
||||
function C(n, t) {
|
||||
for (var e2 in n) if ("__source" !== e2 && !(e2 in t)) return true;
|
||||
for (var r2 in t) if ("__source" !== r2 && n[r2] !== t[r2]) return true;
|
||||
function C(n, t2) {
|
||||
for (var e2 in n) if ("__source" !== e2 && !(e2 in t2)) return true;
|
||||
for (var r2 in t2) if ("__source" !== r2 && n[r2] !== t2[r2]) return true;
|
||||
return false;
|
||||
}
|
||||
function E(n) {
|
||||
function w(n) {
|
||||
this.props = n;
|
||||
}
|
||||
function w(n, e2) {
|
||||
function R(n, e2) {
|
||||
function r2(n2) {
|
||||
var t = this.props.ref,
|
||||
r3 = t == n2.ref;
|
||||
var t2 = this.props.ref,
|
||||
r3 = t2 == n2.ref;
|
||||
return (
|
||||
!r3 && t && (t.call ? t(null) : (t.current = null)),
|
||||
!r3 && t2 && (t2.call ? t2(null) : (t2.current = null)),
|
||||
e2 ? !e2(this.props, n2) || !r3 : C(this.props, n2)
|
||||
);
|
||||
}
|
||||
@@ -300,25 +296,25 @@
|
||||
u2
|
||||
);
|
||||
}
|
||||
((E.prototype = new preact2.Component()).isPureReactComponent = true),
|
||||
(E.prototype.shouldComponentUpdate = function (n, t) {
|
||||
return C(this.props, n) || C(this.state, t);
|
||||
((w.prototype = new preact2.Component()).isPureReactComponent = true),
|
||||
(w.prototype.shouldComponentUpdate = function (n, t2) {
|
||||
return C(this.props, n) || C(this.state, t2);
|
||||
});
|
||||
var R = preact2.options.__b;
|
||||
var x = preact2.options.__b;
|
||||
preact2.options.__b = function (n) {
|
||||
n.type && n.type.__f && n.ref && ((n.props.ref = n.ref), (n.ref = null)), R && R(n);
|
||||
n.type && n.type.__f && n.ref && ((n.props.ref = n.ref), (n.ref = null)), x && x(n);
|
||||
};
|
||||
var O = preact2.options.__e;
|
||||
preact2.options.__e = function (n, t, e2, r2) {
|
||||
var T = preact2.options.__e;
|
||||
preact2.options.__e = function (n, t2, e2, r2) {
|
||||
if (n.then) {
|
||||
for (var u2, o2 = t; (o2 = o2.__); )
|
||||
for (var u2, o2 = t2; (o2 = o2.__); )
|
||||
if ((u2 = o2.__c) && u2.__c)
|
||||
return null == t.__e && ((t.__e = e2.__e), (t.__k = e2.__k)), u2.__c(n, t);
|
||||
return null == t2.__e && ((t2.__e = e2.__e), (t2.__k = e2.__k)), u2.__c(n, t2);
|
||||
}
|
||||
O(n, t, e2, r2);
|
||||
T(n, t2, e2, r2);
|
||||
};
|
||||
var T = preact2.options.unmount;
|
||||
function I(n, t, e2) {
|
||||
var I = preact2.options.unmount;
|
||||
function L(n, t2, e2) {
|
||||
return (
|
||||
n &&
|
||||
(n.__c &&
|
||||
@@ -327,49 +323,49 @@
|
||||
"function" == typeof n2.__c && n2.__c();
|
||||
}),
|
||||
(n.__c.__H = null)),
|
||||
null != (n = g({}, n)).__c && (n.__c.__P === e2 && (n.__c.__P = t), (n.__c = null)),
|
||||
null != (n = g({}, n)).__c && (n.__c.__P === e2 && (n.__c.__P = t2), (n.__c = null)),
|
||||
(n.__k =
|
||||
n.__k &&
|
||||
n.__k.map(function (n2) {
|
||||
return I(n2, t, e2);
|
||||
return L(n2, t2, e2);
|
||||
}))),
|
||||
n
|
||||
);
|
||||
}
|
||||
function L(n, t, e2) {
|
||||
function U(n, t2, e2) {
|
||||
return (
|
||||
n &&
|
||||
((n.__v = null),
|
||||
(n.__k =
|
||||
n.__k &&
|
||||
n.__k.map(function (n2) {
|
||||
return L(n2, t, e2);
|
||||
return U(n2, t2, e2);
|
||||
})),
|
||||
n.__c &&
|
||||
n.__c.__P === t &&
|
||||
n.__c.__P === t2 &&
|
||||
(n.__e && e2.insertBefore(n.__e, n.__d), (n.__c.__e = true), (n.__c.__P = e2))),
|
||||
n
|
||||
);
|
||||
}
|
||||
function U() {
|
||||
function D() {
|
||||
(this.__u = 0), (this.t = null), (this.__b = null);
|
||||
}
|
||||
function D(n) {
|
||||
var t = n.__.__c;
|
||||
return t && t.__a && t.__a(n);
|
||||
function F(n) {
|
||||
var t2 = n.__.__c;
|
||||
return t2 && t2.__a && t2.__a(n);
|
||||
}
|
||||
function M() {
|
||||
function V() {
|
||||
(this.u = null), (this.o = null);
|
||||
}
|
||||
(preact2.options.unmount = function (n) {
|
||||
var t = n.__c;
|
||||
t && t.__R && t.__R(), t && true === n.__h && (n.type = null), T && T(n);
|
||||
var t2 = n.__c;
|
||||
t2 && t2.__R && t2.__R(), t2 && true === n.__h && (n.type = null), I && I(n);
|
||||
}),
|
||||
((U.prototype = new preact2.Component()).__c = function (n, t) {
|
||||
var e2 = t.__c,
|
||||
((D.prototype = new preact2.Component()).__c = function (n, t2) {
|
||||
var e2 = t2.__c,
|
||||
r2 = this;
|
||||
null == r2.t && (r2.t = []), r2.t.push(e2);
|
||||
var u2 = D(r2.__v),
|
||||
var u2 = F(r2.__v),
|
||||
o2 = false,
|
||||
i2 = function () {
|
||||
o2 || ((o2 = true), (e2.__R = null), u2 ? u2(l2) : l2());
|
||||
@@ -379,24 +375,24 @@
|
||||
if (!--r2.__u) {
|
||||
if (r2.state.__a) {
|
||||
var n2 = r2.state.__a;
|
||||
r2.__v.__k[0] = L(n2, n2.__c.__P, n2.__c.__O);
|
||||
r2.__v.__k[0] = U(n2, n2.__c.__P, n2.__c.__O);
|
||||
}
|
||||
var t2;
|
||||
for (r2.setState({ __a: (r2.__b = null) }); (t2 = r2.t.pop()); ) t2.forceUpdate();
|
||||
var t3;
|
||||
for (r2.setState({ __a: (r2.__b = null) }); (t3 = r2.t.pop()); ) t3.forceUpdate();
|
||||
}
|
||||
},
|
||||
c2 = true === t.__h;
|
||||
c2 = true === t2.__h;
|
||||
r2.__u++ || c2 || r2.setState({ __a: (r2.__b = r2.__v.__k[0]) }), n.then(i2, i2);
|
||||
}),
|
||||
(U.prototype.componentWillUnmount = function () {
|
||||
(D.prototype.componentWillUnmount = function () {
|
||||
this.t = [];
|
||||
}),
|
||||
(U.prototype.render = function (n, e2) {
|
||||
(D.prototype.render = function (n, e2) {
|
||||
if (this.__b) {
|
||||
if (this.__v.__k) {
|
||||
var r2 = document.createElement("div"),
|
||||
o2 = this.__v.__k[0].__c;
|
||||
this.__v.__k[0] = I(this.__b, r2, (o2.__O = o2.__P));
|
||||
this.__v.__k[0] = L(this.__b, r2, (o2.__O = o2.__P));
|
||||
}
|
||||
this.__b = null;
|
||||
}
|
||||
@@ -406,9 +402,9 @@
|
||||
[preact2.createElement(preact2.Fragment, null, e2.__a ? null : n.children), i2]
|
||||
);
|
||||
});
|
||||
var V = function (n, t, e2) {
|
||||
var W = function (n, t2, e2) {
|
||||
if (
|
||||
(++e2[1] === e2[0] && n.o.delete(t),
|
||||
(++e2[1] === e2[0] && n.o.delete(t2),
|
||||
n.props.revealOrder && ("t" !== n.props.revealOrder[0] || !n.o.size))
|
||||
)
|
||||
for (e2 = n.u; e2; ) {
|
||||
@@ -417,90 +413,90 @@
|
||||
n.u = e2 = e2[2];
|
||||
}
|
||||
};
|
||||
((M.prototype = new preact2.Component()).__a = function (n) {
|
||||
var t = this,
|
||||
e2 = D(t.__v),
|
||||
r2 = t.o.get(n);
|
||||
((V.prototype = new preact2.Component()).__a = function (n) {
|
||||
var t2 = this,
|
||||
e2 = F(t2.__v),
|
||||
r2 = t2.o.get(n);
|
||||
return (
|
||||
r2[0]++,
|
||||
function (u2) {
|
||||
var o2 = function () {
|
||||
t.props.revealOrder ? (r2.push(u2), V(t, n, r2)) : u2();
|
||||
t2.props.revealOrder ? (r2.push(u2), W(t2, n, r2)) : u2();
|
||||
};
|
||||
e2 ? e2(o2) : o2();
|
||||
}
|
||||
);
|
||||
}),
|
||||
(M.prototype.render = function (n) {
|
||||
(V.prototype.render = function (n) {
|
||||
(this.u = null), (this.o = /* @__PURE__ */ new Map());
|
||||
var t = preact2.toChildArray(n.children);
|
||||
n.revealOrder && "b" === n.revealOrder[0] && t.reverse();
|
||||
for (var e2 = t.length; e2--; ) this.o.set(t[e2], (this.u = [1, 0, this.u]));
|
||||
var t2 = preact2.toChildArray(n.children);
|
||||
n.revealOrder && "b" === n.revealOrder[0] && t2.reverse();
|
||||
for (var e2 = t2.length; e2--; ) this.o.set(t2[e2], (this.u = [1, 0, this.u]));
|
||||
return n.children;
|
||||
}),
|
||||
(M.prototype.componentDidUpdate = M.prototype.componentDidMount =
|
||||
(V.prototype.componentDidUpdate = V.prototype.componentDidMount =
|
||||
function () {
|
||||
var n = this;
|
||||
this.o.forEach(function (t, e2) {
|
||||
V(n, e2, t);
|
||||
this.o.forEach(function (t2, e2) {
|
||||
W(n, e2, t2);
|
||||
});
|
||||
});
|
||||
var j = ("undefined" != typeof Symbol && Symbol.for && Symbol.for("react.element")) || 60103,
|
||||
z =
|
||||
var z = ("undefined" != typeof Symbol && Symbol.for && Symbol.for("react.element")) || 60103,
|
||||
B =
|
||||
/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,
|
||||
B = "undefined" != typeof document,
|
||||
H = function (n) {
|
||||
H = "undefined" != typeof document,
|
||||
Z = function (n) {
|
||||
return (
|
||||
"undefined" != typeof Symbol && "symbol" == typeof Symbol() ? /fil|che|rad/i : /fil|che|ra/i
|
||||
).test(n);
|
||||
};
|
||||
(preact2.Component.prototype.isReactComponent = {}),
|
||||
["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function (
|
||||
t,
|
||||
t2,
|
||||
) {
|
||||
Object.defineProperty(preact2.Component.prototype, t, {
|
||||
Object.defineProperty(preact2.Component.prototype, t2, {
|
||||
configurable: true,
|
||||
get: function () {
|
||||
return this["UNSAFE_" + t];
|
||||
return this["UNSAFE_" + t2];
|
||||
},
|
||||
set: function (n) {
|
||||
Object.defineProperty(this, t, { configurable: true, writable: true, value: n });
|
||||
Object.defineProperty(this, t2, { configurable: true, writable: true, value: n });
|
||||
},
|
||||
});
|
||||
});
|
||||
var q = preact2.options.event;
|
||||
function G() {}
|
||||
function J() {
|
||||
var G = preact2.options.event;
|
||||
function J() {}
|
||||
function K() {
|
||||
return this.cancelBubble;
|
||||
}
|
||||
function K() {
|
||||
function Q() {
|
||||
return this.defaultPrevented;
|
||||
}
|
||||
preact2.options.event = function (n) {
|
||||
return (
|
||||
q && (n = q(n)),
|
||||
(n.persist = G),
|
||||
(n.isPropagationStopped = J),
|
||||
(n.isDefaultPrevented = K),
|
||||
G && (n = G(n)),
|
||||
(n.persist = J),
|
||||
(n.isPropagationStopped = K),
|
||||
(n.isDefaultPrevented = Q),
|
||||
(n.nativeEvent = n)
|
||||
);
|
||||
};
|
||||
var X = {
|
||||
var nn = {
|
||||
configurable: true,
|
||||
get: function () {
|
||||
return this.class;
|
||||
},
|
||||
},
|
||||
nn = preact2.options.vnode;
|
||||
tn = preact2.options.vnode;
|
||||
preact2.options.vnode = function (n) {
|
||||
var t = n.type,
|
||||
var t2 = n.type,
|
||||
e2 = n.props,
|
||||
u2 = e2;
|
||||
if ("string" == typeof t) {
|
||||
var o2 = -1 === t.indexOf("-");
|
||||
if ("string" == typeof t2) {
|
||||
var o2 = -1 === t2.indexOf("-");
|
||||
for (var i2 in ((u2 = {}), e2)) {
|
||||
var l2 = e2[i2];
|
||||
(B && "children" === i2 && "noscript" === t) ||
|
||||
(H && "children" === i2 && "noscript" === t2) ||
|
||||
("value" === i2 && "defaultValue" in e2 && null == l2) ||
|
||||
("defaultValue" === i2 && "value" in e2 && null == e2.value
|
||||
? (i2 = "value")
|
||||
@@ -508,7 +504,7 @@
|
||||
? (l2 = "")
|
||||
: /ondoubleclick/i.test(i2)
|
||||
? (i2 = "ondblclick")
|
||||
: /^onchange(textarea|input)/i.test(i2 + t) && !H(e2.type)
|
||||
: /^onchange(textarea|input)/i.test(i2 + t2) && !Z(e2.type)
|
||||
? (i2 = "oninput")
|
||||
: /^onfocus$/i.test(i2)
|
||||
? (i2 = "onfocusin")
|
||||
@@ -516,19 +512,19 @@
|
||||
? (i2 = "onfocusout")
|
||||
: /^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i2)
|
||||
? (i2 = i2.toLowerCase())
|
||||
: o2 && z.test(i2)
|
||||
: o2 && B.test(i2)
|
||||
? (i2 = i2.replace(/[A-Z0-9]/g, "-$&").toLowerCase())
|
||||
: null === l2 && (l2 = void 0),
|
||||
/^oninput$/i.test(i2) && ((i2 = i2.toLowerCase()), u2[i2] && (i2 = "oninputCapture")),
|
||||
(u2[i2] = l2));
|
||||
}
|
||||
"select" == t &&
|
||||
"select" == t2 &&
|
||||
u2.multiple &&
|
||||
Array.isArray(u2.value) &&
|
||||
(u2.value = preact2.toChildArray(e2.children).forEach(function (n2) {
|
||||
n2.props.selected = -1 != u2.value.indexOf(n2.props.value);
|
||||
})),
|
||||
"select" == t &&
|
||||
"select" == t2 &&
|
||||
null != u2.defaultValue &&
|
||||
(u2.value = preact2.toChildArray(e2.children).forEach(function (n2) {
|
||||
n2.props.selected = u2.multiple
|
||||
@@ -537,15 +533,15 @@
|
||||
})),
|
||||
(n.props = u2),
|
||||
e2.class != e2.className &&
|
||||
((X.enumerable = "className" in e2),
|
||||
((nn.enumerable = "className" in e2),
|
||||
null != e2.className && (u2.class = e2.className),
|
||||
Object.defineProperty(u2, "className", X));
|
||||
Object.defineProperty(u2, "className", nn));
|
||||
}
|
||||
(n.$$typeof = j), nn && nn(n);
|
||||
(n.$$typeof = z), tn && tn(n);
|
||||
};
|
||||
var tn = preact2.options.__r;
|
||||
var en = preact2.options.__r;
|
||||
preact2.options.__r = function (n) {
|
||||
tn && tn(n), n.__c;
|
||||
en && en(n), n.__c;
|
||||
};
|
||||
const print = (name) => {
|
||||
console.log(name);
|
||||
@@ -751,6 +747,10 @@
|
||||
method: print,
|
||||
},
|
||||
];
|
||||
var monkeyWindow = window;
|
||||
var GM_setValue = /* @__PURE__ */ (() => monkeyWindow.GM_setValue)();
|
||||
var GM_xmlhttpRequest = /* @__PURE__ */ (() => monkeyWindow.GM_xmlhttpRequest)();
|
||||
var GM_getValue = /* @__PURE__ */ (() => monkeyWindow.GM_getValue)();
|
||||
function videoPageParser(responseText, { subQuery, leakQuery, videoQuery }) {
|
||||
const doc = new DOMParser().parseFromString(responseText, "text/html");
|
||||
const subNode = subQuery ? doc.querySelector(subQuery) : "";
|
||||
@@ -799,7 +799,7 @@
|
||||
}
|
||||
async function xhr(siteItem, targetLink, CODE) {
|
||||
const xhrPromise = new Promise((resolve) => {
|
||||
client.GM_xmlhttpRequest({
|
||||
GM_xmlhttpRequest({
|
||||
method: "GET",
|
||||
url: targetLink,
|
||||
onload: (response) => {
|
||||
@@ -855,11 +855,11 @@
|
||||
return xhrPromise;
|
||||
}
|
||||
var _ = 0;
|
||||
function o(o2, e2, n, t, f2) {
|
||||
function o(o2, e2, n, t2, f2) {
|
||||
var l2,
|
||||
s2,
|
||||
s,
|
||||
u2 = {};
|
||||
for (s2 in e2) "ref" == s2 ? (l2 = e2[s2]) : (u2[s2] = e2[s2]);
|
||||
for (s in e2) "ref" == s ? (l2 = e2[s]) : (u2[s] = e2[s]);
|
||||
var a2 = {
|
||||
type: o2,
|
||||
props: u2,
|
||||
@@ -875,23 +875,23 @@
|
||||
constructor: void 0,
|
||||
__v: --_,
|
||||
__source: f2,
|
||||
__self: t,
|
||||
__self: t2,
|
||||
};
|
||||
if ("function" == typeof o2 && (l2 = o2.defaultProps))
|
||||
for (s2 in l2) void 0 === u2[s2] && (u2[s2] = l2[s2]);
|
||||
for (s in l2) void 0 === u2[s] && (u2[s] = l2[s]);
|
||||
return preact2.options.vnode && preact2.options.vnode(a2), a2;
|
||||
}
|
||||
const SiteButton = w(({ siteItem, CODE }) => {
|
||||
const SiteButton = R(({ siteItem, CODE }) => {
|
||||
const { name } = siteItem;
|
||||
const link = siteItem.url.replace("{{code}}", CODE);
|
||||
const [status, setStatus] = y({
|
||||
const [status, setStatus] = p({
|
||||
isSuccess: "pedding",
|
||||
hasSubtitle: false,
|
||||
hasLeakage: false,
|
||||
targetLink: "",
|
||||
});
|
||||
const { isSuccess, hasSubtitle, hasLeakage, targetLink } = status;
|
||||
s(() => {
|
||||
h(() => {
|
||||
xhr(siteItem, link, CODE).then((res) => {
|
||||
setStatus({
|
||||
isSuccess: res.isSuccess ? "fulfilled" : "rejected",
|
||||
@@ -933,7 +933,7 @@
|
||||
});
|
||||
});
|
||||
const Setting = ({ sites, setSites, disable }) => {
|
||||
const [showSetting, setShowSetting] = y(false);
|
||||
const [showSetting, setShowSetting] = p(false);
|
||||
const newDisable = disable;
|
||||
return o(preact2.Fragment, {
|
||||
children: [
|
||||
@@ -987,7 +987,7 @@
|
||||
className: "jop-button_def",
|
||||
onClick: (e2) => {
|
||||
setShowSetting(!showSetting);
|
||||
client.GM_setValue("disable", newDisable);
|
||||
GM_setValue("disable", newDisable);
|
||||
setSites([...sites]);
|
||||
},
|
||||
children: "保存",
|
||||
@@ -997,9 +997,9 @@
|
||||
],
|
||||
});
|
||||
};
|
||||
const App = w(function ({ current, CODE }) {
|
||||
const disable = client.GM_getValue("disable", ["AvJoy", "baihuse", "AV01"]);
|
||||
const [sites, setSites] = y(siteList);
|
||||
const App = R(function ({ current, CODE }) {
|
||||
const disable = GM_getValue("disable", ["AvJoy", "baihuse", "AV01"]);
|
||||
const [sites, setSites] = p(siteList);
|
||||
const sitesDisHost = sites.filter(
|
||||
(item) => item.disableHostname !== current.name && !item.disable,
|
||||
);
|
||||
@@ -1045,4 +1045,4 @@
|
||||
);
|
||||
}
|
||||
main();
|
||||
})(preact, ((window.monkeyWindow = window), window));
|
||||
})(preact);
|
||||
|
||||
@@ -3,7 +3,7 @@ import monkey, { cdn, MonkeyUserScript } from "vite-plugin-monkey";
|
||||
import preact from "@preact/preset-vite";
|
||||
import { siteList } from "./src/utils/siteList";
|
||||
|
||||
const connectList = siteList.map((site) => site.hostname).concat(["javdb005.com"]);
|
||||
const connectList = siteList.map((site) => site.hostname).concat(["javdb007.com"]);
|
||||
|
||||
const UserscriptConfig: MonkeyUserScript = {
|
||||
author: "mission522",
|
||||
@@ -24,6 +24,7 @@ const UserscriptConfig: MonkeyUserScript = {
|
||||
};
|
||||
|
||||
export default defineConfig({
|
||||
build: {},
|
||||
resolve: { alias: { "@": "/src/" } },
|
||||
esbuild: { charset: "utf8" },
|
||||
plugins: [
|
||||
@@ -36,7 +37,6 @@ export default defineConfig({
|
||||
preact: cdn.jsdelivr("preact", "dist/preact.min.js"),
|
||||
},
|
||||
},
|
||||
|
||||
userscript: UserscriptConfig,
|
||||
}),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user