Greasy Fork is available in English.

123网盘去广告

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

// ==UserScript==
// @name         123网盘去广告
// @namespace    https://www.123pan.com/
// @version      0.21
// @description  123网盘去广告,并将下载文件按钮移动到底部
// @author       You
// @match        https://www.123pan.com/s/*
// @grant        none
// @run-at       document-start
// ==/UserScript==

document.addEventListener('copy', function(e) {
    // 阻止默认行为
    e.preventDefault();
    // 阻止事件传播
    e.stopPropagation();
});

function addStyle(cssstyle) {
    let styleNode = document.createElement("style");
    styleNode.appendChild(document.createTextNode(cssstyle));
    (document.querySelector("head") || document.documentElement).appendChild(styleNode);
}

let css = `
.appBottomBtn {
    position: fixed !important;
    bottom: 0 !important; 
}

#xxl {
    position: fixed !important;
    top: 1% !important;
    right: 1% !important;
    width: 98% !important;
}

.banner_all_wrap, img[src="https://statics.123pan.com/share-static/dist/static/logo_top.d37b304d.svg"], .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 {
   display: none !important; 
}
`;

addStyle(css);

setTimeout(function() {
    var pageTitle = document.title;
    var index = pageTitle.indexOf("官方版下载丨");
    if (index !== -1) {
        var newTitle = pageTitle.substring(0, index);
        document.title = newTitle;
    }
}, 1000);