diff --git a/dist/jhs-enhance.user.js b/dist/jhs-enhance.user.js
index e87f1a9..76de1b5 100644
--- a/dist/jhs-enhance.user.js
+++ b/dist/jhs-enhance.user.js
@@ -11137,44 +11137,50 @@ ${err.stack}` : "");
constructor() {
super(...arguments);
__publicField2(this, "currentEngine", null);
- __publicField2(this, "searchEngines", [{
- name: "U9A9",
- id: "u9a9",
- url: "https://u9a9.com/?type=2&search={keyword}",
- targetPage: "https://u9a9.com/?type=2&search={keyword}",
+ __publicField2(this, "searchEngines", [
+ {
+ name: "Sukebei",
+ id: "Sukebei",
+ url: "https://sukebei.nyaa.si/?f=0&c=0_0&q={keyword}",
+ targetPage: "https://sukebei.nyaa.si/?f=0&c=0_0&q={keyword}",
+ parseHtml: this.parseSukebei
+ },
+ {
+ name: "U9A9",
+ id: "u9a9",
+ url: "https://u9a9.com/?type=2&search={keyword}",
+ targetPage: "https://u9a9.com/?type=2&search={keyword}",
parseHtml: this.parseU9A9
- }, {
- name: "U3C3",
- id: "u3c3",
- url: "https://u3c3.com/?search2={search2}&search={keyword}",
- targetPage: "https://u3c3.com/?search2={search2}&search={keyword}",
- parseHtml: this.parseU3C3,
- dynamicSearch2: true
- }, {
- name: "Sukebei",
- id: "Sukebei",
- url: "https://sukebei.nyaa.si/?f=0&c=0_0&q={keyword}",
- targetPage: "https://sukebei.nyaa.si/?f=0&c=0_0&q={keyword}",
- parseHtml: this.parseSukebei
- }, {
- name: "ØMagnet",
- id: "omag",
- url: "https://xn--mag-zna.net/search?q={keyword}",
- targetPage: "https://xn--mag-zna.net/search?q={keyword}",
- parseHtml: this.parseOmag
- }, {
+ },
+ {
+ name: "U3C3",
+ id: "u3c3",
+ url: "https://u3c3.com/?search={keyword}",
+ targetPage: "https://u3c3.com/?search={keyword}",
+ parseHtml: this.parseU3C3
+ },
+ {
name: "BTSearch",
id: "btsearch",
url: "https://btsearch.love/api/search?keyword={keyword}&limit=10&offset=0&sort=size&sort_type=desc",
targetPage: "https://btsearch.love/search?keyword={keyword}",
parseJson: this.parseBTSearch
- }, {
+ },
+ {
name: "SoKitty",
id: "sokitty",
url: "https://w1.sokitty.me/search?key={keyword}",
targetPage: "https://w1.sokitty.me/search?key={keyword}",
parseHtml: this.parseSokitty
- }]);
+ },
+ {
+ name: "ØMagnet",
+ id: "omag",
+ url: "https://xn--mag-zna.net/search?q={keyword}",
+ targetPage: "https://xn--mag-zna.net/search?q={keyword}",
+ parseHtml: this.parseOmag
+ }
+ ]);
}
getName() {
return "MagnetHubPlugin";
@@ -11224,7 +11230,7 @@ ${err.stack}` : "");
border-bottom: 1px solid #eee;
}
.magnet-sort-select {
- height: 26px;
+ height: 28px;
padding: 2px 20px 2px 6px;
border: 1px solid #ccc;
border-radius: 4px;
@@ -11255,9 +11261,10 @@ ${err.stack}` : "");
font-size: 12px;
text-align: left;
}
- .magnet-table th.col-size { width: 72px; text-align: center; }
+ .magnet-table th.col-name { max-width: 0; }
+ .magnet-table th.col-size { width: 70px; text-align: center; }
.magnet-table th.col-date { width: 90px; text-align: center; }
- .magnet-table th.col-actions { width: 130px; text-align: center; }
+ .magnet-table th.col-actions { width: 180px; text-align: center; }
.magnet-table td {
padding: 8px 6px;
border-bottom: 1px solid #eee;
@@ -11286,6 +11293,7 @@ ${err.stack}` : "");
color: #243b67;
font-weight: 650;
text-decoration: none;
+ line-height: 1;
}
.magnet-name-cell > a:hover {
color: #1d4ed8;
@@ -11299,12 +11307,12 @@ ${err.stack}` : "");
border-radius: 3px;
font-size: 11px;
font-weight: 800;
- line-height: 1.4;
+ line-height: 1;
color: #fff;
}
- .magnet-badge.subtitle { background: #16a34a; }
- .magnet-badge.four-k { background: #2563eb; }
- .magnet-badge.cracked { background: #be123c; }
+ .magnet-badge.mg-subtitle { background: #16a34a; }
+ .magnet-badge.mg-four-k { background: #2563eb; }
+ .magnet-badge.mg-cracked { background: #be123c; }
.magnet-loading {
text-align: center;
padding: 20px;
@@ -11328,7 +11336,7 @@ ${err.stack}` : "");
background-color: #f0f0f0;
color: #555;
border: 1px solid #ddd;
- padding: 3px 8px;
+ padding: 5px 10px;
border-radius: 3px;
cursor: pointer;
font-size: 12px;
@@ -11374,7 +11382,7 @@ ${err.stack}` : "");
.whatslink-overlay {
position: fixed;
inset: 0;
- z-index: 10000040;
+ z-index: 2147483700;
display: flex;
align-items: center;
justify-content: center;
@@ -11532,31 +11540,29 @@ ${err.stack}` : "");
const key = "jhs_magnetHub_selectedEngine";
const savedEngineId = localStorage.getItem(key);
let defaultEngineIndex = 0;
- const $tabBox = $('
');
+ const $tabBox = $('');
this.searchEngines.forEach(((engine, index) => {
const $tab = $(`${engine.name}
`);
if (savedEngineId && engine.id === savedEngineId) {
$tab.addClass("active");
this.currentEngine = engine;
defaultEngineIndex = index;
- } else if (0 === index && !savedEngineId) {
+ } else if (!savedEngineId && engine.id === "Sukebei") {
$tab.addClass("active");
this.currentEngine = engine;
}
$tabBox.append($tab);
}));
- $tabs.append($tabBox);
- $tabs.append(`原网页`);
- $container.append($tabs);
- const $controls = $('');
const sortMode = localStorage.getItem("jhs_magnetSort") || "size";
- const $sortSelect = $(`