Skip to content

Commit

Permalink
10.6.9
Browse files Browse the repository at this point in the history
  • Loading branch information
green1052 committed Aug 3, 2023
1 parent 4618e7c commit b6bcc3a
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 42 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "betternovelpia",
"version": "10.6.8",
"version": "10.6.9",
"license": "UNLICENSED",
"scripts": {
"build": "webpack --config webpack.prod.js",
Expand Down
3 changes: 1 addition & 2 deletions src/@types/module.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ declare global {
type Config =
"AbsoluteDrag" |
"AutoRecommend" |
"BetterSideView" |
"Bookmark" |
"Bookmark_AutoUse" |
"Bookmark_OneUse" |
Expand Down Expand Up @@ -84,4 +83,4 @@ declare global {

start(): void | Promise<void>;
}
}
}
4 changes: 2 additions & 2 deletions src/module/Bookmark.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ function Bookmark() {
height: "85vh",
overflow: "auto",
fontSize: "15px",
marginLeft: "-10px"
marginLeft: "-30px"
}}>
{
(
Expand Down Expand Up @@ -290,7 +290,7 @@ function Viewer() {
const [bookmarks, setBookmarks] = useState((GM_getValue<Bookmarks>("bookmarks", {})));
const [previousBookmark, setPreviousBookmark] = useState((GM_getValue<PreviousBookmark | undefined>("previousBookmark", undefined)));

const chapter = document.querySelector(NOVEL_EP)?.textContent!.trim() ?? "EP.알 수 없음";
const chapter = $(NOVEL_EP).text().trim() ?? "EP.알 수 없음";
const title = document.title.split("-")[2].trimStart() ?? "알 수 없음";

let scrollTop = -1;
Expand Down
31 changes: 1 addition & 30 deletions src/module/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,6 @@ export default {
label: "회차 클릭 알림 제거",
type: "checkbox",
default: false
},
BetterSideView: {
label: "사이드뷰 개선",
type: "checkbox",
default: false
}
}
},
Expand All @@ -83,7 +78,6 @@ export default {
const hideOnlyEmojiCommentEnable = GM_getValue<boolean>("HideOnlyEmojiComment", false);
const hideOnlyEmojiCommentRemoveEnable = GM_getValue<boolean>("HideOnlyEmojiComment_Remove", false);
const disableNovelAlertEnable = GM_getValue<boolean>("DisableNovelAlert", false);
const betterSideViewEnable = GM_getValue<boolean>("BetterSideView", false);

if (hideAdEnable) {
GM_addStyle(`img[alt="내서재 광고"] { display: none!important; }`);
Expand Down Expand Up @@ -147,7 +141,7 @@ export default {
<>
<br/>
<span style={{color: "#d23a3a", fontSize: "12px"}}>
(PLUS {plusCount}차단1)
(PLUS {plusCount}차단)
</span>
</>
);
Expand Down Expand Up @@ -267,28 +261,5 @@ export default {
}, 1000);
});
}

if (betterSideViewEnable && !/^\/viewer\//.test(location.pathname)) {
window.addEventListener("load", () => {
const div = document.createElement("div");
div.style.display = "none";
div.style.position = "fixed";
div.style.width = "100vw";
div.style.height = "100vh";
div.style.zIndex = "999";
div.onclick = () => {
document.body.classList.remove("show-left");
div.style.display = "none";
};

document.body.prepend(div);

document
.querySelector("span#naviconLeftMobile")!
.addEventListener("click", () =>
div.style.display = document.body.classList.contains("show-left") ? "initial" : "none"
);
});
}
}
} as Module;
2 changes: 1 addition & 1 deletion src/module/ViewNovelToCookie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default {
}
},
async start() {
const blocked = document.querySelector<HTMLElement>(".one-event-viewer-plus");
const blocked = document.querySelector<HTMLElement>("#payment_app");

if (!blocked)
return;
Expand Down
5 changes: 3 additions & 2 deletions src/util/NovelContinueBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ export function NovelContinueBox(props: { url: string, chapter: string, isBookma
width: "100%",
height: "50px",
textAlign: "center",
borderRadius: "25px"
borderRadius: "25px",
marginTop: "5px"
}}
onClick={onClick}
>
Expand All @@ -27,7 +28,7 @@ export function NovelContinueBox(props: { url: string, chapter: string, isBookma
borderRadius: "10px",
fontSize: "11px",
marginRight: "3px"
}}>EP.15
}}>
{props.chapter}
</span>
{props.isBookmark === true ? "북마크" : "이전 소설"} 이어보기
Expand Down
4 changes: 0 additions & 4 deletions src/util/Selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,8 @@ export const NOVEL_DRAWING = "#novel_drawing";

export const NOVEL_BOX = "#novel_box";

export const NOVEL_TITLE = ".menu-top-title";

export const NOVEL_EP = ".menu-top-tag";

export const EP_List = "#episode_list";

//export const NOTICE_LIST = ".ep_style4";

export const FOOTER_BAR = "#footer_bar";

0 comments on commit b6bcc3a

Please sign in to comment.