PanDownload网页版跳转按钮

百度网盘分享链接页面加个按钮,点击可跳转到 PanDownload 网页版去下载

  1. // ==UserScript==
  2. // @name PanDownload网页版跳转按钮
  3. // @namespace https://gf.qytechs.cn/users/30563
  4. // @version 0.0.1
  5. // @description 百度网盘分享链接页面加个按钮,点击可跳转到 PanDownload 网页版去下载
  6. // @author 申杰
  7. // @match *://pan.baidu.com/s/*
  8. // @match *://pan.baidu.com/share/*
  9. // @match *://yun.baidu.com/s/*
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14. function addDiv(){
  15. var div = document.createElement("div");
  16. div.innerHTML = "PanDownload网页版";
  17. div.title="点我可以跳转到PanDownload网页版下载\n有问题QQ联系我:970852638\n 申杰制作";
  18. var css = "position:fixed;top:63px;left:3px;z-index:999999999;width:193px;height:30px;line-height:30px;text-align:center;font-size:18px;font-family:Verdana, Arial, '宋体';font-weight:700;color:#f00;user-select:none;padding:0px;white-space:nowrap;border:3px solid #f00;cursor:pointer;";
  19. div.style.cssText = css;
  20. if(window.self === window.top){ document.body.appendChild(div);}
  21. div.addEventListener("click",function(){
  22. let url = window.location.href;
  23. url = url.replace('baidu.com','baiduwp.com');
  24. window.open(url, "_blank");});
  25. }
  26. addDiv();
  27. })();
  28.  

QingJ © 2025

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