Greasy Fork 还支持 简体中文。

Wechat Read better TOC

A userscript that enhance wechat read toc experence.

  1. // ==UserScript==
  2. // @name Wechat Read better TOC
  3. // @description A userscript that enhance wechat read toc experence.
  4. // @version 0.1.0
  5. // @license MIT
  6. // @author bingtsingw
  7. // @namespace https://github.com/bingtsingw
  8. // @match https://weread.qq.com/web/reader/*
  9. // @run-at document-idle
  10. // @grant GM_addStyle
  11. // ==/UserScript==
  12.  
  13. GM_addStyle(`
  14. #routerView {
  15. display: flex;
  16. flex-direction: row-reverse;
  17. }
  18.  
  19. .readerContent {
  20. min-height: 100%;
  21. height: unset;
  22. }
  23.  
  24. .app_content {
  25. width: 100%;
  26. margin-left: 10px;
  27. }
  28.  
  29. .wr_mask {
  30. width: 0;
  31. height: 0;
  32. }
  33.  
  34. .readerCatalog {
  35. display: block !important;
  36. max-height: 100%;
  37. overflow-y: scroll;
  38. left: unset;
  39. top: unset;
  40. bottom: unset;
  41. z-index: unset;
  42. }
  43.  
  44. .readerControls {
  45. margin-left: 618px;
  46. }
  47. `);
  48.  
  49. (() => {
  50. document.getElementsByClassName('readerCatalog')[0].parentElement.style.width = '520px';
  51. })();