神百目录优化

神奇宝贝百科样式优化

  1. // ==UserScript==
  2. // @name 神百目录优化
  3. // @namespace Violentmonkey Scripts
  4. // @match https://wiki.52poke.com/*
  5. // @grant GM_addStyle
  6. // @version 0.0.2
  7. // @author LinHQ
  8. // @description 神奇宝贝百科样式优化
  9. // @license GPLv2
  10. // ==/UserScript==
  11.  
  12.  
  13.  
  14. (()=>{
  15. const ijstyle = `
  16. thead {
  17. position: sticky;
  18. top: 0;
  19. margin: -1px;
  20. background: rgba(255 255 255 / .6);
  21. backdrop-filter: blur(4px);
  22. }
  23.  
  24. div#content {
  25. position: relative;
  26. z-index: 10;
  27. }
  28. div#toc {
  29. position: fixed;
  30. top: 0;
  31. left: 0;
  32. background: rgb(255 255 255 / 48%);
  33. box-shadow: #777777 2px 1px 6px 0px;
  34. width: 13em;
  35. backdrop-filter: blur(4px);
  36. }
  37. div#toc>ul {
  38. max-height: calc(100vh - 35px);
  39. overflow: auto;
  40. }
  41. div#toc .toclevel-4:nth-of-type(2n) a{
  42. color: #99bbff!important;
  43. }
  44. div#toc>ul::-webkit-scrollbar {
  45. display: none;
  46. }
  47. `
  48. GM_addStyle(ijstyle)
  49. })()

QingJ © 2025

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