恢复百度网盘公开分享选项

恢复了百度网盘的公开分享选项

  1. // ==UserScript==
  2. // @name 恢复百度网盘公开分享选项
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description 恢复了百度网盘的公开分享选项
  6. // @author spectop
  7. // @match https://pan.baidu.com/*
  8. // @grant none
  9. // @require http://code.jquery.com/jquery-3.4.1.min.js
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. // Your code here...
  16. $(document.body).bind('DOMNodeInserted', function (e) {
  17. if ($('#share').length > 0) {
  18. console.log('has node share');
  19. if ($(".share-method-line").length === 1) {
  20. $(".share-method-line").parent().append('<div class="share-method-line"><input type="radio" id="share-method-public" name="share-method" value="public" checked=""><span class="icon radio-icon icon-radio-non"></span><label for="share-method-public"><b>公开分享</b><span>任何人访问链接即可查看,下载!</span></label></div>');
  21. }
  22. }
  23. });
  24. })();

QingJ © 2025

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