扇贝阅读夜间模式

将扇贝阅读颜色修改为夜间模式

  1. // ==UserScript==
  2. // @name 扇贝阅读夜间模式
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description 将扇贝阅读颜色修改为夜间模式
  6. // @author 津酒奈杰
  7. // @match https://web.shanbay.com/reading/web-news/articles
  8. // @match https://web.shanbay.com/reading/web-news/articles/*
  9. // @icon https://assets0.baydn.com/static/img/shanbay_favicon.png
  10. // @grant none
  11. // @license MIT
  12. // ==/UserScript==
  13.  
  14.  
  15. (function() {
  16. 'use strict';
  17. window.onload = function() {
  18. // Your plugin code here
  19. // ...
  20. // Your code here...
  21. const style = document.createElement('style');
  22. style.innerHTML = `
  23. .article-body .article-content {
  24. color: #cecece;
  25. }
  26. .sideBar li .hot-news-title,
  27. h2,
  28. h3,
  29. .news li .news-title,
  30. .news li .news-summary,
  31. .weekly-pop-news-title{
  32. color: #cecece;
  33. }
  34. span.word.word-bold{
  35. font-weight: bold;
  36. color: #209e85
  37. }
  38. .app-container {
  39. background-color: #1c1c1c;
  40. }
  41. .app-main {
  42. background-color: #1c1c1c;
  43. }
  44. `;
  45. document.head.appendChild(style);
  46. };
  47.  
  48. })();

QingJ © 2025

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