Skip to content

Commit 6eed678

Browse files
📦package
1 parent ccda51d commit 6eed678

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

dist/js/content.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4478,7 +4478,7 @@ class PageType {
44784478
const url = window.location.href;
44794479
const pathname = window.location.pathname;
44804480
if (window.location.hostname === 'www.pixiv.net' &&
4481-
['/', '/illustration', '/manga', '/novel', '/en/'].includes(pathname)) {
4481+
['/', '/en/', '/illustration', '/manga', '/novel'].includes(pathname)) {
44824482
return PageName.Home;
44834483
}
44844484
else if ((pathname.startsWith('/artworks') ||
@@ -7333,7 +7333,7 @@ class ShowLargerThumbnails {
73337333
// 在新版首页里,额外查找 推荐作品
73347334
if (['/', '/en/'].includes(window.location.pathname)) {
73357335
const allLi = sectionList[2].querySelectorAll('ul li');
7336-
if (allLi) {
7336+
if (allLi.length > 1) {
73377337
sectionList[2].classList.add('homeRecommendedWorks');
73387338
// 并且需要查找里面的小说作品,然后找到其 li 元素。
73397339
// 这样可以给小说的 li 添加 width:100%,否则小说的宽度就是原本的样子,和大图片的视觉效果不一致

dist/js/content.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ts/PageType.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class PageType {
5858

5959
if (
6060
window.location.hostname === 'www.pixiv.net' &&
61-
['/', '/illustration', '/manga', '/novel', '/en/'].includes(pathname)
61+
['/', '/en/', '/illustration', '/manga', '/novel'].includes(pathname)
6262
) {
6363
return PageName.Home
6464
} else if (

src/ts/ShowLargerThumbnails.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class ShowLargerThumbnails {
9292
// 在新版首页里,额外查找 推荐作品
9393
if (['/', '/en/'].includes(window.location.pathname)) {
9494
const allLi = sectionList[2].querySelectorAll('ul li')
95-
if (allLi) {
95+
if (allLi.length > 1) {
9696
sectionList[2].classList.add('homeRecommendedWorks')
9797

9898
// 并且需要查找里面的小说作品,然后找到其 li 元素。

0 commit comments

Comments
 (0)