Open Pikcee opened 12 months ago
@Pikcee Can you explain in depth what these userscripts do and should I use them seperately or is it ok to use in 1 file as you posted, also i did not understand how can we use the ui?
The style is perfect, modified the fonts to use online ones. But I don't know what to do exactly to change the 2 buttons (library and open site)
@Pikcee Can you explain in depth what these userscripts do and should I use them seperately or is it ok to use in 1 file as you posted, also i did not understand how can we use the ui?
you need to install StyleBot or Stylus extensions and paste the contents of the txt file there.
as for the Userscripts they are unrelated to the UI, you'll need a script manager extension to use them (ex: ViolentMonkey or TamperMonkey), I'm sorry for not explaining in more detail I hope someone else would be able to help.
The style is perfect, modified the fonts to use online ones. But I don't know what to do exactly to change the 2 buttons (library and open site)
@Kickunio replace the files in "\webUI\static\js" with this js.zip and you are done.
or if you want to do it yourself:
in the file "\webUI\static\js\2.8953c29e.chunk.js" [918kb] after reformat (to reformat using the source map open the chunk.js file in vscodium, right click "Format Document")
replace this: function(e,t,n){"use strict";var r=n(18);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(19)),a=n(0),i=(0,o.default)((0,a.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"}),"Public");t.default=i}
with this: function(e,t,n){"use strict";var r=n(18);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(19)),a=n(0),i=(0,o.default)((0,a.jsx)("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6m4-3h6v6m-11 5L21 3",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"}),"Public");t.default=i}
replace this: function(e,t,n){"use strict";var r=n(18);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(19)),a=n(0),i=(0,o.default)((0,a.jsx)("path",{d:"m12 21.35-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"}),"Favorite");t.default=i}
with this: function(e,t,n){"use strict";var r=n(18);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(19)),a=n(0),i=(0,o.default)((0,a.jsx)("path",{d:"M20 6 9 17l-5-5",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",class:"feather feather-check icon mr-4"}),"Favorite");t.default=i}
remove the "Open Site" caption in the the other 130kb (main.9b92ea11) file.
Please note that I wrote those for personal use and there weren't intended for public release so please excuse the messy code If someone is interested in organizing this mess and publishing it for others please feel free to use it however you like
(I'm too lazy to take more sc sorry, also about the library and external links icons I had to replace them inside the files, the current icons doesn't look good at all imo (as well as the current theme is incomparable to this imo it's very clear) hopefully the would just change the icons here, the ones I'm using is much better, (from MD)
<svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-hjmalu" focusable="false" viewBox="0 0 24 24" aria-hidden="true" data-testid="PublicIcon"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6m4-3h6v6m-11 5L21 3" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></path></svg>
<svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-hjmalu" focusable="false" viewBox="0 0 24 24" aria-hidden="true" data-testid="1FavoriteIcon"><path d="M20 6 9 17l-5-5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="feather feather-check icon mr-4"></path></svg>
You need to get the font and put it in the media folder or change the url to an online source (just paste in StyleBot) MD-Slate-Theme.txt
Userscripts: Missing Chapters alert:
There are some more scripts (like pulling and appending comments to chapters, linkfiying author/artist) but they are extension (site) specific, I'm not sure if releasing those could pressure those sites so I'll refrain for now, and some other scripts that I'm not sure if others would be interested in, (ex: correcting the page repositioning, pages count in the chapters rows, simple bookmakring for the current possition in the chapter, if you are interested let me know)