吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 5220|回复: 133
上一主题 下一主题
收起左侧

[其他原创] 【油猴脚本】百度网盘PC端高清倍数播放

    [复制链接]
跳转到指定楼层
楼主
xiyezhu 发表于 2026-3-11 14:50 回帖奖励
本帖最后由 苏紫方璇 于 2026-3-16 01:07 编辑

本帖子能让PC端百度网盘用下方2个功能1.倍数播放2.选择画质安装使用步骤:注意:1.【Windows 电脑忽视此条】苹果电脑需先打开安装权限,点以下链接查看如何打开:https://jingyan.baidu.com/article/4e5b3e19edfb1b91901e241e.html2.所有操作都在edge浏览器操作步骤一:安装 Microsoft Edge 浏览器百度搜索 edge浏览器下载 官网进行下载,部分 WIN 电脑自带则无需再安装;注意:如果插件使用有问题,卸载原有 edge 浏览器,官网下载最新版本; 步骤二:扩展 和 脚本 安装1.倍速 1.1倍速 扩展安装打开edge浏览器 点扩展图标,再点【获取Microsoft Edge 拓展】,然后搜索【Global Speed】,点【获取】; 1.2 百度搜索【百度网盘】,登录自己账号,打开视频,倍速在插件上调,搞定! 2.高清画质2.1高清画质 扩展安装(与倍速扩展安装方法一样打开edge浏览器 点扩展图标,再点【获取Microsoft Edge 拓展】,然后搜索【篡改猴】(不是【篡改猴测试版】),点【获取】; 2.2高清脚本添加点扩展图标,再鼠标左键点【篡改猴】,然后点【添加新脚本】,最后删除里面原有的代码,把高清脚本复制粘贴进去,点【文件】-【保存】,显示【已启用】就ok了;
// ==UserScript==
// @name        百度网盘Svip会员破解青春版
// @namespace   http://tampermonkey.net/
// @match       https://pan.baidu.com/
// @match       https://pan.baidu.com/*
// @grant       unsafeWindow
// @run-at      document-start
// @version     1.2
// @license     MIT
// @author      Gwen
// @downloadUrl https://greasyfork.org/scripts/469774-%E7%99%BE%E5%BA%A6%E7%BD%91%E7%9B%98svip%E4%BC%9A%E5%91%98%E7%A0%B4%E8%A7%A3%E9%9D%92%E6%98%A5%E7%89%88/code/%E7%99%BE%E5%BA%A6%E7%BD%91%E7%9B%98Svip%E4%BC%9A%E5%91%98%E7%A0%B4%E8%A7%A3%E9%9D%92%E6%98%A5%E7%89%88.user.js
// @homepageUrl https://greasyfork.org/zh-CN/scripts/469774-%E7%99%BE%E5%BA%A6%E7%BD%91%E7%9B%98svip%E4%BC%9A%E5%91%98%E7%A0%B4%E8%A7%A3%E9%9D%92%E6%98%A5%E7%89%88
// @description 修改所有可改的身份信息,修改成超级会员身份,可以使用网站自带的倍速、字幕等功能。
// @downloadURL https://update.greasyfork.org/scripts/469774/%E7%99%BE%E5%BA%A6%E7%BD%91%E7%9B%98Svip%E4%BC%9A%E5%91%98%E7%A0%B4%E8%A7%A3%E9%9D%92%E6%98%A5%E7%89%88.user.js
// @updateURL https://update.greasyfork.org/scripts/469774/%E7%99%BE%E5%BA%A6%E7%BD%91%E7%9B%98Svip%E4%BC%9A%E5%91%98%E7%A0%B4%E8%A7%A3%E9%9D%92%E6%98%A5%E7%89%88.meta.js
// ==/UserScript==

(function() {
  'use strict';

  var store = {
    path: null,
    adToken: null,
    bdstoken: null,
    resolutionPattern: /M3U8_AUTO_([0-9]+?)&/,
  }
  store.path = new URLSearchParams(new URL(location.href).search).get('path');

  function hookRequest() {
      var originOpen = XMLHttpRequest.prototype.open;
      XMLHttpRequest.prototype.open = function (method, url) {
        if (url.indexOf('/api/loginStatus') != -1) {
          this.addEventListener('readystatechange', function() {
            if (this.readyState == 4) {
              let res = JSON.parse(this.responseText)
              res.login_info.vip_type = '21'
              res.login_info.vip_identity = '21'
              res.login_info.vip_level =  8
              res.login_info.vip_point = 99999
              res.login_info.username = 'GwenCrackヾ(-_-;)'
              store.bdstoken = res.login_info.bdstoken
              Object.defineProperty(this, "responseText", {
                  writable: true,
              });
              this.responseText = JSON.stringify(res)
            }
          })
          originOpen.apply(this, arguments);
        } else if (url.indexOf('/user/info') != -1) {
          this.addEventListener('readystatechange', function() {
            if (this.readyState == 4) {
              let res = JSON.parse(this.responseText)
              res.user_info.is_vip = 1
              res.user_info.is_svip = 1
              res.user_info.is_plus_buy =        1
              Object.defineProperty(this, "responseText", {
                  writable: true,
              });
              this.responseText = JSON.stringify(res)
            }
          })
          originOpen.apply(this, arguments);
        } else if (url.indexOf('/membership/user') != -1) {
          this.addEventListener('readystatechange', function() {
            if (this.readyState == 4) {
              let res = JSON.parse(this.responseText)
              res.reminder = {
                "svip": {
                  "leftseconds": 9999999999,
                  "nextState": "normal"
                }
              }
              res.level_info = {
                "current_value": 12090,
                "current_level": 10,
                "history_value": 11830,
                "history_level": 10,
                "v10_id": "666666",
                "last_manual_collection_time": 0
              }
              res.product_infos = [{
                "product_id": "",
                "start_time": 1685635199,
                "end_time": 1888227199,
                "buy_time": 0,
                "cluster": "vip",
                "detail_cluster": "svip",
                "auto_upgrade_to_svip": 0,
                "product_name": "svip2_nd",
                "status": 0,
                "function_num": 0,
                "buy_description": "",
                "product_description": "",
                "cur_svip_type": "month"
              }]
              res.current_product = {
                "cluster": "vip",
                "detail_cluster": "svip",
                "product_type": "vip2_1m_auto",
                "product_id": "12187135090581539740"
              }
              res.current_product_v2 = {
                "cluster": "vip",
                "detail_cluster": "svip",
                "product_type": "vip2_1m_auto",
                "product_id": "12187135090581539740"
              }
              Object.defineProperty(this, "responseText", {
                  writable: true,
              });
              this.responseText = JSON.stringify(res)
            }
          })
          originOpen.apply(this, arguments);
        } else if (url.indexOf('/api/streaming') != -1 && url.indexOf('M3U8_SUBTITLE_SRT') == -1) { //获取视频m3u8接口
          let modifiedUrl = url.replace(/vip=2/, 'vip=0')
                  .replace(/_1080&/, '_720&')
          if (store.adToken) {
            modifiedUrl += ('&adToken=' + encodeURIComponent(store.adToken))
            this.adToken = store.adToken
            store.adToken = null
            originOpen.call(this, method, modifiedUrl, false);
            return
          }
          originOpen.call(this, method, modifiedUrl);
          this.addEventListener('readystatechange', function() {
            if (this.readyState == 4) {
              if (this.responseText[0] == '{') {
                let res = JSON.parse(this.responseText)
                store.adToken = res.adToken
                let manualRequest = new XMLHttpRequest();
                // let manualUrl = `https://pan.baidu.com/api/streaming?app_id=250528&clienttype=0&channel=chunlei&web=1&isplayer=1&check_blue=1&type=M3U8_AUTO_${store.resolutionPattern.exec(url)[1]}&trans=&vip=0` +
                //           `&bdstoken=${store.bdstoken||unsafeWindow.locals.bdstoken}&path=${store.path}&jsToken=${unsafeWindow.jsToken}`
                let manualUrl = modifiedUrl
                console.log(manualUrl)
                manualRequest.open(method, manualUrl, false);
                manualRequest.send();
                Object.defineProperty(this, "status", {
                  writable: true,
                });
                this.status = manualRequest.status;
                Object.defineProperty(this, "responseText", {
                  writable: true,
                });
                this.responseText = manualRequest.responseText;
              }
            }
          })
        } else if (url.indexOf('/msg/streaming') != -1) {
          this.addEventListener('readystatechange', function() {
            if (this.readyState == 4) {
              if (this.responseText[0] != '{')
                return
              let res = JSON.parse(this.responseText)
              res.ltime = 0.000001
              res.adTime = 0.000001
              console.log(res)
              Object.defineProperty(this, 'responseText', {
                writable: true,
              })
              this.responseText = JSON.stringify(res)
            }
          })
          originOpen.apply(this, arguments);
        }
        else {
          originOpen.apply(this, arguments);
        }
      }
    }

  hookRequest()
  let localsTimer = setInterval(() => {
    if (!unsafeWindow.locals) return
    clearInterval(localsTimer)
    console.log('设置window.locas', unsafeWindow.locals)
    let originalSet = unsafeWindow.locals.set
    unsafeWindow.locals.set = function(n, t) {
      console.log('%c[hook]' + n + ': ' + t, 'color:blue;')
      if (['is_vip', 'is_svip'].indexOf(n) != -1) {
        t = 1
      } else if (n == 'vip_level') {
        t = 10
      } else if (n == 'v10_id') {
        t = '666666'
      }
      console.log(arguments)
      originalSet.apply(this, [n, t])
    }
    if (unsafeWindow.locals.userInfo) {
      unsafeWindow.locals.userInfo.vip_level = 8
      unsafeWindow.locals.userInfo.vip_identity = 21
      unsafeWindow.locals.userInfo.username = "GwenCrackヾ(-_-;)"
    } else if(unsafeWindow.locals.mset) {
      unsafeWindow.locals.mset({
        'is_vip': 1,
        'is_svip': 1,
        'vip_level': 8,
        'show_vip_ad': 0
      })
    } else {
      unsafeWindow.locals.vip_level = 8
      unsafeWindow.locals.is_vip = 1
      unsafeWindow.locals.is_svip = 1
      unsafeWindow.locals.is_evip = 0
      unsafeWindow.locals.show_vip_ad = 0
    }
  }, 10)

})()

2.3百度搜索【百度网盘】,登录自己账号,打开视频,画质直接选,搞定!

免费评分

参与人数 24吾爱币 +29 热心值 +20 收起 理由
aini1133 + 1 + 1 用心讨论,共获提升!
JesseJay666 + 1 + 1 我很赞同!
lyf20050613 + 1 谢谢@Thanks!
popo0901 + 1 + 1 我很赞同!
zhangsanxing + 1 用心讨论,共获提升!
a5228172 + 1 + 1 谢谢@Thanks!
leecon + 1 我很赞同!
xaegis + 1 + 1 谢谢@Thanks!
sgvv + 1 我很赞同!
渝A·666666 + 1 + 1 谢谢@Thanks!
yiqiyihui2212 + 2 + 1 谢谢@Thanks!
point369 + 1 + 1 我很赞同!
Buddha0507 + 1 + 1 谢谢@Thanks!
苏紫方璇 + 7 + 1 欢迎分析讨论交流,吾爱破解论坛有你更精彩!
xckouy + 1 我很赞同!
Snxiolng + 1 + 1 谢谢@Thanks!
ICpeasantUM + 1 我很赞同!
sxf125 + 1 + 1 用心讨论,共获提升!
cowzai + 1 + 1 我很赞同!
Guardian09 + 1 + 1 谢谢@Thanks!
xlln + 1 + 1 我很赞同!
yanglinman + 1 + 1 谢谢@Thanks!
cwwloveyu + 1 + 1 我很赞同!
davidyxwj + 1 + 1 谢谢@Thanks!

查看全部评分

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

推荐
 楼主| xiyezhu 发表于 2026-3-11 14:53 |楼主
// ==UserScript==
// @name        百度网盘Svip会员破解青春版
// @namespace   http://tampermonkey.net/
// @match       https://pan.baidu.com/
// @match       https://pan.baidu.com/*
// @grant       unsafeWindow
// @run-at      document-start
// @version     1.2
// @license     MIT
// @author      Gwen
// @downloadUrl https://greasyfork.org/scripts/469774-%E7%99%BE%E5%BA%A6%E7%BD%91%E7%9B%98svip%E4%BC%9A%E5%91%98%E7%A0%B4%E8%A7%A3%E9%9D%92%E6%98%A5%E7%89%88/code/%E7%99%BE%E5%BA%A6%E7%BD%91%E7%9B%98Svip%E4%BC%9A%E5%91%98%E7%A0%B4%E8%A7%A3%E9%9D%92%E6%98%A5%E7%89%88.user.js
// @homepageUrl https://greasyfork.org/zh-CN/scripts/469774-%E7%99%BE%E5%BA%A6%E7%BD%91%E7%9B%98svip%E4%BC%9A%E5%91%98%E7%A0%B4%E8%A7%A3%E9%9D%92%E6%98%A5%E7%89%88
// @description 修改所有可改的身份信息,修改成超级会员身份,可以使用网站自带的倍速、字幕等功能。
// @downloadURL https://update.greasyfork.org/scripts/469774/%E7%99%BE%E5%BA%A6%E7%BD%91%E7%9B%98Svip%E4%BC%9A%E5%91%98%E7%A0%B4%E8%A7%A3%E9%9D%92%E6%98%A5%E7%89%88.user.js
// @updateURL https://update.greasyfork.org/scripts/469774/%E7%99%BE%E5%BA%A6%E7%BD%91%E7%9B%98Svip%E4%BC%9A%E5%91%98%E7%A0%B4%E8%A7%A3%E9%9D%92%E6%98%A5%E7%89%88.meta.js
// ==/UserScript==

(function() {
  'use strict';

  var store = {
    path: null,
    adToken: null,
    bdstoken: null,
    resolutionPattern: /M3U8_AUTO_([0-9]+?)&/,
  }
  store.path = new URLSearchParams(new URL(location.href).search).get('path');

  function hookRequest() {
      var originOpen = XMLHttpRequest.prototype.open;
      XMLHttpRequest.prototype.open = function (method, url) {
        if (url.indexOf('/api/loginStatus') != -1) {
          this.addEventListener('readystatechange', function() {
            if (this.readyState == 4) {
              let res = JSON.parse(this.responseText)
              res.login_info.vip_type = '21'
              res.login_info.vip_identity = '21'
              res.login_info.vip_level =  8
              res.login_info.vip_point = 99999
              res.login_info.username = 'GwenCrackヾ(-_-;)'
              store.bdstoken = res.login_info.bdstoken
              Object.defineProperty(this, "responseText", {
                  writable: true,
              });
              this.responseText = JSON.stringify(res)
            }
          })
          originOpen.apply(this, arguments);
        } else if (url.indexOf('/user/info') != -1) {
          this.addEventListener('readystatechange', function() {
            if (this.readyState == 4) {
              let res = JSON.parse(this.responseText)
              res.user_info.is_vip = 1
              res.user_info.is_svip = 1
              res.user_info.is_plus_buy =        1
              Object.defineProperty(this, "responseText", {
                  writable: true,
              });
              this.responseText = JSON.stringify(res)
            }
          })
          originOpen.apply(this, arguments);
        } else if (url.indexOf('/membership/user') != -1) {
          this.addEventListener('readystatechange', function() {
            if (this.readyState == 4) {
              let res = JSON.parse(this.responseText)
              res.reminder = {
                "svip": {
                  "leftseconds": 9999999999,
                  "nextState": "normal"
                }
              }
              res.level_info = {
                "current_value": 12090,
                "current_level": 10,
                "history_value": 11830,
                "history_level": 10,
                "v10_id": "666666",
                "last_manual_collection_time": 0
              }
              res.product_infos = [{
                "product_id": "",
                "start_time": 1685635199,
                "end_time": 1888227199,
                "buy_time": 0,
                "cluster": "vip",
                "detail_cluster": "svip",
                "auto_upgrade_to_svip": 0,
                "product_name": "svip2_nd",
                "status": 0,
                "function_num": 0,
                "buy_description": "",
                "product_description": "",
                "cur_svip_type": "month"
              }]
              res.current_product = {
                "cluster": "vip",
                "detail_cluster": "svip",
                "product_type": "vip2_1m_auto",
                "product_id": "12187135090581539740"
              }
              res.current_product_v2 = {
                "cluster": "vip",
                "detail_cluster": "svip",
                "product_type": "vip2_1m_auto",
                "product_id": "12187135090581539740"
              }
              Object.defineProperty(this, "responseText", {
                  writable: true,
              });
              this.responseText = JSON.stringify(res)
            }
          })
          originOpen.apply(this, arguments);
        } else if (url.indexOf('/api/streaming') != -1 && url.indexOf('M3U8_SUBTITLE_SRT') == -1) { //获取视频m3u8接口
          let modifiedUrl = url.replace(/vip=2/, 'vip=0')
                  .replace(/_1080&/, '_720&')
          if (store.adToken) {
            modifiedUrl += ('&adToken=' + encodeURIComponent(store.adToken))
            this.adToken = store.adToken
            store.adToken = null
            originOpen.call(this, method, modifiedUrl, false);
            return
          }
          originOpen.call(this, method, modifiedUrl);
          this.addEventListener('readystatechange', function() {
            if (this.readyState == 4) {
              if (this.responseText[0] == '{') {
                let res = JSON.parse(this.responseText)
                store.adToken = res.adToken
                let manualRequest = new XMLHttpRequest();
                // let manualUrl = `https://pan.baidu.com/api/streaming?app_id=250528&clienttype=0&channel=chunlei&web=1&isplayer=1&check_blue=1&type=M3U8_AUTO_${store.resolutionPattern.exec(url)[1]}&trans=&vip=0` +
                //           `&bdstoken=${store.bdstoken||unsafeWindow.locals.bdstoken}&path=${store.path}&jsToken=${unsafeWindow.jsToken}`
                let manualUrl = modifiedUrl
                console.log(manualUrl)
                manualRequest.open(method, manualUrl, false);
                manualRequest.send();
                Object.defineProperty(this, "status", {
                  writable: true,
                });
                this.status = manualRequest.status;
                Object.defineProperty(this, "responseText", {
                  writable: true,
                });
                this.responseText = manualRequest.responseText;
              }
            }
          })
        } else if (url.indexOf('/msg/streaming') != -1) {
          this.addEventListener('readystatechange', function() {
            if (this.readyState == 4) {
              if (this.responseText[0] != '{')
                return
              let res = JSON.parse(this.responseText)
              res.ltime = 0.000001
              res.adTime = 0.000001
              console.log(res)
              Object.defineProperty(this, 'responseText', {
                writable: true,
              })
              this.responseText = JSON.stringify(res)
            }
          })
          originOpen.apply(this, arguments);
        }
        else {
          originOpen.apply(this, arguments);
        }
      }
    }

  hookRequest()
  let localsTimer = setInterval(() => {
    if (!unsafeWindow.locals) return
    clearInterval(localsTimer)
    console.log('设置window.locas', unsafeWindow.locals)
    let originalSet = unsafeWindow.locals.set
    unsafeWindow.locals.set = function(n, t) {
      console.log('%c[hook]' + n + ': ' + t, 'color:blue;')
      if (['is_vip', 'is_svip'].indexOf(n) != -1) {
        t = 1
      } else if (n == 'vip_level') {
        t = 10
      } else if (n == 'v10_id') {
        t = '666666'
      }
      console.log(arguments)
      originalSet.apply(this, [n, t])
    }
    if (unsafeWindow.locals.userInfo) {
      unsafeWindow.locals.userInfo.vip_level = 8
      unsafeWindow.locals.userInfo.vip_identity = 21
      unsafeWindow.locals.userInfo.username = "GwenCrackヾ(-_-;)"
    } else if(unsafeWindow.locals.mset) {
      unsafeWindow.locals.mset({
        'is_vip': 1,
        'is_svip': 1,
        'vip_level': 8,
        'show_vip_ad': 0
      })
    } else {
      unsafeWindow.locals.vip_level = 8
      unsafeWindow.locals.is_vip = 1
      unsafeWindow.locals.is_svip = 1
      unsafeWindow.locals.is_evip = 0
      unsafeWindow.locals.show_vip_ad = 0
    }
  }, 10)

})()

免费评分

参与人数 3吾爱币 +4 热心值 +2 收起 理由
TaoyaoX + 1 谢谢@Thanks!
cksincerely + 2 + 1 谢谢@Thanks!
af8889 + 1 + 1 实测,360极速浏览器,安装上扩展Global Speed,也一样有效,

查看全部评分

推荐
 楼主| xiyezhu 发表于 2026-3-11 14:58 |楼主
推荐
af8889 发表于 2026-3-11 19:03
实测,360极速浏览器,安装上扩展Global Speed,也一样有效,
推荐
haitun2023 发表于 2026-3-11 19:55
xiyezhu 发表于 2026-3-11 14:53
// ==UserScript==
// @name        百度网盘Svip会员破解青春版
// @namespace   http://tampermonkey.n ...

我安装脚本了,怎么不能选高清画质
推荐
wbgzc 发表于 2026-3-11 18:02
好喜欢,看看我是否能学会
推荐
jieligg 发表于 2026-3-11 18:41
是自己账号的对吧,那应该安全的
8#
zyj2025 发表于 2026-3-11 18:26
xiyezhu 发表于 2026-3-11 14:53
// ==UserScript==
// @name        百度网盘Svip会员破解青春版
// @namespace   http://tampermonkey.n ...

这个格式整理的好
9#
softwkl 发表于 2026-3-11 19:55
出现以下提示:视频播放失败,请稍后重试~
(错误码 7200004)
10#
qhdzft2024 发表于 2026-3-11 20:32
这个是相当不错
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - 52pojie.cn ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2026-4-29 03:24

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表