Vistopia_Monkey

This userscript does wonderful things

  1. // ==UserScript==
  2. // @name Vistopia_Monkey
  3. // @name:cn 理想猴
  4. // @namespace http://tampermonkey.net/
  5. // @description This userscript does wonderful things
  6. // @description:cn 看理想网页界面自定义
  7. // @author Sherlock-V
  8. // @match https://www.vistopia.com.cn
  9. // @match https://www.vistopia.com.cn/*
  10. // @grant GM_addStyle
  11. // @run-at document-body
  12. // @homepageURL https://github.com/Ziyueqi-V/Vistopia_Monkey
  13. // @supportURL https://github.com/Ziyueqi-V/Vistopia_Monkey
  14. // @license MIT
  15. // @version 0.0.9
  16. // ==/UserScript==
  17. (function () {
  18. 'use strict';
  19.  
  20. // Your code here...
  21. const cssText = `
  22. .page-home,
  23. .page-home .home-content,
  24. .page-article,
  25. .page-detail .detail-content .tabs_wrap,
  26. .page-detail .detail-content .tabs_wrap .el-tabs .el-tabs__header,
  27. .page-detail {
  28. background: #1f1f1f !important;
  29. }
  30.  
  31. .comment-list .item-wrap .articleTitle,
  32. .audioList .part-area ul .li_item {
  33. background: #141414 !important;
  34. }
  35.  
  36. #web-header {
  37. background: #1f1f1f !important;
  38. }
  39.  
  40. .comment_children .child .name {
  41. color: rgba(255, 255, 255, 0.85) !important;
  42. }
  43.  
  44. .page-article .article-content .article {
  45. color: rgba(255, 255, 255, 0.65) !important;
  46. }
  47.  
  48. .comment_children .child .replied {
  49. color: rgba(255, 255, 255, 0.45) !important;
  50. }
  51.  
  52. .page-article .article-content .article.article a {
  53. color: #f0dd71 !important;
  54. }
  55. `;
  56. GM_addStyle(cssText);
  57.  
  58. const style = document.createElement('style')
  59. const hides = [].filter(Boolean)
  60.  
  61. style.innerHTML = [
  62. `${hides.join(',')}{ display: none !important; }`,
  63. ].join('')
  64.  
  65. document.body.appendChild(style)
  66. })();