From b8d967ffa720d5fb6f7891f629acb29759b6a889 Mon Sep 17 00:00:00 2001 From: green1052 Date: Sun, 23 Jun 2024 03:14:29 +0900 Subject: [PATCH] 10.7.4 --- package.json | 2 +- src/header.json | 1 - src/module/Bookmark.tsx | 16 ++++++++-------- src/module/Layout.tsx | 3 +++ tsconfig.json | 2 +- 5 files changed, 13 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index fb93cab..ca4b58c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "betternovelpia", - "version": "10.7.3", + "version": "10.7.4", "scripts": { "preinstall": "npx only-allow pnpm", "build": "webpack --config webpack.prod.js", diff --git a/src/header.json b/src/header.json index 50605af..79dd7f2 100644 --- a/src/header.json +++ b/src/header.json @@ -20,5 +20,4 @@ "supportURL": "https://github.com/green1052/betternovelpia/issues", "downloadURL": "https://github.com/green1052/betternovelpia/releases/latest/download/betternovelpia.user.js", "updateURL": "https://github.com/green1052/betternovelpia/releases/latest/download/betternovelpia.meta.js" - } \ No newline at end of file diff --git a/src/module/Bookmark.tsx b/src/module/Bookmark.tsx index dd68bcd..de76fc0 100644 --- a/src/module/Bookmark.tsx +++ b/src/module/Bookmark.tsx @@ -143,9 +143,9 @@ function Bookmark() { height: 100vh; ${hide && css`display: none;`}; ${isDarkMode() - ? css`background-color: #000; + ? css`background-color: #000; color: white;` - : css`background-color: white;`}; + : css`background-color: white;`}; `; return ( @@ -393,12 +393,12 @@ function Viewer() { const BookmarkIcon = styled.i` color: ${bookmarks.hasOwnProperty(location.href) - ? isDarkMode() - ? "rgb(117, 242, 70)" - : "rgb(160, 73, 180)" - : isDarkMode() - ? "#ffffff7a" - : "#0000007a"}; + ? isDarkMode() + ? "rgb(117, 242, 70)" + : "rgb(160, 73, 180)" + : isDarkMode() + ? "#ffffff7a" + : "#0000007a"}; `; return ; diff --git a/src/module/Layout.tsx b/src/module/Layout.tsx index db2d8a4..4383937 100644 --- a/src/module/Layout.tsx +++ b/src/module/Layout.tsx @@ -94,6 +94,9 @@ export default { GM_addStyle(".novel_banner { display: none!important; }"); GM_addStyle(`img[alt="자유연재 광고"] { display: none!important; }`); GM_addStyle(".calc-event-wrapper { display: none!important; }"); + + GM_addStyle("#sub_sale_modal_v2 { display: none!important; }"); + GM_addStyle(".comic-banner-wrap { display: none!important; }"); } // if (hideEventEnable && /^\/freestory$/.test(location.pathname)) { diff --git a/tsconfig.json b/tsconfig.json index dc81d87..6503b1f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,7 +13,7 @@ /* Language and Environment */ "target": "esnext", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ - // "jsx": "preserve", /* Specify what JSX code is generated. */ + "jsx": "react", /* Specify what JSX code is generated. */ // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */ // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */ // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */