Greasy Fork is available in English.
种子列表/详情/演员列表 大图浏览
// ==UserScript==
// @name m-team大图浏览
// @namespace mteam
// @version 0.6.1
// @description 种子列表/详情/演员列表 大图浏览
// @description 适配 2025.08 新版介面
// @author AfAn,Krad
// @license MIT
// @match https://kp.m-team.cc/*
// @connect translate.google.com
// @connect api.avgle.com
// @grant GM_xmlhttpRequest
// @grant GM_addStyle
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_notification
// @grant GM_setClipboard
// @grant GM_getResourceURL
// ==/UserScript==
! function () {
"use strict";
var t, e;
t = window.history, e = t.pushState, t.pushState = function (n) {
return "function" == typeof t.onpushstate && t.onpushstate({
state: n
}), e.apply(t, arguments)
}, window.history.onpushstate = function (t) {
setTimeout((function () {}), 0)
};
var n = {
"/api/torrent/search": function (t) {
!async function (t) {
if (0 !== window.location.href.indexOf("https://kp.m-team.cc/browse/adult")) return;
let e = JSON.parse(t);
if (!e || !("code" in e) || "0" != e.code) return !1;
let n = [];
for (let t = 0; t < 30; t++) {
await r(1e3), n = document.querySelectorAll("div.ant-spin-container table tbody tr");
let t = +e.data.pageSize,
o = +e.data.total;
if (n.length == t) break;
if (o < t && n.length == o) break
}
n.forEach((async (t, n) => {
const div = t.querySelector("td:nth-of-type(1)>div");
const antImage = div.querySelector(".ant-image");
div.classList.remove('items-center');
div.classList.add('items-start');
div.classList.add('flex-col');
antImage.style.order = 1;
antImage.style.padding = '1em';
div.querySelector("div.w-2").classList.remove('w-2');
let img = antImage.querySelector("img.torrent-list__thumbnail");
if(!img){
img = document.createElement("img");
img.className='torrent-list__thumbnail';
antImage.insertBefore(img, antImage.firstElementChild);
}
img.style.objectFit = 'contain';
img.style.height = 'auto';
img.style.width = 'auto';
img.style.maxWidth = '100%';
img.src = e.data.data[n].imageList[0];
img.addEventListener("click", (function (t) {
t.stopPropagation();
window.open(`https://kp.m-team.cc/detail/${e.data.data[n].id}`, "_blank");
}));
}))
}(t)
},
"/api/dmm/showcase/fetchList": function (t) {
!async function (t) {
if (0 !== window.location.href.indexOf("https://kp.m-team.cc/showcaseDetail?id=")) return;
let e = JSON.parse(t);
if (!e || !("code" in e) || "0" != e.code) return !1;
let n = [];
for (let t = 0; t < 30 && (await r(1e3), n = document.querySelectorAll("div.ant-spin-container table tbody tr"), n.length != e.data.list.length); t++);
n.forEach((async (t, n) => {
const div = t.querySelector("td:nth-of-type(2)>div");
const antImage = div.querySelector(".ant-image");
div.classList.remove('items-center');
div.classList.add('items-start');
div.classList.add('flex-col');
antImage.style.order = 1;
antImage.style.padding = '1em';
div.querySelector("div.w-2").classList.remove('w-2');
let img = antImage.querySelector("img.torrent-list__thumbnail");
if(!img){
img = document.createElement("img");
img.className='torrent-list__thumbnail';
antImage.insertBefore(img, antImage.firstElementChild);
}
img.style.objectFit = 'contain';
img.style.height = 'auto';
img.style.width = 'auto';
img.style.maxWidth = '100%';
img.src = e.data.data[n].imageList[0];
img.addEventListener("click", (function (t) {
t.stopPropagation();
window.open(`https://kp.m-team.cc/detail/${e.data.data[n].id}`, "_blank");
}));
}))
}(t)
}
},
o = XMLHttpRequest.prototype.send,
i = XMLHttpRequest.prototype.open;
function r(t) {
return new Promise((e => setTimeout(e, t)))
}
XMLHttpRequest.prototype.open = function (t, e) {
return this.url = e, i.apply(this, arguments)
}, XMLHttpRequest.prototype.send = function () {
return this.addEventListener("load", (function () {
4 === this.readyState && 200 === this.status && Object.keys(n).forEach((t => {
this.url.includes(t) && n[t](this.response)
}))
})), o.apply(this, arguments)
}
}();