Fetch DMM/FANZA public rankings (daily/weekly/monthly) without API keys and output top 10 in numbered text format with Japanese title, Chinese translation, and cover image URL. Use when user asks for DMM/FANZA 日榜/周榜/月榜 scraping, top10 extraction, or no-key ranking collection.
抓取 DMM/FANZA 公共排行榜并输出 Top10,默认中文说明 + 日文原片名。
必须使用编号块,不要表格:
text
javascript
() => {
const items = Array.from(document.querySelectorAll(main ul > li));
const rows = [];
for (const li of items) {
const rankMatch = (li.textContent || ).match(/(\d+)位/);
if (!rankMatch) continue;
const rank = Number(rankMatch[1]);
const link =
li.querySelector(h2 a[href*=/av/content/?id=]) ||
li.querySelector(a[href*=/av/content/?id=]);
if (!link) continue;
const href = link.getAttribute(href) || ;
const idMatch = href.match(/[?&]id=([^&]+)/);
const title = (link.textContent || ).replace(/\s+/g, ).trim();
const cover = Array.from(li.querySelectorAll(img))
.map((img) => img.getAttribute(src) || img.getAttribute(data-src) || img.currentSrc || )
.find((src) => /pics_dig|digital\/video|awsimgsrc\.dmm\.co\.jp/.test(src));
rows.push({
rank,
id: idMatch ? idMatch[1] : null,
title,
content_url: new URL(href, location.origin).href,
cover_url: cover ? new URL(cover, location.origin).href : null,
});
}
rows.sort((a, b) => a.rank - b.rank);
return rows;
}
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 dmm-ranking-lite-1776281514 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 dmm-ranking-lite-1776281514 技能
skillhub install dmm-ranking-lite-1776281514
文件大小: 2.47 KB | 发布时间: 2026-4-16 17:42