Greasy Fork is available in English.

PanDownload网页版跳转按钮(UI美化版)

百度网盘分享链接页面加个按钮,点击可跳转到 PanDownload 网页版去下载(在“申杰”脚本的基础上进行改进,使得页面更美观)

// ==UserScript==
// @name         PanDownload网页版跳转按钮(UI美化版)
// @namespace https://greasyfork.org/zh-CN/users/111346-browser-durian
// @version      0.0.1
// @description  百度网盘分享链接页面加个按钮,点击可跳转到 PanDownload 网页版去下载(在“申杰”脚本的基础上进行改进,使得页面更美观)
// @author       木木
// @match        *://pan.baidu.com/s/*
// @match        *://pan.baidu.com/share/*
// @match        *://yun.baidu.com/s/*
// ==/UserScript==

(function() {
    'use strict';
    function addDiv(){
        var div = document.createElement("div");
        div.innerHTML = "PD网页版";
        var css = "position:fixed;top:106px;left:440px;z-index:999999999;width:100px;height:30px;line-height:30px;text-align:center;font-size:10px;background:#fff;font-family:Verdana, Arial, '宋体';font-weight:500;color:#09aaff;user-select:none;padding:0px;white-space:nowrap;border-radius:3px;border:0.5px solid #09aaff;cursor:pointer;";
        div.style.cssText = css;
        if(window.self === window.top){ document.body.appendChild(div);}
        div.addEventListener("click",function(){
            let url = window.location.href;
            url = url.replace('baidu.com','baiduwp.com');
            window.open(url, "_blank");});
   }
   addDiv();
})();