123网盘去广告

123网盘去广告,并将下载文件按钮移动到底部

  1. // ==UserScript==
  2. // @name 123网盘去广告
  3. // @namespace https://www.123pan.com/
  4. // @version 0.23
  5. // @description 123网盘去广告,并将下载文件按钮移动到底部
  6. // @author 呆呆
  7. // @match https://www.123pan.com/s/*
  8. // @match https://www.123pan.cn/s/*
  9. // @match https://www.123912.com/*
  10. // @match https://www.123865.com/*
  11. // @grant none
  12. // @run-at document-end
  13. // ==/UserScript==
  14.  
  15. document.addEventListener('copy', function(e) {
  16. // 阻止默认行为
  17. e.preventDefault();
  18. // 阻止事件传播
  19. e.stopPropagation();
  20. });
  21.  
  22. function addStyle(cssstyle) {
  23. let styleNode = document.createElement("style");
  24. styleNode.appendChild(document.createTextNode(cssstyle));
  25. (document.querySelector("head") || document.documentElement).appendChild(styleNode);
  26. }
  27.  
  28. let css = `
  29. .appBottomBtn {
  30. position: fixed !important;
  31. bottom: 0 !important;
  32. }
  33.  
  34. #xxl {
  35. position: fixed !important;
  36. top: 1% !important;
  37. right: 1% !important;
  38. width: 98% !important;
  39. }
  40.  
  41. .banner_all_wrap, .pointer, .qrcode_btn, share-time-wrap__operate, img[src="https://statics.123pan.com/share-static/dist/static/H5_logo_top.2b680600.svg"], .loginModal-footer, .download-msg-info, nner-container-h5, .app-header-img, .bg_svip_block_ads, .sharheader_left {
  42. display: none !important;
  43. }
  44. `;
  45.  
  46. addStyle(css);
  47.  
  48. setTimeout(function() {
  49. var pageTitle = document.title;
  50. var index = pageTitle.indexOf("官方版下载丨");
  51. if (index !== -1) {
  52. var newTitle = pageTitle.substring(0, index);
  53. document.title = newTitle;
  54. }
  55. }, 1000);

QingJ © 2025

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