Greasy Fork is available in English.

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

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

// ==UserScript==
// @name         隐藏123云盘广告并调整下载按钮位置
// @version      1.0
// @description  隐藏123云盘页面中的广告,并调整下载按钮的位置,提升用户体验。
// @author       ChatGPT
// @match        https://www.123pan.com/*
// @run-at      document-start
// @grant        none
// @namespace https://greasyfork.org/users/452911
// ==/UserScript==

(function() {
    'use strict';

    // 创建一个新的style元素
    var style = document.createElement('style');

    // 设置style元素的类型
    style.type = 'text/css';

    var css = `.appBottomBtn.banner-bottom {
     bottom: 10px !important; 
    }
    .ant-carousel,.banner-container-h5 {
     display: none !important; 
    }`;

    // 使用textContent属性向style元素中添加CSS文本
    style.textContent = css;

    // 将style元素添加到文档的head部分,使CSS规则生效
    document.head.appendChild(style);
})();