隐藏123云盘广告并调整下载按钮位置

隐藏123云盘页面中的广告,并调整下载按钮的位置,提升用户体验。

  1. // ==UserScript==
  2. // @name 隐藏123云盘广告并调整下载按钮位置
  3. // @version 1.2
  4. // @description 隐藏123云盘页面中的广告,并调整下载按钮的位置,提升用户体验。
  5. // @author ChatGPT
  6. // @match https://www.123pan.com/*
  7. // @match https://www.123pan.cn/*
  8. // @match https://www.123865.com/*
  9. // @match https://www.123684.com/*
  10. // @run-at document-start
  11. // @grant none
  12. // @namespace https://gf.qytechs.cn/users/452911
  13. // ==/UserScript==
  14.  
  15. (function() {
  16. 'use strict';
  17.  
  18. // 创建一个新的style元素
  19. var style = document.createElement('style');
  20.  
  21. // 设置style元素的类型
  22. style.type = 'text/css';
  23.  
  24. var css = `.appBottomBtn.banner-bottom {
  25. bottom: 0 !important;
  26. }
  27. .ant-carousel,.banner-container-h5 {
  28. display: none !important;
  29. }`;
  30.  
  31. // 使用textContent属性向style元素中添加CSS文本
  32. style.textContent = css;
  33.  
  34. // 将style元素添加到文档的head部分,使CSS规则生效
  35. document.head.appendChild(style);
  36. })();

QingJ © 2025

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