This commit is contained in:
lzyme.dev@gmail.com
2026-09-09 14:58:50 +08:00
parent e4792cd55f
commit 8396e3825d
5 changed files with 40 additions and 7 deletions
+19 -2
View File
@@ -802,6 +802,23 @@ System.register("./__entry.js", ['jquery', 'localforage', 'toastify-js', 'blueim
color: #f40 !important; color: #f40 !important;
} }
#magnets-content .item[data-rank] {
position: relative !important;
}
#magnets-content .item[data-rank] .buttons {
position: absolute !important;
bottom: 0;
right: 0;
margin: 0 !important;
display: flex;
gap: 4px;
align-items: center;
}
#magnets-content .item[data-rank] .name {
display: block;
padding-right: 260px;
}
.msf-overlay { .msf-overlay {
position: fixed; position: fixed;
inset: 0; inset: 0;
@@ -12495,12 +12512,12 @@ ${err.stack}` : "");
if ($downloadBtn.length) { if ($downloadBtn.length) {
$downloadBtn.css("margin-right", parseInt($downloadBtn.css("margin-right")) + 3 + "px"); $downloadBtn.css("margin-right", parseInt($downloadBtn.css("margin-right")) + 3 + "px");
} }
$("<button>").text("验车").addClass("button is-info is-small").click(((event) => { $("<button>").text("验车").addClass("button is-small").attr("style", "background-color:#2b6cb0 !important;color:#fff !important;border:none !important;cursor:pointer;border-radius:4px;font-size:12px;padding:2px 8px;").click(((event) => {
event.stopPropagation(); event.stopPropagation();
event.preventDefault(); event.preventDefault();
this.getBean("MagnetHubPlugin").checkWhatslink(magnet); this.getBean("MagnetHubPlugin").checkWhatslink(magnet);
})).appendTo($copyBtn.parent()); })).appendTo($copyBtn.parent());
$("<button>").text("115离线下载").addClass("button is-info is-small").click((async (event) => { $("<button>").text("115离线下载").addClass("button is-small").attr("style", "background-color:#4a90e2 !important;color:#fff !important;border:none !important;cursor:pointer;border-radius:4px;font-size:12px;padding:2px 8px;").click((async (event) => {
event.stopPropagation(); event.stopPropagation();
event.preventDefault(); event.preventDefault();
let loadObj = loading(); let loadObj = loading();
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "jhs-enhance", "name": "jhs-enhance",
"version": "3.3.13", "version": "3.3.14",
"description": "Jav-鉴黄师 油猴脚本 - 工程化版本", "description": "Jav-鉴黄师 油猴脚本 - 工程化版本",
"type": "module", "type": "module",
"scripts": { "scripts": {
+17
View File
@@ -587,6 +587,23 @@ const mainCss = `
color: #f40 !important; color: #f40 !important;
} }
#magnets-content .item[data-rank] {
position: relative !important;
}
#magnets-content .item[data-rank] .buttons {
position: absolute !important;
bottom: 0;
right: 0;
margin: 0 !important;
display: flex;
gap: 4px;
align-items: center;
}
#magnets-content .item[data-rank] .name {
display: block;
padding-right: 260px;
}
.msf-overlay { .msf-overlay {
position: fixed; position: fixed;
inset: 0; inset: 0;
+2 -3
View File
@@ -20,18 +20,17 @@ class WangPan115TaskPlugin extends BasePlugin {
$(".buttons button[data-clipboard-text*='magnet:']").each(((i, el) => { $(".buttons button[data-clipboard-text*='magnet:']").each(((i, el) => {
const $copyBtn = $(el); const $copyBtn = $(el);
const magnet = $copyBtn.attr("data-clipboard-text"); const magnet = $copyBtn.attr("data-clipboard-text");
//对齐按钮间距
$copyBtn.css("margin-right", (parseInt($copyBtn.css("margin-right")) - 4) + "px"); $copyBtn.css("margin-right", (parseInt($copyBtn.css("margin-right")) - 4) + "px");
const $downloadBtn = $copyBtn.siblings("a.button, button").first(); const $downloadBtn = $copyBtn.siblings("a.button, button").first();
if ($downloadBtn.length) { if ($downloadBtn.length) {
$downloadBtn.css("margin-right", (parseInt($downloadBtn.css("margin-right")) + 3) + "px"); $downloadBtn.css("margin-right", (parseInt($downloadBtn.css("margin-right")) + 3) + "px");
} }
$("<button>").text("验车").addClass("button is-info is-small").click((event => { $("<button>").text("验车").addClass("button is-small").attr("style", "background-color:#2b6cb0 !important;color:#fff !important;border:none !important;cursor:pointer;border-radius:4px;font-size:12px;padding:2px 8px;").click((event => {
event.stopPropagation(); event.stopPropagation();
event.preventDefault(); event.preventDefault();
this.getBean("MagnetHubPlugin").checkWhatslink(magnet); this.getBean("MagnetHubPlugin").checkWhatslink(magnet);
})).appendTo($copyBtn.parent()); })).appendTo($copyBtn.parent());
$("<button>").text("115离线下载").addClass("button is-info is-small").click((async event => { $("<button>").text("115离线下载").addClass("button is-small").attr("style", "background-color:#4a90e2 !important;color:#fff !important;border:none !important;cursor:pointer;border-radius:4px;font-size:12px;padding:2px 8px;").click((async event => {
event.stopPropagation(); event.stopPropagation();
event.preventDefault(); event.preventDefault();
let loadObj = loading(); let loadObj = loading();
+1 -1
View File
@@ -8,7 +8,7 @@ export default defineConfig({
userscript: { userscript: {
name: 'JHS-enhance', name: 'JHS-enhance',
namespace: 'JHS-enhance', namespace: 'JHS-enhance',
version: '3.3.13', version: '3.3.14',
author: 'xiebro,fireinrain', author: 'xiebro,fireinrain',
description: 'Jav-鉴黄师 增强脚本。列表页:作品状态标签、一键筛选、新作品检测、演员黑名单过滤;详情页:磁力链接高亮、DMM 多画质预览视频、标题翻译、整合字幕搜索(迅雷+SubTitleCat)并支持 115 直传、多源预览图(javfree/projectjav/javstore)含来源切换;数据:115 网盘目录匹配与多目录选择、云盘备份/恢复、跨 Tab 同步;其他:自动翻页、分类折叠、Top250、以图识图、热门榜单、评论查看、相关清单。支持 JavDB / JavBus / JavSee / SeeJav / FC2 / JavTrailers', description: 'Jav-鉴黄师 增强脚本。列表页:作品状态标签、一键筛选、新作品检测、演员黑名单过滤;详情页:磁力链接高亮、DMM 多画质预览视频、标题翻译、整合字幕搜索(迅雷+SubTitleCat)并支持 115 直传、多源预览图(javfree/projectjav/javstore)含来源切换;数据:115 网盘目录匹配与多目录选择、云盘备份/恢复、跨 Tab 同步;其他:自动翻页、分类折叠、Top250、以图识图、热门榜单、评论查看、相关清单。支持 JavDB / JavBus / JavSee / SeeJav / FC2 / JavTrailers',
license: 'MIT', license: 'MIT',