Greasy Fork镜像 支持简体中文。

小说阅读器

美化小说网站界面,支持笔趣阁系统的小说网站

  1. // ==UserScript==
  2. // @name 小说阅读器
  3. // @version 0.6
  4. // @description 美化小说网站界面,支持笔趣阁系统的小说网站
  5. // @author Zee Kim
  6. // @match *://*/*.html
  7. // @grant none
  8. // @namespace https://gf.qytechs.cn/users/756252
  9. // ==/UserScript==
  10.  
  11. (function () {
  12. "use strict";
  13. var title = document.querySelector("title").innerHTML;
  14. if(!title.includes("小说")){
  15. return;
  16. }
  17. if (!document.getElementById("content")) {
  18. return;
  19. }
  20. var content = document.querySelector("#content").innerHTML;
  21. document.title = title;
  22. content = content.split("https://www.abcxs.com");
  23. content = content[0].replace(/ /g, "");
  24. document.body.innerHTML = `<style>
  25. :root{
  26. --background:#F8F1E3;
  27. --text:#4F321C;
  28. --active:#e44343;
  29. }
  30. @media (prefers-color-scheme: dark) {
  31. :root{
  32. --background:#111;
  33. --text:#555;
  34. --active:#baae90;
  35. }
  36. }
  37. .xs_title{
  38.  
  39. padding:10px 0px;
  40. font-weight:bold;
  41. font-family:SourceHanSerifCN-Bold,Microsoft JhengHei,STFangsong;
  42. font-size:3.2rem;
  43. line-height:1;
  44. color:var(--active);
  45. }
  46. .xs_title::after{
  47. display:block;
  48. content:"";
  49. width:50px;
  50. height:12px;
  51. border-radius:12px;
  52. background:var(--active);
  53. margin:10px 0;
  54. }
  55.  
  56. </style>
  57. <div class="xs_title">${title}</div>${content}`;
  58. document.body.style.cssText = `
  59. max-width:1200px;
  60. font-family: "STYuanti-SC-Regular","幼圆";
  61. font-size: 2rem;
  62. padding: 6rem;
  63. background:var(--background) ;
  64. color:var(--text);
  65. line-height: 1.5;`;
  66. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址