123云盘 优化

自用脚本,效果自测,针对非会员用户

  1. // ==UserScript==
  2. // @name 123云盘 优化
  3. // @namespace http://tampermonkey.net/
  4. // @version 20241230
  5. // @description 自用脚本,效果自测,针对非会员用户
  6. // @author Xistorg
  7. // @match *://*.123pan.com/*
  8. // @match *://*.123pan.cn/*
  9. // @match *://*.123684.com/*
  10. // @match *://*.123865.com/*
  11. // @match *://*.123952.com/*
  12. // @run-at document-start
  13. // @license MIT
  14. // @icon https://statics.123pan.com/static-by-custom/favicon.ico
  15. // @grant none
  16. // ==/UserScript==
  17.  
  18. (function() {
  19. 'use strict';
  20. const style = document.createElement('style');
  21. style.type = 'text/css';
  22. style.textContent = `
  23. .activity-box,
  24. .notice-box,
  25. .mfy-main-layout__head,
  26. .sider-member-btn,
  27. .space-icon,
  28. .special-menu-item-container,
  29. .video-vip-btn,
  30. .user-reward-btn,
  31. .btn_reward,
  32. .banner-container-h5,
  33. .banner-container-pc,
  34. .video-new-user-tips,
  35. .equipmentDescription,
  36. .equipmentDescriptionLink,
  37. li[data-menu-id*="-/thirdPartyMount"],
  38. li[data-menu-id*="-/SynchronousSpace/main"],
  39. li[data-menu-id*="-/cps"],
  40. li[data-menu-id*="-/Tools"],
  41. li[data-menu-id*="-/devTools"],
  42. li.ant-menu-submenu .ant-menu-submenu-title,
  43. ul.ant-dropdown-menu.user-menu > li:nth-child(2),
  44. ul.ant-dropdown-menu.user-menu > li:nth-child(3),
  45. ul.ant-dropdown-menu.user-menu > li:nth-child(4),
  46. ul.ant-dropdown-menu.user-menu > li:nth-child(5),
  47. ul.ant-menu.ant-menu-root.ant-menu-inline.ant-menu-light > li:nth-child(6),
  48. li.ant-menu-item[data-menu-id*="-earnings"],
  49. div[style="font-size: 12px; line-height: 36px; margin-left: 20px;"],
  50. div[style="border-radius: 0px 18px 18px 0px; border-left: 0.5px solid rgb(217, 217, 217); min-width: 192px;"],
  51. div.ant-dropdown-trigger.OfflineDownloadBtn,
  52. div.rightInfo > div:nth-child(2),
  53. #xxl
  54. {display: none !important;}
  55. .vip-icon
  56. {visibility: hidden !important;}
  57. .appBottomBtn {
  58. bottom: 0px !important;
  59. }
  60. `;
  61. document.head.appendChild(style);
  62. document.addEventListener('DOMContentLoaded', function() {
  63. const pageTitle = document.title;
  64. const index = pageTitle.indexOf("官方版下载丨");
  65. if (index !== -1) {
  66. document.title = pageTitle.substring(0, index);
  67. }
  68. });
  69. })();