aliYunPanUnlock.js 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /*************************************
  2. 项目名称:阿里云盘 净化/解锁SVIP
  3. 下载地址:https://t.cn/A6GqTACm
  4. 脚本作者:chxm1023
  5. 使用声明:⚠️仅供参考,🈲转载与售卖!
  6. 使用说明:非一次性解锁,每次解锁需打开脚本
  7. **************************************
  8. [rewrite_local]
  9. ^https?:\/\/(api|member)\.(aliyundrive|alipan)\.com\/(.+\/(users|activity|user\/get)|((business|apps)\/.+\/users|adrive\/.+\/user)) url script-response-body https://raw.githubusercontent.com/rspData/Rewrite/main/alidrive.js
  10. [mitm]
  11. hostname = *.aliyundrive.com, *.alipan.com
  12. *************************************/
  13. var body = $response.body;
  14. var rspData = JSON.parse(body);
  15. const url = $request.url;
  16. const tubiao = '/users/me';
  17. const chatiao = '/users/tools';
  18. const vipa = '/users/vip/info';
  19. const vipb = '/users/me/vip/info';
  20. const get = '/user/get';
  21. const bofang = '/users/feature/list';
  22. const adrive = '/user/getUserCapacityInfo';
  23. const hengtiao = '/users/onboard_list';
  24. const guolv = '/users/home/widgets';
  25. //修改我的-昵称旁边图标
  26. if (url.indexOf(tubiao) != -1) {
  27. body = body.replace(/\"membershipIdentity":".*?"/g, '\"membershipIdentity":"svip"').replace(/\"membershipIcon":".*?"/g, '\"membershipIcon":"https://gw.alicdn.com/imgextra/i3/O1CN01iPKCuZ1urjDgiry5c_!!6000000006091-2-tps-60-60.png"').replace(/\"badges":\[.+\]/g, '\"badges":[ { "code" : "member-shi", "defaultIcon" : "https://gw.alicdn.com/imgextra/i3/O1CN01iPKCuZ1urjDgiry5c_!!6000000006091-2-tps-60-60.png", "iconText" : null, "iconTemplate" : null }]');
  28. }
  29. //去除-我的-插条
  30. if (url.indexOf(chatiao) != -1) {
  31. delete rspData.result.guideInfo;
  32. body = JSON.stringify(rspData);
  33. }
  34. //购买页面的SVIP
  35. if (url.indexOf(vipa) != -1) {
  36. body = body.replace(/\{.+\}/g, '\{ "status" : "normal", "identity" : "svip", "icon" : "https://gw.alicdn.com/imgextra/i3/O1CN01iPKCuZ1urjDgiry5c_!!6000000006091-2-tps-60-60.png", "level" : "8t", "vipList" : [ { "code" : "svip.8t", "promotedAt" : 1691769901, "expire" : 4092599349, "name" : "超级会员" } ], "mediumIcon" : "https://gw.alicdn.com/imgextra/i4/O1CN01Mk916Y1c99aVBrgxM_!!6000000003557-2-tps-222-60.png" }');
  37. }
  38. //我的页面SVIP
  39. if (url.indexOf(vipb) != -1) {
  40. body = body.replace(/\{.+\}/g, '\{ "description" : "有效期至2099-09-09", "titleNotice" : "叮当猫の分享频道", "activityAction" : "smartdrive://webview?url=https%3A%2F%2Fpages.aliyundrive.com%2Fmobile-page%2Fweb%2Fmembership.html%3FdisableNav%3DYES%26renew%3DYES", "rightButtonText" : "SVIP", "activityText" : "解锁部分功能,不完全解锁", "identity" : "svip", "backgroundImage" : "https://gw.alicdn.com/imgextra/i4/O1CN01cwAW0u1GPG2oa6WW7_!!6000000000614-2-tps-654-212.png", "titleImage" : "https://gw.alicdn.com/imgextra/i2/O1CN01snE6rA1pVg95HyRBl_!!6000000005366-2-tps-214-49.png", "backgroudImage" : null }');
  41. }
  42. if (url.indexOf(get) != -1) {
  43. body = body.replace(/\"vip_identity":".*?"/g, '\"vip_identity":"svip"');
  44. }
  45. //播放信息
  46. if (url.indexOf(bofang) != -1) {
  47. body = body.replace(/\"name":".*?"/g, '\"name":"svip"').replace(/\"intercept":\w+/g, '\"intercept":false');
  48. }
  49. if (url.indexOf(adrive) != -1) {
  50. rspData.capacity_level_info = {
  51. "capacity_type": "normal"
  52. };
  53. rspData.user_capacity_limit_details = {
  54. "limit_download": false,
  55. "limit_consume": false
  56. };
  57. body = JSON.stringify(rspData);
  58. }
  59. //净化项目
  60. if ($request.url.indexOf(hengtiao) != -1) {
  61. delete rspData.result; //横条信息
  62. body = JSON.stringify(rspData);
  63. }
  64. if ($request.url.indexOf(guolv) != -1) {
  65. rspData.coreFeatures.items = rspData.coreFeatures.items.filter(item => item.code !== "AI_ASSISTANT"); //图搜
  66. delete rspData.signIn; //登录
  67. delete rspData.banners; //横幅
  68. delete rspData.minorBackup; //设备列表
  69. delete rspData.mainBackup; //备份还原
  70. body = JSON.stringify(rspData);
  71. }
  72. $done({ body });