-
Notifications
You must be signed in to change notification settings - Fork 113
/
Copy path(改)百度网盘会员青春版.user.js
799 lines (759 loc) · 38.2 KB
/
(改)百度网盘会员青春版.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
// ==UserScript==
// @name (改)百度网盘会员青春版
// @author Hmjz100、Gwen
// @namespace github.com/hmjz100
// @version 1.2.6
// @description 《也许同类型中最好用?》系列 - 显示百度网盘身份信息为会员,支持使用视频倍速、生成字幕、下载AI字幕、关闭AI聊天、修改头像、修改用户名等功能,自定义程度超高!需要修改头部代码来配置显示内容(非常简单!)
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA1bSURBVHgB7VoJcFXVGf5PgkISkhcIL2GRzAMrKBYFtCjEDjyjw4DRGr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19NwM4ugB6UHgVMBU16qOA2AiTv/lSWdhDiIM0/jMm5PQVmpl5fiLw9C5ZKp2vpjghKySnAlW9QkPnrt39GmvxTDChdmhFgX0He3AL4L0iPsHRbgv/yehbpifP/9s13nliyAD94QFyAFCzEsjlF8P8s9G8uyOaBXumVXumVXrmw/AdT224dpRDt7wAAAABJRU5ErkJggg==
// @license MIT
// @match *://pan.baidu.com/*
// @match *://yun.baidu.com/*
// @grant GM_addStyle
// @grant GM_openInTab
// @grant unsafeWindow
// @run-at document-start
// @require https://unpkg.com/[email protected]/dist/jquery.min.js
// ==/UserScript==
(function () {
'use strict';
var user = {
// 以下设置项中,常规项目(就是以//开头注释的项目)除非特殊说明,否则一般 0 为关闭,1 为开启
vip: 1, // 开启会员修改(总开关)
svip: 1, // 显示为超级会员,建议 1
previous: 0, // 显示为会员过期,建议 0,变为仅修改历史最高的会员类型、等级
// 以下是自定义项目(以/*开头注释的项目),修改也非常简单
/*
自定义用户名与头像,留空则使用已登录账号数据
*/
name: "百湿不得其解",
photo: "https://bkimg.cdn.bcebos.com/pic/cdbf6c81800a19d8bc3e5cfd95ab958ba61ea9d3e8b3",
/*
会员等级与成长值,可留空为""
普通会员等级最高为 10 (以前是 8)
超级会员等级最高为 10
超级会员 1~10 的成长值分别为 0 1000 3000 7000 15000 27000 43000 56000 88000 152000,后两个值为猜测
*/
level: 10,
point: 152000,
/*
自定义会员ID,留空则使用已登录账号数据
据网上观察应为六位数,现在亦可输入文本
*/
vip_id: "000001 - What's your problem?",
/*
会员过期时间 格式为Unix时间戳,可留空为""
1562118175 - 2019-07-03 09:42:55 (宏彦获水时)
2147483648 - 2038-01-19 11:14:08 (2038问题时)
253402185600 - 9999-12-31 00:00:00 (终极时)
*/
endtime: 253402185600,
// 以下的常规项目(就是以//开头注释的项目)均为独立功能,不受总开关控制
aiChat: 0, // 显示云一朵 AI 聊天的相关功能,建议 0,相关功能大多数都是在右上角的 AI 聊天的右侧边栏入口中
aiCollect: 0, // 显示百度网盘 AI 看的相关入口,建议 0,作用于左侧边栏
versionSwitchButton: 1, // 显示百度网盘的新旧版界面切换按钮,建议 1
feedbackButton: 0, // 显示百度网盘的反馈录屏工具的相关入口,建议 0
pfileView: 1, // 在线打开文档时,使用新版在线文档查看器,而不是旧版的在线 WPS 文档查看器,建议 1
analytics: 0, // 允许百度网盘网页分析浏览信息,建议 0,分析原理是以 new Image 或 document.createElement("img") 的形式让浏览器访问特殊的图片来给服务器传递信息
adTime: 0.0001, // 视频播放时的广告(等待)时间,建议 0.0001
debug: 0, // 显示本脚本的调试信息到 JavaScript 控制台中,建议 0,另外,1 显示所有,2 仅显示 Hook 修改参数,3 仅显示禁用网页分析
// 以下是关键参数,不能修改
adToken: null,
}
var originalOpen = XMLHttpRequest.prototype.open;
unsafeWindow.XMLHttpRequest.prototype.open = function (method, url) {
url = new URL(url, window.location.origin).href
if (url.includes('/api/loginStatus')) {
this.addEventListener('readystatechange', function () {
if (this.readyState == 4) {
let res, oriRes
try {
res = JSON.parse(this.responseText), oriRes = JSON.parse(this.responseText)
} catch (e) {
res = this.response, oriRes = this.response
}
res.login_info.vip_type && user.vip === 1 && user.previous === 0 ? res.login_info.vip_type = `${user.svip === 1 ? 2 : 1}1` : ""
res.login_info.vip_identity && user.vip === 1 && user.previous === 0 ? res.login_info.vip_identity = Number(`${user.svip === 1 ? 2 : 1}1`) : ""
res.login_info.vip_level && user.vip === 1 && user.previous === 0 ? res.login_info.vip_level = user.level : ""
res.login_info.vip_point && user.vip === 1 && user.previous === 0 ? res.login_info.vip_point = user.point : ""
res.login_info["photo_url"] && user.photo ? res.login_info["photo_url"] = user.photo : ""
res.login_info.username && user.name ? res.login_info.username = user.name : ""
if (user.debug === 1 || user.debug === 2) console.log("【(改)百度网盘会员青春版】Hook XHR", "\n请求地址:", url, "\n原始回复:", oriRes, "\n修改回复:", res)
Object.defineProperty(this, "responseText", {
writable: true,
});
this.responseText = JSON.stringify(res)
Object.defineProperty(this, "responseText", {
writable: false,
});
}
})
originalOpen.apply(this, arguments);
} else if (url.includes('/user/info')) {
user.vip === 1 && user.previous === 0 ? this.addEventListener('readystatechange', function () {
if (this.readyState == 4) {
let res, oriRes
try {
res = JSON.parse(this.responseText), oriRes = JSON.parse(this.responseText)
} catch (e) {
res = this.response, oriRes = this.response
}
res.user_info.is_vip ? res.user_info.is_vip = user.vip : ""
res.user_info.is_svip ? res.user_info.is_svip = user.svip : ""
res.user_info.is_plus_buy ? res.user_info.is_plus_buy = user.svip : ""
res.user_info.plus_buy_hit ? res.user_info.plus_buy_hit = user.svip : ""
res.user_info.is_vip_v2 && user.level && user.level >= 2 ? res.user_info.is_vip_v2 = user.vip : "";
res.user_info.is_vip_v2_new && user.level && user.level >= 2 ? res.user_info.is_vip_v2_new = user.vip : "";
res.user_info.username && user.name ? res.user_info.username = user.name : "";
res.user_info.photo && user.photo ? res.user_info.photo = user.photo : "";
res.user_info.vipsid && user.vip_id ? res.user_info.vipsid = user.vip_id : "";
res.user_info.phone ? res.user_info.phone = "01095099" : "";
if (user.debug === 1 || user.debug === 2) console.log("【(改)百度网盘会员青春版】Hook XHR", "\n请求地址:", url, "\n原始回复:", oriRes, "\n修改回复:", res)
Object.defineProperty(this, "responseText", {
writable: true,
});
Object.defineProperty(this, "response", {
writable: true,
});
this.response = JSON.stringify(res)
this.responseText = JSON.stringify(res)
}
}) : ""
originalOpen.apply(this, arguments);
} else if (url.includes('/membership/user') && !url.includes('method=rights')) {
this.addEventListener('readystatechange', function () {
if (this.readyState == 4) {
let res, oriRes
try {
res = JSON.parse(this.responseText), oriRes = JSON.parse(this.responseText)
} catch (e) {
res = this.response, oriRes = this.response
}
// 决定网页显示会员标识
user.vip === 1 && user.previous === 0 ? res.current_product = {
"cluster": "vip",
"detail_cluster": user.svip === 1 ? "svip" : "vip", // 决定修改会员标签
"product_type": user.svip === 1 ? `vip2_1m_auto` : `vip_1m_auto`,
"product_id": "12187135090581539740"
} : ""
user.vip === 1 && user.previous === 0 ? res.current_product_v2 = {
"cluster": "vip",
"detail_cluster": user.svip === 1 ? "svip" : "vip", // 决定修改会员标签
"product_type": user.svip === 1 ? `vip2_1m_auto` : `vip_1m_auto`,
"product_id": "12187135090581539740"
} : ""
// 决定网页显示会员等级
user.vip === 1 ? res.level_info = {
...res.level_info,
"current_value": user.point, // 决定所有会员标签
"current_level": user.level, // 决定所有会员标签
"history_value": user.point,
"history_level": user.level,
"v10_id": user.vip_id ? user.vip_id : "",
"last_manual_collection_time": 0
} : ""
if (user.vip === 1 && res.privilege_list) {
[...res.privilege_list].forEach(item => {
item.free_count = 100
})
}
// 决定网页展示会员剩余时间
user.vip === 1 && user.previous === 0 && user.svip === 0 ? res.reminder = {
...res.reminder,
"vip": {
"leftseconds": ((user.endtime ? user.endtime : 2147483648) * 1000 - Date.now()) / 1000,
"nextState": "normal"
}
} : user.svip === 1 && user.previous === 0 ? res.reminder = {
...res.reminder,
"svip": {
"leftseconds": ((user.endtime ? user.endtime : 2147483648) * 1000 - Date.now()) / 1000,
"nextState": "normal"
}
} : ""
// 其它(已有套餐、之前套餐)
user.vip === 1 && user.previous === 0 && res.product_infos ? res.product_infos = [{
"product_id": "12187135090581539740",
"buy_time": "946656000",
"start_time": 946656000,
"end_time": user.endtime ? user.endtime : 2147483648,
"cluster": "vip",
"detail_cluster": user.svip === 1 ? "svip" : "vip",
"product_name": user.svip === 1 ? "svip2_nd" : "vip1_nd",
"cur_svip_type": "year",
"function_num": 8,
"status": 0,
"buy_description": "超级SVIP套餐(永久)",
"product_description": "自打百度一诞生我就买了!"
}, ...res.product_infos] : ""
user.vip === 1 ? res.previous_product = {
"cluster": "vip",
"detail_cluster": user.svip === 1 ? "svip" : "vip", // 决定之前会员标签
"product_type": user.svip === 1 ? `vip2_1m_auto` : `vip_1m_auto`,
"expired_time": 946656000
} : ""
user.vip === 1 ? res.previous_product_v2 = {
"cluster": "vip",
"detail_cluster": user.svip === 1 ? "svip" : "vip", // 决定之前会员标签
"product_type": user.svip === 1 ? `vip2_1m_auto` : `vip_1m_auto`,
"expired_time": 946656000
} : ""
if (user.debug === 1 || user.debug === 2) console.log("【(改)百度网盘会员青春版】Hook XHR", "\n请求地址:", url, "\n原始回复:", oriRes, "\n修改回复:", res)
Object.defineProperty(this, "response", {
writable: true,
});
Object.defineProperty(this, "responseText", {
writable: true,
});
this.response = JSON.stringify(res)
this.responseText = JSON.stringify(res)
}
})
originalOpen.apply(this, arguments);
} else if (url.includes('/api/streaming') && !url.includes('M3U8_SUBTITLE_SRT')) { //获取视频m3u8接口
let pureURL = url.replace(/vip=\d+/, 'vip=0').replace(/_1080&/, '_720&')
if (user.adToken) {
pureURL += ('&adToken=' + encodeURIComponent(user.adToken))
this.adToken = user.adToken
user.adToken = null
if (user.debug === 1 || user.debug === 2) console.log("【(改)百度网盘会员青春版】Hook XHR", "\n请求地址:", url, "\n修改地址:", pureURL)
originalOpen.call(this, method, pureURL, false);
} else {
this.addEventListener('readystatechange', function () {
if (this.readyState == 4 && this.responseText[0] == '{') {
let res = JSON.parse(this.responseText), oriRes = JSON.parse(this.responseText), log
user.adToken = res.adToken
let m3uRequest = new XMLHttpRequest();
m3uRequest.open(method, pureURL, false);
m3uRequest.send();
let m3uText = m3uRequest.responseText
Object.defineProperty(this, "status", {
writable: true,
});
this.status = m3uRequest.status;
if (m3uText.startsWith('#EXTM3U')) {
log = "M3U8预览\n" + m3uText.split('\n').slice(0, 5).join('\n')
res = m3uText
} else {
res = JSON.parse(m3uText)
res.errno = 133
user.adTime ? (res.ltime = user.adTime) : (res.ltime = 0.0001)
user.adTime ? (res.adTime = user.adTime) : (res.adTime = 0.0001)
}
if (user.debug === 1 || user.debug === 2) console.log("【(改)百度网盘会员青春版】Hook XHR", "\n请求地址:", url, "\n原始回复:", oriRes, "\n修改回复:", log || res)
Object.defineProperty(this, "responseText", {
writable: true,
});
this.responseText = res;
}
})
originalOpen.call(this, method, pureURL);
}
} else if (url.includes('/api/streaming') && url.includes('M3U8_SUBTITLE_SRT')) {
this.addEventListener('readystatechange', function () {
if (this.readyState == 4 && this.responseText.includes('#EXT-X-MEDIA:TYPE=SUBTITLES')) {
let res = this.response
if (user.debug === 1 || user.debug === 2) console.log("【(改)百度网盘会员青春版】Hook XHR", "\n请求地址:", url, "\n原始回复:", res)
var nameMatch = this.responseText.match(/NAME="([^"]+)"/);
var aiSubMatch = this.responseText.match(/AI-SUB=([^,\s]+)/);
var urlMatch = this.responseText.match(/(https?:\/\/[^\s]+)/);
if (nameMatch && urlMatch && aiSubMatch && aiSubMatch[1] === 'YES') {
var subName = nameMatch[1];
var aiSub = aiSubMatch[1] === 'YES' ? 'AI-' : '';
var subUrl = urlMatch[0];
waitForKeyElements(`aside.vp-aside div.vp-tabs div.vp-tabs__content`, function (element) {
var button = $(`<span id="downloads"><h1>[独家功能] AI字幕均为逐句分割而非整段分割</h1><br/><button class="downloadSubtitle" data-href="${subUrl}" data-name="${aiSub}${subName}.srt"><i class="u-icon-download-bold" style="vertical-align: text-bottom;"></i> ${aiSub}${subName} (Blob下载,自动命名)</button><a class="downloadSubtitle" href="${subUrl}" title="默认命名是乱码,别忘了加上后缀 .srt 哦" target="_blank"><i class="u-icon-download-bold" style="vertical-align: text-bottom;"></i> ${aiSub}${subName} (打开链接,手动命名)</a></span>`)
button.find("button").on('click', async function (element) {
if (!$(this).data('href')) return;
element.preventDefault();
element = $(this)
let ins = {};
let progress = {};
let index = element.data('index');
element.prop('disabled', true);
ins[index] = setInterval(function () {
let prog = +progress[index] || 0;
element.html('<i class="u-icon-download-bold" style="vertical-align: text-bottom;"></i> 已下载 ' + prog + "%");
}, 10);
try {
let response = await unsafeWindow.fetch(element.data('href'));
if (!response.ok) throw new Error('网络响应失败');
let totalSize = response.headers.get('Content-Length') || 0;
let reader = response.body.getReader();
let receivedLength = 0;
let chunks = [];
while (true) {
const { done, value } = await reader.read();
if (done) break;
chunks.push(value);
receivedLength += value.length;
progress[index] = ((receivedLength / totalSize) * 100).toFixed(1);
}
const blob = new Blob(chunks);
clearInterval(ins[index]);
progress[index] = 100;
element.html('<i class="u-icon-download-bold" style="vertical-align: text-bottom;"></i> 下载完成,浏览器弹框中')
const url = URL.createObjectURL(blob);
const a = document.createElement('a');
a.href = url;
a.download = `${element.data('name')}`;
a.style.display = 'none';
document.body.appendChild(a);
a.click();
setTimeout(() => {
URL.revokeObjectURL(url);
document.body.removeChild(a);
}, 1000);
setTimeout(function () {
element.html(`<i class="u-icon-download-bold" style="vertical-align: text-bottom;"></i> ${aiSub}${subName} (Blob下载,自动命名)`);
$(this).prop('disabled', false);
}.bind(this), 3000);
} catch (error) {
clearInterval(ins[index]);
console.error("下载失败:", error);
element.html('<i class="u-icon-download-bold" style="vertical-align: text-bottom;"></i> 下载失败,点击重试?');
$(this).prop('disabled', false).one('click', async function () {
$(this).trigger('click');
});
}
})
element.before(button)
})
}
}
});
originalOpen.apply(this, arguments);
} else if (url.includes('/msg/streaming') || url.includes('/share/streaming')) {
this.addEventListener('readystatechange', function () {
if (this.readyState == 4 && this.responseText[0] == '{') {
let res, oriRes
try {
res = JSON.parse(this.responseText), oriRes = JSON.parse(this.responseText)
} catch (e) {
res = this.response, oriRes = this.response
}
user.adTime ? (res.ltime = user.adTime) : (res.ltime = 0.0001)
user.adTime ? (res.adTime = user.adTime) : (res.adTime = 0.0001)
if (user.debug === 1 || user.debug === 2) console.log("【(改)百度网盘会员青春版】Hook XHR", "\n请求地址:", url, "\n原始回复:", oriRes, "\n修改回复:", res)
Object.defineProperty(this, 'responseText', {
writable: true,
})
this.responseText = JSON.stringify(res)
}
})
originalOpen.apply(this, arguments);
} else if (url.includes('/api/getsyscfg') && url.includes('huge_upgrade')) {
this.addEventListener('readystatechange', function () {
if (this.readyState == 4) {
let res, oriRes
try {
res = JSON.parse(this.responseText), oriRes = JSON.parse(this.responseText)
} catch (e) {
res = this.response, oriRes = this.response
}
res.huge_upgrade.cfg_list[1].show_features = (user.feedbackButton === 0 ? "0" : "1")
res.huge_upgrade.cfg_list[0].new_nav_show = (user.versionSwitchButton === 0 ? "0" : "1")
res.huge_upgrade.cfg_list[0].new_nav_href = "https://pan.baidu.com/disk/main"
res.huge_upgrade.cfg_list[0].old_nav_show = (user.versionSwitchButton === 0 ? "0" : "1")
res.huge_upgrade.cfg_list[0].old_nav_href = "https://pan.baidu.com/disk/home?stayAtHome=true"
if (user.debug === 1 || user.debug === 2) console.log("【(改)百度网盘会员青春版】Hook XHR", "\n请求地址:", url, "\n原始回复:", oriRes, "\n修改回复:", res)
Object.defineProperty(this, "response", {
writable: true,
});
Object.defineProperty(this, "responseText", {
writable: true,
});
this.response = JSON.stringify(res)
this.responseText = JSON.stringify(res)
}
})
originalOpen.apply(this, arguments);
} else if (url.includes('/api/getsyscfg') && url.includes('netdisk_docchat_config')) {
user.aiChat === 0 ? this.addEventListener('readystatechange', function () {
if (this.readyState == 4) {
let res, oriRes
try {
res = JSON.parse(this.responseText), oriRes = JSON.parse(this.responseText)
} catch (e) {
res = this.response, oriRes = this.response
}
res.netdisk_docchat_config.cfg_list[0].is_chat_show = "0"
res.netdisk_docchat_config.cfg_list[0].is_docview_chat_auto_show = "0"
res.netdisk_docchat_config.cfg_list[0].is_docview_chat_show = "0"
res.netdisk_docchat_config.cfg_list[0].is_home_need_out_sug = "0"
res.netdisk_docchat_config.cfg_list[0].is_main_chat_show = "0"
res.netdisk_docchat_config.cfg_list[0].is_videoview_chat_auto_show = "0"
res.netdisk_docchat_config.cfg_list[0].is_videoview_chat_show = "0"
if (user.debug === 1 || user.debug === 2) console.log("【(改)百度网盘会员青春版】Hook XHR", "\n请求地址:", url, "\n原始回复:", oriRes, "\n修改回复:", res)
Object.defineProperty(this, "response", {
writable: true,
});
Object.defineProperty(this, "responseText", {
writable: true,
});
this.response = JSON.stringify(res)
this.responseText = JSON.stringify(res)
}
}) : ""
originalOpen.apply(this, arguments);
} else if (url.includes('/api/getsyscfg') && url.includes('ai_collect')) {
user.aiCollect === 0 ? this.addEventListener('readystatechange', function () {
if (this.readyState == 4) {
let res, oriRes
try {
res = JSON.parse(this.responseText), oriRes = JSON.parse(this.responseText)
} catch (e) {
res = this.response, oriRes = this.response
}
res.ai_collect.cfg_list[0].is_ai_collect_show = "0"
if (user.debug === 1 || user.debug === 2) console.log("【(改)百度网盘会员青春版】Hook XHR", "\n请求地址:", url, "\n原始回复:", oriRes, "\n修改回复:", res)
Object.defineProperty(this, "response", {
writable: true,
});
Object.defineProperty(this, "responseText", {
writable: true,
});
this.response = JSON.stringify(res)
this.responseText = JSON.stringify(res)
}
}) : ""
originalOpen.apply(this, arguments);
} else if (url.includes('/api/getsyscfg') && url.includes('netdisk_docview_config')) {
this.addEventListener('readystatechange', function () {
if (this.readyState == 4) {
let res, oriRes
try {
res = JSON.parse(this.responseText), oriRes = JSON.parse(this.responseText)
} catch (e) {
res = this.response, oriRes = this.response
}
res.netdisk_docview_config.cfg_list[0].auto_search_to_ai = (user.aiChat === 0 ? "0" : "1")
res.netdisk_docview_config.cfg_list[0].use_pfile_for_doc = (user.pfileView === 0 ? "0" : "1")
res.netdisk_docview_config.cfg_list[0].use_pfile_for_ppt = (user.pfileView === 0 ? "0" : "1")
res.netdisk_docview_config.cfg_list[0].use_pfile_reader = (user.pfileView === 0 ? "0" : "1")
res.netdisk_docview_config.cfg_list[0].use_wps_reader = (user.pfileView === 0 ? "1" : "0")
if (user.debug === 1 || user.debug === 2) console.log("【(改)百度网盘会员青春版】Hook XHR", "\n请求地址:", url, "\n原始回复:", oriRes, "\n修改回复:", res)
Object.defineProperty(this, "response", {
writable: true,
});
Object.defineProperty(this, "responseText", {
writable: true,
});
this.response = JSON.stringify(res)
this.responseText = JSON.stringify(res)
}
})
originalOpen.apply(this, arguments);
} else {
originalOpen.apply(this, arguments);
}
}
var hookedOpen = unsafeWindow.XMLHttpRequest.prototype.open
GM_addStyle(`
/* 帮助百度网盘修正错误的会员色 */
dt.level-1 {
background: #fd6d65 !important;
}
dt.level-2 {
background: #f3a723 !important;
}
dt.level-1 i.desc-arrow {
border-bottom: 10px solid #dd6966 !important;
}
dt.level-2 i.desc-arrow {
border-bottom: 10px solid #d29633 !important;
}
span#downloads h1 {
margin-left: 20px;
font-size: small;
}
[data-theme="dark"] span#downloads h1 {
color: white;
}
a.downloadSubtitle, button.downloadSubtitle {
border: none;
border-radius: 5px;
font-size: 12px;
background: #0095ff;
color: #fff;
padding: 5px;
margin: 0 0 20px 20px;
width: fit-content;
}
a.downloadSubtitle:hover, a.downloadSubtitle:disabled, button.downloadSubtitle:hover, button.downloadSubtitle:disabled {
background: #0095ffD0;
}
`)
// 禁止分析网页信息
unsafeWindow.Image = function () {
const img = new Image();
return new Proxy(img, {
set(target, prop, value) {
if (prop === 'src' && (value.includes('analytics') || value.includes('ztbox'))) {
let url = new URL(value, location.origin);
if (user.debug === 1 || user.debug === 3) console.warn("【(改)百度网盘会员青春版】unAnalytics", '\n类型:new Image\n禁止网页分析信息:', url.href);
return true; // 阻止设置
}
target[prop] = value; // 设置其他属性
return true;
},
get(target, prop) {
return target[prop]; // 获取属性值
}
});
};
const originalCreateElement = document.createElement;
unsafeWindow.document.createElement = function (tagName) {
const element = originalCreateElement.call(unsafeWindow.document, tagName);
if (tagName.toLowerCase() === 'img') {
Object.defineProperty(element, 'src', {
set(value) {
if (value.includes('analytics') || value.includes('ztbox')) {
let url = new URL(value, location.origin);
if (user.debug === 1 || user.debug === 3) console.warn("【(改)百度网盘会员青春版】unAnalytics", '\n类型:document.createElement("img")\n禁止网页分析信息:', url.href)
return true;
} else {
element.setAttribute('src', value)
}
},
get() {
return element.getAttribute('src');
}
});
}
return element;
};
waitForKeyElements(`.vp-video__control-bar--playback-rates button`, function (element) {
element.on('click', function () {
XMLHttpRequest.prototype.open = originalOpen;
setTimeout(function () {
XMLHttpRequest.prototype.open = hookedOpen;
}, 20)
})
})
let localsTimer = setInterval(() => {
if (!unsafeWindow.locals) return
clearInterval(localsTimer)
let locals = unsafeWindow.locals
let originalSet = locals.set
locals.set = function (...args) {
if (typeof args[1] == 'number' || typeof args[1] == 'string') {
let oriarg = args[1]
if (args[0].includes('is_vip')) {
args[1] = user.vip === 1 && user.previous === 0 ? 1 : 0
} else if (args[0].includes('is_svip')) {
args[1] = user.svip === 1 && user.previous === 0 ? 1 : 0;
} else if (args[0] === 'vip_level') {
user.level ? args[1] = user.level : "";
} else if (args[0] === 'v10_id') {
user.vip_id ? args[1] = user.vip_id : "";
} else if (args[0] === 'username') {
user.name ? args[1] = user.name : "";
} else if (args[0] === 'photo') {
user.photo ? args[1] = user.photo : "";
}
if (oriarg !== args[1]) {
if (user.debug === 1 || user.debug === 2) console.log("【(改)百度网盘会员青春版】Hook Locals", "\n原始数据:", args[0], "-", oriarg, "\n修改数据:", args[0], "-", args[1]);
}
}
originalSet.apply(this, args);
}
if (/\/s\/.*?\?fid=.*?/.test(location.href)) unsafeWindow.locals.self = 1
if (locals.userInfo) {
user.vip === 1 && user.previous === 0 ? locals.userInfo.vip_identity = Number(`${user.svip === 1 ? 2 : 1}1`) : ""
user.name ? locals.userInfo.username = user.name : ""
user.photo ? locals.userInfo["photo_url"] = user.photo : ""
user.level ? locals.userInfo.vip_level = user.level : ""
user.vip_id ? locals.userInfo.svip10_id = user.vip_id : ""
} else if (locals.mset && user.vip === 1 && user.previous === 0) {
locals.mset({
'is_vip': user.vip === 1 && user.previous === 0 ? 1 : 0,
'is_svip': user.svip === 1 && user.previous === 0 ? 1 : 0,
'vip_level': user.level ? user.level : "",
'svip10_id': user.vip_id ? user.vip_id : "",
'show_vip_ad': 0
})
} else {
user.level ? locals.vip_level = user.level : ""
locals.is_vip = user.vip === 1 && user.previous === 0 ? 1 : 0
locals.is_svip = user.svip === 1 && user.previous === 0 ? 1 : 0
user.vip === 1 && user.previous === 0 ? locals.show_vip_ad = 0 : ""
user.photo ? locals.photo = user.photo : ""
user.name ? locals.username = user.name : ""
}
if (user.debug === 1 || user.debug === 2) console.log("【(改)百度网盘会员青春版】Hook", "\nLocals:", locals)
}, 1)
let yunDataTimer = setInterval(() => {
if (!unsafeWindow.yunData) return;
clearInterval(yunDataTimer)
let yunData = unsafeWindow.yunData
let originalSet = yunData.setData;
yunData.setData = function (...args) {
if (typeof args[0] === 'object') {
let oriargs = { ...args[0] }
let newargs = args[0]
if (oriargs.hasOwnProperty('is_vip')) {
newargs.is_vip = user.vip === 1 && user.previous === 0 ? 1 : 0;
}
if (oriargs.hasOwnProperty('is_svip')) {
newargs.is_svip = user.svip === 1 && user.previous === 0 ? 1 : 0;
}
if (oriargs.hasOwnProperty('vip_level')) {
user.level ? newargs.vip_level = user.level : "";
}
if (oriargs.hasOwnProperty('v10_id')) {
user.vip_id ? newargs.v10_id = user.vip_id : "";
}
if (oriargs.hasOwnProperty('photo')) {
user.photo ? newargs.photo = user.photo : "";
}
if (oriargs.hasOwnProperty('username')) {
user.name ? newargs.username = user.name : "";
}
if (JSON.stringify(oriargs) !== JSON.stringify(newargs)) {
if (user.debug === 1 || user.debug === 2) console.log("【(改)百度网盘会员青春版】Hook yunData", "\n原始数据:", oriargs, "\n修改数据:", newargs);
}
} else {
let oriarg = args[1]
if (args[0].includes('is_vip')) {
args[1] = user.vip === 1 && user.previous === 0 ? 1 : 0
} else if (args[0].includes('is_svip')) {
args[1] = user.svip === 1 && user.previous === 0 ? 1 : 0;
} else if (args[0] === 'vip_level') {
user.level ? args[1] = user.level : "";
} else if (args[0] === 'v10_id') {
user.vip_id ? args[1] = user.vip_id : "";
} else if (args[0] === 'username') {
user.name ? args[1] = user.name : "";
} else if (args[0] === 'photo') {
user.photo ? args[1] = user.photo : "";
}
if (oriarg !== args[1]) {
if (user.debug === 1 || user.debug === 2) console.log("【(改)百度网盘会员青春版】Hook yunData", "\n原始数据:", args[0], "-", oriarg, "\n修改数据:", args[0], "-", args[1]);
}
}
originalSet.apply(this, args);
}
user.name ? yunData.username = user.name : ""
user.name ? yunData.MYNAME = user.name : ""
user.photo ? yunData.MYAVATAR = user.photo : ""
user.photo ? yunData.photo = user.photo : ""
user.level ? yunData.vip_level = user.level : ""
yunData.ISVIP = user.vip === 1 && user.previous === 0 ? 1 : 0
yunData.ISSVIP = user.svip === 1 ? 1 : 0
user.vip ? yunData.ISYEARVIP = 1 : ""
yunData.is_vip = user.vip === 1 && user.previous === 0 ? 1 : 0
yunData.is_svip = user.svip === 1 ? 1 : 0
yunData.is_vip_v2 = user.vip === 1 && user.previous === 0 ? 1 : 0
yunData.is_svip_v2_new = user.svip === 1 ? 1 : 0
user.vip ? yunData.show_vip_ad = 0 : ""
if (user.debug === 1 || user.debug === 2) console.log("【(改)百度网盘会员青春版】Hook", "\nyunData:", yunData)
}, 1)
let yunDataRequireTimer = setInterval(() => {
if (!unsafeWindow.require) return;
clearInterval(yunDataRequireTimer)
require.async('pan-center:widget/data/yunData', function (yunData) {
let originalSet = yunData.setData;
yunData.setData = function (...args) {
if (typeof args[0] === 'object') {
let oriargs = { ...args[0] }
let newargs = args[0]
if (oriargs.hasOwnProperty('is_vip')) {
user.vip === 1 && user.previous === 0 ? newargs.is_vip = 1 : newargs.is_vip = 0;
}
if (oriargs.hasOwnProperty('is_svip')) {
user.svip === 1 && user.previous === 0 ? newargs.is_svip = 1 : newargs.is_svip = 0;
}
if (oriargs.hasOwnProperty('is_evip')) {
user.svip === 1 && user.previous === 0 ? newargs.is_evip = 1 : newargs.is_evip = 0;
}
if (oriargs.hasOwnProperty('vip_level')) {
user.level ? newargs.vip_level = user.level : "";
}
if (oriargs.hasOwnProperty('v10_id')) {
user.vip_id ? newargs.v10_id = user.vip_id : "";
}
if (oriargs.hasOwnProperty('has_3V1_coupon')) {
user.svip === 1 && user.previous === 0 ? newargs.has_3V1_coupon = 1 : newargs.has_3V1_coupon = 0;
}
if (oriargs.hasOwnProperty('photo')) {
user.photo ? newargs.photo = user.photo : "";
}
if (oriargs.hasOwnProperty('username')) {
user.name ? newargs.username = user.name : "";
}
if (JSON.stringify(oriargs) !== JSON.stringify(newargs)) {
if (user.debug === 1 || user.debug === 2) console.log("【(改)百度网盘会员青春版】Hook yunDataModule", "\n原始数据:", oriargs, "\n修改数据:", newargs);
}
} else {
let oriarg = args[1]
if (args[0].includes('is_vip')) {
args[1] = user.vip === 1 && user.previous === 0 ? 1 : 0
} else if (args[0].includes('is_svip')) {
args[1] = user.svip === 1 && user.previous === 0 ? 1 : 0;
} else if (args[0] === 'vip_level') {
user.level ? args[1] = user.level : "";
} else if (args[0] === 'v10_id') {
user.vip_id ? args[1] = user.vip_id : "";
} else if (args[0] === 'username') {
user.name ? args[1] = user.name : "";
} else if (args[0] === 'photo') {
user.photo ? args[1] = user.photo : "";
}
if (oriarg !== args[1]) {
if (user.debug === 1 || user.debug === 2) console.log("【(改)百度网盘会员青春版】Hook yunDataModule", "\n原始数据:", args[0], "-", oriarg, "\n修改数据:", args[0], "-", args[1]);
}
}
originalSet.apply(this, args);
}
if (user.debug === 1 || user.debug === 2) console.log("【(改)百度网盘会员青春版】Hook", "\nyunDataModule:", yunData)
})
}, 1)
function waitForKeyElements(selectorTxt, actionFunction, bWaitOnce, iframeSelector) {
function findInShadowRoots(root, selector) {
let elements = $(root).find(selector).toArray();
$(root).find('*').each(function () {
const shadowRoot = this.shadowRoot;
if (shadowRoot) {
elements = elements.concat(findInShadowRoots(shadowRoot, selector));
}
});
return elements;
}
var targetElements;
if (iframeSelector) {
targetElements = $(iframeSelector).contents();
} else {
targetElements = $(document);
}
let allElements = findInShadowRoots(targetElements, selectorTxt);
if (allElements.length > 0) {
allElements.forEach(function (element) {
var jThis = $(element);
var alreadyFound = jThis.data('alreadyFound') || false;
if (!alreadyFound) {
var cancelFound = actionFunction(jThis);
if (cancelFound) {
return false;
} else {
jThis.data('alreadyFound', true);
}
}
});
}
var controlObj = waitForKeyElements.controlObj || {};
var controlKey = selectorTxt.replace(/[^\w]/g, "_");
var timeControl = controlObj[controlKey];
if (allElements.length > 0 && bWaitOnce && timeControl) {
clearInterval(timeControl);
delete controlObj[controlKey];
} else {
if (!timeControl) {
timeControl = setInterval(function () {
waitForKeyElements(selectorTxt, actionFunction, bWaitOnce, iframeSelector);
}, 1000);
controlObj[controlKey] = timeControl;
}
}
waitForKeyElements.controlObj = controlObj;
}
})()