diff --git a/dist/jhs-enhance.user.js b/dist/jhs-enhance.user.js index 806f00d..9560d50 100644 --- a/dist/jhs-enhance.user.js +++ b/dist/jhs-enhance.user.js @@ -1253,6 +1253,15 @@ System.register("./__entry.js", ['jquery', 'localforage', 'toastify-js', 'blueim ); insertStyle(mainCss); insertStyle(subtitleModalCss); + const isEligibleDmmCoverCode = (value) => { + const raw = String(value || "").trim().toUpperCase(); + if (!/^[A-Z0-9]{2,10}-\d{1,6}$/.test(raw)) return false; + const code = raw.replace(/\s+/g, "-").toUpperCase(); + if (!/^[A-Z0-9]{2,10}-\d{1,6}$/.test(code) || /^FC2-/.test(code)) return false; + if (/^\d{6}[-_]\d{2,3}$/.test(code)) return false; + if (/^(DUGA|MYWIFE|HEYZO|PACO|10MU|1PONDO|CARIBBEAN|CARIB|TOKYO|GACHI|REAL|JUKU|AKA|NTR)-/.test(code)) return false; + return true; + }; window.$ = window.jQuery = $$1; if (typeof $$1.trim !== "function") { $$1.trim = function (text) { @@ -10418,6 +10427,27 @@ ${err.stack}` : ""); return qualityMap; } return null; + }; + const fromJavxyCover = async (code) => { + const query = String(code || "").trim(); + if (!query) return null; + for (const endpoint of JAVXY_ENDPOINTS) { + const params = new URLSearchParams({client: "laosiji-new"}); + const apiUrl2 = `https://${endpoint.host}/covers/${encodeURIComponent(query)}?${params}`; + let r; + try { + r = await gmHttp.get(apiUrl2, null, { + "Accept": "application/json,text/plain,*/*", + "X-Javxy-Token": JAVXY_TOKEN + }, {timeout: 15e3}); + } catch (e) { + continue; + } + if (!r) continue; + if ((r == null ? void 0 : r.found) && (r.url || r.cover || r.highCover)) return r; + return null; + } + return null; }; class JavxyPreviewVideoPlugin extends BasePlugin { getName() { @@ -12590,9 +12620,11 @@ ${err.stack}` : ""); $(".buttons button[data-clipboard-text*='magnet:']").each(((i, el) => { const $copyBtn = $(el); const magnet = $copyBtn.attr("data-clipboard-text"); - $copyBtn.css("margin-right", parseInt($copyBtn.css("margin-right")) - 5 + "px"); + $copyBtn.css("margin-right", parseInt($copyBtn.css("margin-right")) - 4 + "px"); const $downloadBtn = $copyBtn.siblings("a.button, button").first(); - $downloadBtn.length && $downloadBtn.css("margin-right", parseInt($downloadBtn.css("margin-right")) - 5 + "px"); + if ($downloadBtn.length) { + $downloadBtn.css("margin-right", parseInt($downloadBtn.css("margin-right")) + 3 + "px"); + } $("