-
Notifications
You must be signed in to change notification settings - Fork 217
/
Copy pathAdblock4limbo.user.js
2791 lines (2503 loc) · 122 KB
/
Adblock4limbo.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
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// ==UserScript==
// @name Adblock4limbo.[github]
// @namespace https://github.com/limbopro/Adblock4limbo/raw/main/Adguard/Adblock4limbo.user.js
// @version 0.2025.01.26
// @license CC BY-NC-SA 4.0
// @description 毒奶去网页广告计划用户脚本 For Quantumult X & Surge & Shadowrocket & Loon & Stash & 油猴 ;1.新增页面右下角导航;2.通过 JavaScript 移除特定网站网页广告 —— 搜索引擎(Bing/Google)广告及内容农场结果清除/低端影视/欧乐影院/iyf爱壹帆/哔滴影视/Pornhub/Javbus/Supjav/Jable(支持抓取M3U8链接)/MissAv/91porn(支持视频下载)/hitomi/紳士漫畫/禁漫天堂/等视频&ACG&小说&漫画网站上的弹窗广告&视频广告&Gif图片广告等,保持网页清爽干净无打扰! P.S. 欢迎提交issue
// @author limbopro
/**
* ---------------------------
* 毒奶去网页广告计划
* Author: limbopro
* 使用教程:https://limbopro.com/archives/12904.html
* 联系博主:https://t.me/limboprobot
* 电报群组:https://t.me/Adblock4limbo
* FAQ:https://t.me/Adblock4limbo/21 常见问题与回答
* Github:https://github.com/limbopro/Adblock4limbo
* ---------------------------
*/
/* 新增反馈&导航按钮&成人保护模式&页面锁(见页面右下角)
// **【导航】使用指南(PC/Mac)**
/// 按教程安装好油猴脚本
/// 访问任意网站(绝大多数网站)
/// 1.1 当页面右下角【导航按钮】消失后,1秒内连续按2次 ESC键 可唤出【导航页面】;
/// 1.2 当页面右下角出现【导航按钮】时,此时只需再按一次 ESC键 可唤出【导航页面】;
/// 1.3 当处于导航页面时,按ESC键 或点击空白处 可退出【导航页面】;
/// 1.4 当处于导航页面时,按G键 或 空格键 可快速唤出【搜索框】,可快速进行搜索操作(同时会退出导航页面);
/// 1.5 当处于导航页面时,按C键 可快速唤出【网页聊天】框,可快速提建议或反馈问题;
/// 1.6 快速 【按3次ESC键】 可**快速开启页面锁🔒**(需设置锁屏密码🔑/仅对当前访问网站生效/如忘记密码可清除浏览器cookie)
// **【导航】使用指南(iOS)**
/// 按教程配置好相应重写/去广告分流
/// 访问【目前在维护的网站目录】里的(绝大多数)网站
/// 1.1 ~~当页面右下角导航按钮消失后,点击页面右侧1/3空白处即可唤出【导航按钮】;~~
/// 1.2 当页面右下角出现导航按钮时,点击按钮即可唤出【导航页面】;
/// 1.3 页面空白处1秒内连续点击4次及以上亦可唤出【导航页面】;
/// 1.4 上下滑动页面亦可唤出【导航按钮】;
// **【导航】使用指南(PC/Mac/iOS)**
/// **成人保护模式**
/// 仅针对部分主要成人网站生效
/// 当你浏览成人网站时,切换到别的应用或页面再返回时,网站页面将被模糊
/// 可在 导航 - **反馈/建议/功能设置//** 开启或关闭成人保护模式(ON/OFF);
// **如何【全局隐藏/禁用右下角导航按钮以及成人保护模式(iOS)】**
/// iOS QX/Stash/Surge/等用户
/// 1.添加主机名, **limbopro.com**
/// 2.添加重写, **匹配的url** 填写正则表达式 **Adblock4limbo.user.js** ,类型选择 **response-body/http-response**
/// 3.**匹配的body**处 填写正则表达式 **daohangMode|adultMode** ,**替换**处 填写 **off**
/// 4.daohangMode 代表导航,adultMode 代表成人保护模式,你可以都关闭或只关闭其一
// **如何【全局隐藏/禁用右下角导航按钮以及成人保护模式(PC/Mac)】**
/// PC/Mac 油猴用户...
/// 进入 Tampermonkey 管理面板 - 找到 **Adblock4limbo.[github]**
/// 找到 daohang_build() 大概在 210 多行
/// 然后将 daohangMode/adultMode 的值修改成 false 即可
/// ! 隐藏页面右下角导航🧭按钮🔘不影响PC/Mac端快捷键使用,移动端仍可1秒内连续点击页面空白处4次及以上唤出【导航页面】;
*/
// @match https://*/*
// @match https://m.baidu.com/*
// @match https://www.baidu.com/*
// @match https://zhidao.baidu.com/*
// @match https://ddrk.me/*
// @match https://ddys.tv/*
// @match https://ddys.pro/*
// @match https://ddys.art/*
// @match https://ddys2.me/*
// @match https://ddys.mov/*
// @match https://jable.tv/*
// @match https://cupfoxapp.tv/*
// @match https://www.dmmiku.com/*
// @match https://bf.bfdm.xyz/*
// @match https://cnys.tv/*
// @match https://m.iyf.tv/*
// @match https://www.iyf.tv/*
// @match https://en.jable.tv/*
// @match https://*.jable.tv/*
// @match https://www.btbdys.com/*
// @match https://www.bdys01.com/*
// @match https://www.bdys02.com/*
// @match https://www.bdys03.com/*
// @match https://www.bdys10.com/*
// @match https://www.52bdys.com/*
// @match https://cn.pornhub.com/*
// @match https://www.pornhub.com/*
// @match https://missav.com/*
// @match https://missav.ai/*
// @match https://missav.ws/*
// @match https://bi-girl.net/*
// @match https://91porn.com/*
// @match https://91porna.com/*
// @match https://www.91porn.com/*
// @match https://avple.tv/*
// @match https://18comic.org/*
// @match https://18comic.vip/*
// @match https://www.5dy5.cc/*
// @match https://www.5dy6.cc/*
// @match https://www.5dy7.cc/*
// @match https://www.5dy8.cc/*
// @match https://www.o8tv.com/*
// @match https://www.555dd5.com/*
// @match https://www.555dd6.com/*
// @match https://www.555dd7.com/*
// @match https://www.555dd8.com/*
// @match https://555dyx1.com/*
// @match https://555dyx3.com/*
// @match https://555dyx4.com/*
// @match https://555dyx5.com/*
// @match https://o8tv.com/*
// @match https://www.wnacg.com/*
// @match https://www.wnacg.org/*
// @match https://w.duboku.io/*
// @match https://www.duboku.tv/*
// @match https://www.libvio.com/*
// @match https://www.libvio.pro/*
// @match https://www.libvio.top/*
// @match https://www.libvio.me/*
// @match https://www.libvio.fun/*
// @match https://www.tvn.cc/*
// @match https://m.tvn.cc/*
// @match https://wap.tvn.cc/*
// @match https://www.google.com/search*
// @match https://www.google.com.hk/search*
// @match https://www.bing.com/search?q=*
// @match https://cn.bing.com/search?q=*
// @match https://zhuanlan.zhihu.com/*
// @match https://www.zhihu.com/*
// @match https://www.instagram.com/*
// @match https://www.nbys.tv/*
// @match https://www.ttsp.tv/*
// @match http://www.tz659.com/*
// @match https://anime1.me/*
// @match https://m.yhdmp.cc/*
// @match https://m.yhdmp.com/*
// @match https://m.yhpdm.com/*
// @match https://www.nivod5.com/*
// @match https://m.nivod5.com/*
// @match https://www.nivod4.tv/*
// @match https://www.nivod8.tv/*
// @match https://www.nivod9.tv/*
// @match https://m.nivod4.tv/*
// @match https://m.nivod8.tv/*
// @match https://m.nivod9.tv/*
// @include https://m.nivod*.tv/*
// @include https://www.nivod*.tv/*
// @match https://www.javbus.com/*
// @match https://jav.land/*
// @match https://cn1.91short.com/*
// @match https://xiaobaotv.net/*
// @match https://xiaobaotv.com/*
// @match https://xiaoxintv.net/*
// @match https://xiaoxintv.com/*
// @match https://javday.tv/*
// @match https://www.xvideos.com/*
// @match https://4hu.tv/*
// @match https://www.4hu.tv/*
// @match https://netflav.com/*
// @match https://javplayer.me/*
// @match https://netflav5.com/*
// @match https://filemoon.sx/*
// @match https://emturbovid.com/*
// @match https://netflavns1.com/*
// @match https://fc2stream.tv/*
// @match https://mmsw02.com/*
// @match https://embedrise.com/*
// @match https://mmfl02.com/*
// @match https://netflavns2.com/*
// @match https://supjav.com/*
// @match https://hanime1.me/*
// @match https://wangdoc.com/*
// @match https://developer.mozilla.org/*
// @match https://zh.javascript.info/*
// @match https://deerchao.cn/*
// @match https://gimy.ai/*
// @match https://www.olevod.tv/*
// @match https://www.olevod.com/*
// @match https://www.olevod.one/*
// @match https://t.me/*
// @match https://hitomi.la/*
// @match https://tameikegoro.jp/*
// @match https://njav.tv/*
// @match https://www.ntdm9.com/*
// @match https://www.novel543.com/*
// @match https://www.hltv.org/*
// @match https://m.diyibanzhu.me/*
// @match https://www.javlibrary.com/*
// @match https://rouman5.com/*
// @exclude https://x.com/*
// @exclude https://pan.baidu.com/*
// @exclude https://twitter.com/*
// @exclude https://limbopro.com/*
// @exclude https://venus-av.com/*
// @exclude https://developer.mozilla.org/
// @exclude https://www.youtube.com/*
// @exclude https://www.xvideos.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=limbopro.com
// @run-at document-end
// @grant none
// ==/UserScript==
/**
* 为网页增加导航按钮,将位于页面右下角呈现;
* 如需取消该按钮,请将如上调用代码注释;
*/
// 是否(默认)开启导航🧭按钮🔘 moren
// 如【不需要开启导航🧭按钮🔘】 可将 cookie 的值从 true 改为 false
settingCookie('daohangMode_global', 'false', '400');
console.log('是否(默认)开启导航🧭按钮🔘:' + getCookie_('daohangMode'))
// 是否(默认)开启成人🔞网站保护模式
// 如【不需要开启成人网站保护模式】 可将 cookie 的值从 true 改为 false
settingCookie('adultMode', 'false', '400');
console.log('是否(默认)开启成人🔞网站保护模式:' + getCookie_('adultMode'))
// 是否开启导航🧭按钮🔘
// 如【不需要开启导航🧭按钮🔘】可直接将 daohang_build() 进行注释
// //daohang_build() 就像这样
daohang_build();
// 一些常量
/* Start */
var uBlockOrigin = {
// uBlockOrigin 默认脚本
// https://github.com/uBlockOrigin/uBOL-home/tree/main/chromium/rulesets/scripting/scriptlet
// uBO Lite (uBOL), a permission-less MV3 API-based content blocker.
// uBOL is entirely declarative, meaning there is no need for a permanent uBOL process for the filtering to occur, and CSS/JS injection-based content filtering is performed reliably by the browser itself rather than by the extension. This means that uBOL itself does not consume CPU/memory resources while content blocking is ongoing -- uBOL's service worker process is required only when you interact with the popup panel or the option pages.
// uBOL does not require broad "read/modify data" permission at install time, hence its limited capabilities out of the box compared to uBlock Origin or other content blockers requiring broad "read/modify data" permissions at install time.
/*如若需同步至 https://greasyfork.org/zh-CN 则需将本常量删除;
这将导致审核不通过且脚本有被 GreasyFork 管理员 删除的风险;
*/
chn0abortcurrentscript: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/chn-0.abort-current-script.js", // chn-0.abort-current-script.js
chn0setconstant: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/chn-0.set-constant.js", // chn-0.set-constant.js
abortcurrentscript: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.abort-current-script.js", // abort-current-script
abortonpropertyread: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.abort-on-property-read.js", // default.abort-on-property-read.js
abortonpropertywrite: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.abort-on-property-write.js", // default.abort-on-property-write.js
abortonstacktrace: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.abort-on-stack-trace.js", // abort-on-stack-trace.js
addEventListenerdefuser: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.addEventListener-defuser.js", // default.addEventListener-defuser.js
alertbuster: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.alert-buster.js", // default.alert-buster.js
cookieremover: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.cookie-remover.js", // default.cookie-remover.js
disablenewtablinks: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.disable-newtab-links.js", // default.disable-newtab-links.js
evaldataprune: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.evaldata-prune.js", // default.evaldata-prune.js
jsonprune: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.json-prune.js", // default.json-prune.js
m3uprune: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.m3u-prune.js", // default.m3u-prune.js
nanosetIntervalbooster: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.nano-setInterval-booster.js", // default.nano-setInterval-booster.js
nanosetTimeoutbooster: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.nano-setTimeout-booster.js", // default.nano-setTimeout-booster.js
noevalif: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.noeval-if.js", // default.noeval-if.js
nofetchif: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.no-fetch-if.js", // default.no-fetch-if.js
norequestAnimationFrameif: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.no-requestAnimationFrame-if.js", // default.no-requestAnimationFrame-if.js
nosetIntervalif: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.no-setInterval-if.js", // default.no-setInterval-if.js
nosetTimeoutif: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.no-setTimeout-if.js", // default.no-setTimeout-if.js
nowebrtc: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.nowebrtc.js", // default.nowebrtc.js
nowindowopenif: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.no-window-open-if.js", // default.no-window-open-if.js
noxhrif: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.no-xhr-if.js", // default.no-xhr-if.js
refreshdefuser: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.refresh-defuser.js", // default.refresh-defuser.js
removeattr: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.remove-attr.js", // default.remove-attr.js
removeclass: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.remove-class.js", // default.remove-class.js
removenodetext: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.remove-node-text.js", // default.remove-node-text.js
replacenodetext: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.replace-node-text.js", // default.replace-node-text.js
setattr: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.set-attr.js", // default.set-attr.js
setconstant: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.set-constant.js", // default.set-constant.js
setcookie: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.set-cookie.js", // default.set-cookie.js
setlocalstorageitem: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.set-local-storage-item.js", // set-local-storage-item.js
spoofcss: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.spoof-css.js", // default.spoof-css.js
trustedsetconstant: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.trusted-set-constant.js", // default.trusted-set-constant.js
trustedsetcookie: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.trusted-set-cookie.js", // default.trusted-set-cookie.js
windowcloseif: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.window-close-if.js", // default.window-close-if.js
xmlprune: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.xml-prune.js", // default.xml-prune.js
}
var js_common = {
crisp: 'https://limbopro.com/Adguard/crisp.js' // crisp 聊天系统 chat
}
var css_common = {
//General element hiding rules
/*如若需同步至 https://greasyfork.org/zh-CN 则需将本常量删除;
这将导致审核不通过且脚本有被 GreasyFork 管理员 删除的风险;
*/
gehr: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/CSS/Adblock4limbo.user.css"
}
// 暂时 third_party_fileX('link', css_common.gehr, 'head'); // 动态引入 ublcok origin 通用去广告样式;
// third_party_fileX("script", js_common.crisp, "head"); // 动态引入 crisp 聊天系统;
// 油猴用户(桌面浏览器用户)可通过 // 注释上述代码来禁用Crisp;
// Qx/Shadrowrocket/Surge/Loon 等代理软件用户可通过添加分流来禁用Crisp;(分流类型选择 host-keyword, crisp, reject);
/* End */
var imax = {
js: {
//functionx: "https://greasyfork.org/scripts/477474-functionx4limbo-x/code/functionx4limboX.user.js",
functionx: "https://limbopro.com/Adguard/Adblock4limbo.function.js", // 全局js
//duboku: "https://limbopro.com/Adguard/duboku.js", // 独播库
avple: "https://limbopro.com/Adguard/avple.js", // avple 同步至 Greasy 时需注释
contentFarm: "https://limbopro.com/Adguard/contentFarm.js", // 内容农场
//contentFarm: 'https://greasyfork.org/scripts/442253-%E5%B1%8F%E8%94%BD%E5%86%85%E5%AE%B9%E5%86%9C%E5%9C%BA-with-%E6%B2%B9%E7%8C%B4%E8%84%9A%E6%9C%AC/code/%E5%B1%8F%E8%94%BD%E5%86%85%E5%AE%B9%E5%86%9C%E5%9C%BA%EF%BC%88with%20%E6%B2%B9%E7%8C%B4%E8%84%9A%E6%9C%AC%EF%BC%89.user.js',
},
css: {
globalcss: "https://limbopro.com/CSS/Adblock4limbo.user.css", // 全局
othercss: ".jable_css { background: rgb(0, 172, 106) important; border-right:6px solid #28a745 !important;} .fontColor {color:green !important}", // 按钮输入框块等元素类
libvio: ".container > .t-img-box:first-child, .hidden-log ,a[target=\"_blank\"] > .img-responsive ,.advertise ,#adsbox ,.t-img-box ,.inner-advertise ,.advertise {display: none! important;}", // libvio
goole: "#tvcap,[data-text-ad] {display:none !important}", // 谷歌搜索广告
avple: "#adsbox,.asg-overlay,.jss20,.jss13,iframe,span[class*=MuiSkeleton-root],.jss16 ,.MuiSkeleton-pulse.jss12.MuiSkeleton-rect.MuiSkeleton-root,[id*=KnvW],img[src*=\".gif\"],iframe[data-width] {display: none! important;}", // avple
btbdys: "div[style*='z-index:999'],.artplayer-plugin-ads, .artplayer-plugin-ads, *#ad-float, a[href*='z2py'], a[href*='dodder'], .ayx[style^=\"position\: fixed;bottom\"],#ad-index,#adsbox,.ayx[style=\"display:block;\"],.ayx[style^=\"position: fixed;bottom\"],a[target*=_new] {display:none !important;}", // 哔滴影视
switch: ".switch {display:none !important}",
ddrk: "div#afc_sidebar_2842, div.cfa_popup, div[class*='popup'], #sajdhfbjwhe, #kasjbgih, #fkasjgf, img[src*='bcebos'] {opacity:0% !important; pointer-events: none !important;}",
baidu_zhidao: "div[class$='-ecom-ads'], div[class*='fc-'][tplid], .wgt-ads {display :none !important; pointer-events: none !important;}",
baidu_search: "div[style*=fixed],.ec_ad_results {display:none !important;} ", // baidu
baidu_index: "a[data-tclog] > img, #foot, .recordcode, .index-copyright, div[style*='overflow'], .rn-container, .s-loading-frame.bottom {display:none !important;}",
ddrk2: "body,div.post-content,a {overflow-x:hidden !important;}", // ddys
jable: "body {overflow-x:hidden;} div.site-content {overflow-x:hidden!important;} div.text-center > a[target=_blank], li[class*='nav-item'] > a[target=_blank], div.asg-interstitial, div.asg-interstitial__mask, iframe, div[class*=\"exo\"], .exo-native-widget-outer-container, a[href*=\"trwl1\"], div[data-width=\"300\"], div.text-center.mb-e-30, div[data-width*=\"300\"], div[style*=\"300px\"], section[class*=\"justify\"], iframe[width=\"728\"][height=\"90\"], #site-content > div.container > section.pb-3.pb-e-lg-40.text-center, a[href*=\"\?banner=\"],[class*=\"root--\"],.badge,a[href=\"http\:\/\/uus52\.com/\"] {display :none !important; pointer-events: none !important;}", // Jable.tv
test: "*, div,img {display: none !important}",
tvn: "img[src*='gif'], iframe {display:none !important; pointer-events:none important;}",
comic_18: "div.div2_sticky2, p > a[target=_blank], div.modal-body > a[target=_blank], li[class*='pop'] > a[target=_blank], li[class*='top'] > a[target=_blank], .modal-backdrop,[data-height*='90'],div[data-height='250'][data-width='300'],a[href^='http']:not([href*='18comic.']) > img ,#adsbox ,a[target='_blank'][rel*='nofollow'] > img[src*='.gif'] ,#guide-modal ,iframe[width='300'][height='250'] ,.modal-body > ul.pop-list,.adsbyexoclick,div[data-group^='skyscraper_'],.bot-per,.top-a2db,a[href*='.taobao.com'],div[data-height='264'][data-width='956'],div[style^='position: fixed; top:'],.bot-per.visible-xs.visible-sm {display: none !important; pointer-events: none !important;}", // 555电影网
dy555: "div.module {z-index:1!important} div.popup.popup-tips.none.popupShow, a[target=\"_blank\"] img,.playtop.col-pd,a[href*=\"?channelCode=\"] > img[src*=\".com:\"],#adsbox,div.myui-panel.myui-panel-bg.clearfix.wapad {display:none !important}", // 555影院
wnacg: "div > img[src*='gif'],div.sh,div > a[target='_blank'] > img {display:none !important}", // 绅士漫画
missav: "a[href^='https://theporndude.com'],a[href*='mycomic'],a[href*=myavlive],[href*='bit.ly'],[href*='bit.ly'][target=_blank], a[href*='/vip'],img[src*='.gif'], iframe,#a[href*='//bit.ly/'],div[style*='z-index: 1001'],ul.space-y-2.mb-4.ml-4.list-disc.text-nord14,div.space-y-5.mb-5,div.under_player,div[style=\"width: 300px; height: 250px;\"] {display:none !important; pointer-events:none important;} body{overflow-x:hidden;}", // MissAV
bigirl: 'div#container + div, h4.adblock_title,div.adblock_subtitle,[class^=\'adblock\'],div[class^=\'ad_\'], .toppage_av {display:none !important; pointer-events: none !important;}', // https://bi-girl.net/
porna91: "a[href*='cloudfront'], div.filters, div.filters > div#videobox, div.row > div.col.col-24 { min-height: 0px !important; display:none !important; pointer-events: none !important;}", // 91porna
porn91: ".copysuccess {background:green !important;color:white !important;} br, .ad_img,.preroll-blocker, img[href*='.gif'] {display:none !important; pointer-events: none !important;}", // 91porn
zhihuAds: "div.css-1izy64v,[class='Card AppBanner'],.Footer,.Banner-link,div.Pc-word {display:none !important; pointer-events: none !important;}",
pornhubx: ".topAdContainter, a[href*='ads'], div.adContainer.clearfix.noBottom, .adContainer.clearfix.middleVideoAdContainer, div.adContainer.clearfix.noBottom, a[href*='fuck'][target='_blank'], [data-href][target='_blank'],iframe, a.ad#link, #header.hasAdAlert {grid-template-rows:60px 40px 0px !important} div.hd.clear, div > img[data-title][srcset], #js-networkBar,div#abAlert, .adsbytrafficjunky, #pb_template, .sponsor-text, #adsbox, .abAlertShown, .abAlertInner, #main-container > .abovePlayer, [rel*='noopener nofollow'],a[href^=\"http://ads.trafficjunky.net/\"], .topAdContainter,.adsbytrafficjunky,.ad-link {height:0px !important; display:none !important; pointer-events:none;}", // pornhub
instagram: "div._aagw {display:none !important}", // 网页版Instagram不能复制图片的问题
ttsp: "div#playad1,a[href*=\"8616.tech\"],.play_list_adbox,#adsbox,.ads_all > .ads_w,.ads_box,.right_ads {display:none !important}",
tz659: "figure, img[src*='mt2.jpg'],img[src*='pf.gif'],[src*='.gif'], iframe {display:none !important}",
anime: "div[id*=ad] {display:none !important}",
yhdmp: ".yrtjbmnk_b, .hvitsutz_b {display :none !important; pointer-events: none !important;}", // 樱花动漫
//nivod: "[style='text-align: center; margin-top: 30px;'], iframe, img[src*=gif], .video-ad, .nav-ads, #adDiv, .v-ad, .ad-text, #video-container + ul[style^=\"width:\"] > li > img {display: none !important; pointer-events:none important;}", // 泥巴影视视频左上角水印贴片 nivod
nivod: "img[src*='1a732eeb1adb'], img[src*='49e8abd32d13'], span[style*='1a2d'],span[style*='0891'],[style='text-align: center; margin-top: 30px;'],.qy20-h-carousel__li:nth-child(-n+2), .qy20-h-carousel__li:nth-child(-1n+2), span[style*='d92ea585-0'],span[style*='3db8c0fd-218f-491f-b2b0-2057bd401a2d'], iframe, img[src*=gif], .video-ad, .nav-ads, #adDiv, .v-ad, .ad-text, #video-container + ul[style^=\"width:\"] > li > img {display: none !important; pointer-events:none important;}", // 泥巴影视视频左上角水印贴片 nivod
_91short: "a[href*=lhiefl], a[href*=lol], div.shortcuts-mobile-overlay,div.xtbhkpvx_b,a[href*=cpa],img[src*=gif],#adsbox, div.adm {display:none !important; pointer-events: none !important;}",
xiaobaotv: "",
cupfoxapp: ".head_ad {display:none !important; pointer-events: none !important;}",
dmmiku: " #vodshare, .right_ads, .ads_box, .ads_all > .ads_w {display:none !important; pointer-events: none !important;}",
bfdm: "#player_pause {display:none !important; pointer-events: none !important;}",
iyf: "vg-pause-f, div.ad, .ad, .ad_tag, .dabf > .ng-star-inserted, .pggf > .ng-star-inserted {display:none !important; pointer-events: none !important;}",
hltv: "div.close-container,.presented-by,.mid-container + div[id]:has(> a[href] > img[alt][src]),.kgN8P9bvyb2EqDJR,.mid-container {display:none !important; pointer-events: none !important;}",
cnys: "div#player_pause, e#time_ad, div.vod-gg, img[src*='b02.gif'], #adsbox, #ADtip, .ec-ad {display:none !important; pointer-events: none !important;}",
google: "div.XDZKBc,.jnyxRd.TpRPV {display:none !important}",
javday: "p[style], p > a {display:none !important; pointer-events: none !important;} ",
xvideos: ".remove-ads-link, .remove-ads, .adsbyexoclick, #ad-header-mobile, .video-ad, #video-right, #ad-footer {display:none !important; pointer-events: none !important;}", // xvideos
javbus: ".ad-item,.ad-box {display:none !important}",
javland: "img[src*='.gif'], a[href^=\"https://go.rmhfrtnd.com/\"] {display:none !important; pointer-events: none !important;}", // jav.land
_4hu: ".couplet-left, body[ontouchstart] > div[id^='content_'][style='display: block;'], div.row.col2 > dl, #btmBox, img[src*=gif],.col5 > dl#randomBox, script[src$=\"/base.js\"] + #couplet, body[ontouchstart] > #topBox,.wrap + #btmBox,.search + #midBox {opacity:0% !important; pointer-events: none !important; height: 0px !important}",
// {opacity:0% !important; pointer-events: none !important; height: 0px !important}
netflav: "iframe[src*=xlv],.ads_video_overlay_mobile, div.widget-container, a[href*=\"register\"][target=\"_blank\"],div.ads_video_close_button,div.ads_video_overlay_mobile,div.footer_root,div.ads_head_banner_container {display:none !important;}",
supjav: '#pop, .div_pop, #pop.div_pop, .movv-ad, #adsbox, div.right, div.movv-ad.ad_3_3, div.movv-ad.ad_3_2, .movv-ad, .adsbyexoclick, #adsbox, .adsbyexoclick {display:none !important; pointer-events: none !important;}',
hitomi: ".container > div[class$=\"content\"] > div[class]:has(> script) {display:none !important; pointer-events: none !important;}",
hanime1: "span.scaled-exoclick, iframe, #close-mobile-ad-btn, #bottom-ads, div[style*=\"width: 310px; height: 282px;\"] {display:none !important; pointer-events: none !important;}",
javlibrary: ".menutext.whenmobile {top:90px;z-index:114;} a[href*='redirect'] {display:none!important} #toplogo {height:64px} .videothumblist .videos {min-width:auto;}.titlebox.whenmobile{width:250px} #topmenu.whenmobile {height:70px;} .searchbar.whenmobile{right:2px} div.videothumblist.whenmobile {overflow:scroll!important;overflow-x:hidden!important;} div#rightcolumn.whenmobile {width:300px} #rightcolumn {right:90px} #leftmenu {width:90px; position:fixed;} div#content {width:auto !important} body.main { min-width: auto; width:auto !important} iframe,img[src*='gif'] , td.advsearch {display:none!important;pointer-events: none !important;}",
douban: "*{display:none!important}",
olevod: "#adsbox, .ads-bg {display:none!important}",
ntdm9: "#adsbox, .yammohxz_b {display:none !important; pointer-events: none !important;}",
njav: "div[style=\"position: absolute; inset: 0px; z-index: 999; display: block;\"],.ad-floating,[src*='.gif'],iframe[width='300px'] {display:none!important}",
jav_common: ".jw-wrapper > div[style=\"opacity: 0; visibility: hidden; overflow: hidden; display: block; position: absolute; top: 0px; left: 0px; width: 100%; height: 100%;\"],div[style^=\"position:fixed;inset:0px;z-index:2147483647;background:black;opacity:0.01\"] {height:0px; display:none !important; pointer-events: none !important;}",
rouman: "div[role='dialog'] {display:none !important; pointer-events: none !important;}",
diyibanzhu: "img, #adsbox, .slide-ad {height:0px; display:none !important; pointer-events: none !important;}",
novel543: "iframe, div#adfoot, div.px-3.py-3, #adfoot, .gadBlock {height:0px; display:none !important; pointer-events: none !important;}"
//button_common: "padding: 6px 6px 6px 6px; display: inline-block; color: white;z-index: 114154 !important; border-right: 6px solid #38a3fd; border-left: #292f33 !important; border-top: #292f33 !important; border-bottom: #292f33 !important; background: #2563eb; border-radius: 0px 0px 0px 0px; font-weight: 800 !important; text-align: right !important;" // 按钮/输入框通用样式
},
function: {
}
}
css_adsRemove(imax.css.othercss, 0, 'othercss') // 引用全局样式
function values() {
var adsDomain = [
"pornhub",
"missav",
"bi-girl",
"91porna",
"91porn.",
"avple",
"18comic",
"wnacg",
"zhidao.baidu.com",
"www.baidu.com",
"m.baidu.com",
"ddys",
"jable",
"bdys",
"google",
"bing",
"duboku",
"libvio",
"tvn",
"www.5dy",
"www.555dd",
"o8tv",
"555dyx",
"instagram",
"ttsp",
"tz659",
"nbys",
"anime1",
"yhpdm",
"yhdmp",
"nivod",
"91short",
"xiaobaotv",
"xiaoxintv",
"cupfoxapp",
"dmmiku",
"bfdm",
"iyf",
"cnys",
"javday",
"xvideos",
"javbus",
"jav.land",
"4hu",
"netflav",
"javplayer",
"filemoon",
"embedrise",
"mmfl02",
"mmsw02",
"netflavns2",
"supjav",
"hanime1",
"hitomi",
"javlibrary",
"emturbovid",
'netflavns1',
'fc2stream',
'douban',
'twitter',
'olevod',
'njav',
'ntdm9',
'rouman',
'novel543',
'diyibanzhu',
'hltv',
"zhihu"
]
var url = document.location.href;
console.log("URL : " + url); // 看看当前 URL
var i;
for (i = 0; i < adsDomain.length; i++) {
if (url.indexOf(adsDomain[i]) !== -1) {
var values = adsDomain[i]; // 释放参数值
console.log("Catch it : " + values) // 看看控制台输出了个啥
}
}
return values;
}
function adsDomain_switch(x) { // 匹配参数值 执行相应函数
switch (x) {
case 'pornhub':
pornhub_interstitialPass();
//tag_adsRemove("script", "ads_batch");
const custom_style_values_pb = "right: 0px !important; padding: 0 !important; position: relative !important;"
css_adsRemove(imax.css.pornhubx, 500, "pornhubX");
setTimeout(() => {
let ads_selector = [".topAdContainter", "a[href*='ads']", "a[href*='fuck']", "a[href*='ad']", "div.adContainer.clearfix.noBottom", ".adContainer.clearfix.middleVideoAdContainer"];
let ads = setInterval(() => {
ads_selector.forEach((x) => { selector_one_by_one(x) })
console.log("清理还在继续..." + x)
if (document.querySelectorAll(ads_selector).length == 0) {
clearInterval(ads)
console.log("清理计时器,ads移除完毕...")
}
}, 1000)
}, 100)
let cssText = "font-size: smaller !important; background: #2563eb !important; left: 0px; top: 110px; margin-right: 5px; margin-top: 5px;" + "padding: 6px 6px 6px 6px; display: inline-block; color: white;z-index: 114154 !important; border-right: 6px solid #38a3fd; border-left: #292f33 !important; border-top: #292f33 !important; border-bottom: #292f33 !important; background: #2563eb; border-radius: 0px 0px 0px 0px; font-weight: 800 !important; text-align: right !important;"
setTimeout(() => {
ele_dynamicAppend("div.ratingInfo, div.categoryRow.ratingDetails.sectionPadding", "href", "如何下载视频?", cssText, "https://limbopro.com/archives/M3U8-Downloader.html", "download_pornhub", 2, "a")
if (document.getElementById("download_pornhub")) {
document.getElementById("download_pornhub").style = "display: inline !important;";
document.getElementById("download_pornhub").target = "_blank !important;";
}
}, 3000)
pornhub_sidebar_ads();
break;
case '91porna':
//cloudflare_captchaBypass();
css_adsRemove(imax.css.porna91);
//_91porn_videoplay_ads();
// 播放页空白
document.querySelectorAll("br").forEach((x) => {
if (x.clientHeight = 0) {
x.remove()
}
})
break;
case '91porn.':
//cloudflare_captchaBypass();
css_adsRemove(imax.css.porn91);
let url91 = document.location.href;
if (url91.indexOf('view_') !== -1) {
let play = setInterval(() => {
if (document.querySelector('div.preroll-skip-button') !== null) {
document.querySelector('div.preroll-skip-button').click();
} else {
clearInterval(play);
}
}, 1000)
}
setTimeout(() => {
_91porn_dl()
}, 2500)
//css_adsRemove(imax.css.porna91);
//_91porn_videoplay_ads();
// 播放页空白
/*
document.querySelectorAll("br").forEach((x) => {
if (x.clientHeight = 0) {
x.remove()
}
})
*/
break;
case 'avple':
//cloudflare_captchaBypass();
css_adsRemove(imax.css.avple);
third_party_fileX("script", imax.js.avple, "body")
break;
case '18comic':
css_adsRemove(imax.css.comic_18);
button_dynamicRemove("#chk_cover", 200);
_18comic_adsRemove();
break;
case 'www.5dy':
adsDomain_switch("555dyx")
break;
case 'o8tv':
adsDomain_switch("555dyx")
break;
case 'www.555dd':
adsDomain_switch("555dyx")
break;
case "555dyx":
let www = setInterval(() => {
if (document.querySelector('video')) {
document.querySelector('video').style = 'opacity: 1; filter: contrast(1.01) brightness(1.05) saturate(1.1);'
/* if (document.querySelector('video').loop == 'false') {
document.querySelector('video').setAttribute('loop', '')
}
*/
console.log("画面增强设置成功...")
clearInterval(www)
}
}, 1000)
document.querySelectorAll('div.module').forEach((x) => { x.style.zIndex = 1 });
css_adsRemove(imax.css.dy555, 0, "555dy")
document.querySelectorAll('.popup-btn.close-pop')[0].click(); //模拟点击
break;
case 'wnacg':
css_adsRemove(imax.css.wnacg);
break;
case 'zhidao.baidu.com':
console.log('it\'s zhidao.baidu.com')
css_adsRemove(imax.css.baidu_zhidao, 500, 'fuckbaidu')
setTimeout(() => {
css_adsRemove(imax.css.baidu_zhidao, 500, 'fuckbaidu')
}, 1500)
break;
case 'www.baidu.com':
console.log('Got u! baidu.com')
let regex = /https?:\/\/(www|m)\.baidu\.com\/(from=|s\?)/gi
window.location.href.search(regex) !== -1
if (window.location.href.search(regex) !== -1) {
css_adsRemove(imax.css.baidu_search);
console.log('移除搜索结果广告🪧...')
} else {
adsDomain_switch("zhidao")
css_adsRemove(imax.css.baidu_index);
console.log('移首页广告🪧...')
}
break;
case 'ddys':
//css_adsRemove(imax.css.ddrk);
css_adsRemove(imax.css.ddrk2);
//selector_adsRemove("#sajdhfbjwhe,#kasjbgih,#fkasjgf,img[src*='bcebos']", 0)
var divx = document.createElement('div');
divx.id = 'adblock4limbox';
divx.style = 'display:none;'
var body = document.querySelectorAll('body')[0];
//body.appendChild(divx);
var child = document.querySelectorAll('#sajdhfbjwhe,#kasjbgih,#fkasjgf')
child.forEach((x) => {
divx.appendChild(x);
})
break;
case 'duboku':
third_party_fileX("script", imax.js.duboku, "body")
break;
case 'libvio':
css_adsRemove(imax.css.libvio)
break;
case 'nbys':
css_adsRemove(imax.css.nivod);
break;
case 'ntdm9':
css_adsRemove(imax.css.ntdm9);
const a = document.getElementsByClassName("yammohxz_b");
addEventListener_defuser("touchend"); // 打断监听器
for (i = 0; i < a.length; i++) {
a[i].style = "display: none !important; z-index:-114154; display:block; width:0vw; height:0";
}
break;
case 'tvn':
css_adsRemove(imax.css.tvn)
break;
case 'jable': // 2333
console.log("IT'S JABLE");
window.onload = function () {
if (document.location.href.search('search') !== -1) {
let regex = /.*\/search\//;
let code = window.location.pathname.replace(regex, '').replace('/', '').toLowerCase()
setTimeout(() => {
tmd('#list_videos_videos_list_search_result > nav', code, '试试其他搜索:');
}, 2000)
console.log("生成搜索链接🔗");
}
if (document.querySelector('.plyr__poster') !== null) { // 在其他站点播放
let regex = /.*\/videos\//;
let code = window.location.pathname.replace(regex, '').replace('/', '').toLowerCase();
setTimeout(() => {
tmd('h4', code, '在其他站点播放:');
console.log("生成在其他站点播放链接🔗");
}, 2000)
}
}()
// 子域名跳转至主域名 jable.tv
if (/\b(.*\.)(jable\.tv.*)\b/i.test(window.location.href.toLowerCase())) {
console.log(window.location.href.toLowerCase())
let url_jable_rewrite = window.location.href.toLowerCase().replace(/https:\/\/\w{2,3}\./i, "https://")
console.log(url_jable_rewrite)
window.location.replace(url_jable_rewrite)
}
// 去除首页广告
if (document.querySelectorAll('div.col-6.col-sm-4.col-lg-3').length > 0) {
document.querySelectorAll('div.col-6.col-sm-4.col-lg-3').forEach((x) => { // xxx
if (x.querySelectorAll("[target='_blank']").length > 0) {
x.style = "display: none !important; z-index:-114154; display:block; width:0vw; height:0";
}
})
}
//cloudflare_captchaBypass();
css_adsRemove(imax.css.jable);
jable_adsRemove();
const url_jable = document.location.href;
const reg_videos = /^https:\/\/jable\.tv\/videos/gi;
if (url_jable.search(reg_videos) !== -1) {
setTimeout(() => {
let cssText = "margin-left: 5px; margin-top: 5px; position: static; font-size: smaller !important; background: #2563eb !important; margin-right: 5px; padding: 6px 6px 6px 6px; display: inline-block; color: white; border-right: 6px solid #38a3fd; border-left: #292f33 !important; border-top: #292f33 !important; border-bottom: #292f33 !important; background: #2563eb; border-radius: 0px 0px 0px 0px; font-weight: 800 !important; text-align: right !important;"
let cssText2 = "width:72px; margin-left: 5px; margin-top: 5px; position: static; font-size: smaller !important; background: #2563eb !important; margin-right: 5px; padding: 6px 6px 6px 6px; display: inline-block; color: white; border-right: 6px solid #38a3fd; border-left: #292f33 !important; border-top: #292f33 !important; border-bottom: #292f33 !important; background: #2563eb; border-radius: 0px 0px 0px 0px; font-weight: 800 !important; text-align: right !important;"
ele_dynamicAppend("div.header-left > h6", "onclick", "code", cssText2, "", "avCodeCopy", 13, "input");
ele_dynamicAppend("div.header-left > h6", "onclick", "复制番号", cssText, "", "copyavCode", 14, "button");
ele_dynamicAppend("div.header-left > h6", "onclick", "", cssText, "", "copy", 15, "input");
ele_dynamicAppend("div.header-left > h6", "onclick", "复制M3U8文件地址", cssText, "", "jablex", 16, "button")
ele_dynamicAppend("div.header-left > h6", "onclick", "如何下载视频?", cssText, "window.open(\"https://limbopro.com/archives/M3U8-Downloader.html\", \"_blank\")", "how", 17, "button");
var regex = /[a-zA-Z]{3,5}\-\d{3,5}/i
var avCode = document.querySelectorAll('h4')[0].innerText.match(regex)[0]
//let avCode = window.location.pathname.replace('/videos/', '').replace('/', '')
let input = document.querySelector('#avCodeCopy')
input.value = avCode
// 添加监听器
addListenerById("jablex", () => { copyText("copy", "jablex", "复制M3U8文件地址") }, 0);
addListenerById("copyavCode", () => { avCodeCopy() }, 0);
}, 3000)
function avCodeCopy() {
// 复制工作开始
let civ = document.querySelector('#avCodeCopy')
civ.select()
document.execCommand('copy')
// 复制工作结束
document.querySelector('#copyavCode').innerHTML = '复制成功!'
document.querySelector('#copyavCode').setAttribute('class', 'jable_css')
setTimeout(() => {
document.querySelector('#copyavCode').innerHTML = '复制番号'
document.querySelector('#copyavCode').className = ''
}, 1500)
//}, 0)
}
setTimeout(() => { repeat_regex.forEach(m3u8_tempt) }, 4000);
}
break;
case 'bdys':
css_adsRemove(imax.css.btbdys, 0, "siwtch_button");
css_adsRemove(imax.css.switch, 0, "switch_class")
//videoAds_accelerateSkip(0.1); // 视频广告加速
//setConstant(); // 视频广告加速
hrefAttribute_set();
if (document.querySelectorAll('li[data-increase]')[1] !== null) {
document.querySelectorAll('li[data-increase]')[1].click()
}
var url = document.location.href;
if (url == "https://www.bdys10.com/" || url == "https://www.bdys03.com/") {
if (!document.getElementById("bdys")) {
ele_dynamicAppend("div.container-xl", "onclick", "隐藏公告", "position:inherit; right:92px;" + "padding: 6px 6px 6px 6px; display: inline-block; color: white;z-index: 114154 !important; border-right: 6px solid #38a3fd; border-left: #292f33 !important; border-top: #292f33 !important; border-bottom: #292f33 !important; background: #2563eb; border-radius: 0px 0px 0px 0px; font-weight: 800 !important; text-align: right !important;", "", "bdys", 1, "button");
addListenerById("bdys", () => { notice_hidden("div.col-12") }, 2000);
}
if (getCookie_("hidden") == 1) {
notice_hidden("div.col-12");
}
}
break;
case 'instagram':
// 解除 Instagram 桌面浏览器版禁用右键复制图片
css_adsRemove(imax.css.instagram);
break;
case 'ttsp':
css_adsRemove(imax.css.ttsp);
break;
case 'tz659':
css_adsRemove(imax.css.tz659);
//tag_ads_traversal("body", 0)
break;
case 'anime1':
css_adsRemove(imax.css.anime);
break;
case 'yhdmp':
css_adsRemove(imax.css.yhdmp);
break;
case 'yhpdm':
css_adsRemove(imax.css.yhdmp);
break;
case 'google':
css_adsRemove(imax.css.google);
var userAgent = navigator.userAgent.toLowerCase();
if (/\b(mobile)\b/i.test(userAgent)) {
js_adsRemove(imax.js.contentFarm);
console.log("getYou") // 手机用户 特别是苹果用户会正常加载内容农场脚本
} else {
js_adsRemove(imax.js.contentFarm);
console.log("PC端") // 啥也不做
}
//var goole_selector = "h3,#bres,[class*='AuVD wHYlTd mnr-c']";
//setAttribute_after(goole_selector, "contentFarm_AdsRemove_Auto()");
break;
case 'bing':
js_adsRemove(imax.js.contentFarm);
break;
case 'hltv':
css_adsRemove(imax.css.hltv);
noWindowOpenIf(); // no-window-open-if
break;
case 'nivod': // nbys 泥巴影视
css_adsRemove(imax.css.nivod);
hrefAttribute_set();
setConstant('detailParams.is_ad_play', 'false'); // 泥巴影视PC版播放页视频广告加速
evaldataPrune(); // 泥巴影视移动版播放页视频广告加速
css_adsRemove(imax.css.nbys); // 网页图片广告
setInterval(() => {
remove_parentElement_by_child('view.nut-swiper-item.slider-item', "img[src*='1a732eeb1adb']");
remove_parentElement_by_child('view.nut-swiper-item.slider-item', "img[src*='49e8abd32d13']");
remove_parentElement_by_child('.qy20-h-carousel__ul', "span[style*='d92ea585-0']");
remove_parentElement_by_child("li.qy20-h-carousel__li", "span[style*='0891']");
remove_parentElement_by_child("li.qy20-h-carousel__li", "span[style*='1a2d']");
}, 2000)
break;
case '91short':
css_adsRemove(imax.css._91short);
// 播放页GIF动图广告
const player_info = document.querySelectorAll("div.player-info,li.nav-menu-item")
for (i = 0; i < player_info.length; i++) {
const selector = ['div > a[href][target=_blank]', 'a[href*=kyty]']
if (player_info[i].querySelectorAll(selector).length >= 1) {
player_info[i].style = "display: none !important;";
}
}
// 多余的高
document.querySelector("div.highlight-box").style = "display: none !important;";
addEventListener_defuser("touchend"); // 打断监听器
break;
case 'xiaobaotv':
// nothing to do.
break;
case 'cupfoxapp':
css_adsRemove(imax.css.cupfoxapp, 100, 'fuckcupfoxapp');
break;
case 'dmmiku':
css_adsRemove(imax.css.dmmiku, 100, 'fuckdmmiku');
window_open_defuser();
//addEventListener_defuser();
break;
case 'bfdm':
css_adsRemove(imax.css.bfdm, 100, 'fuckdmmiku');
break;
case 'iyf':
css_adsRemove(imax.css.iyf, 100, 'fuckiyf');
function iyf_css() {
setTimeout(() => {
let iyf_css = "div.ad, .ad, .ad_tag, .dabf > .ng-star-inserted,vg-pause-f, .pggf > .ng-star-inserted"
document.querySelectorAll(iyf_css).forEach((x) => {
x.style = 'display:none;height:0px;'
})
}, 1500)
}
//iyf_css();
aopr();
window.onload = function iyf_hd_switch() {
if (document.querySelectorAll('li[data-v-7f52b4c5').length !== 0) {
document.querySelectorAll('span[data-v-7f52b4c5].leg.relative')[0].click()
}
setTimeout(() => {
let hd = document.querySelectorAll('li[data-v-7f52b4c5')
hd.forEach((x) => {
console.log(x.className)
if (x.className.search('vip|button') == -1) {
if (x.className !== 'active') {
x.click()
console.log('点击...')
}
console.log('此前已点击...')
if (document.querySelector('.van-overlay').style.display !== 'none'
) {
document.querySelector('.van-overlay').click()
}
}
})
}, 1500)
}
// .player-container .play_info
function index(x, id) {
if (document.querySelector(x) !== null) {
if (document.querySelector('#' + id) == null) {
let a = document.createElement('a')
a.href = 'https://www.iyf.tv/'
a.style = 'position:absolute;right:9px;top:0%;color:aqua;z-index:114154;'
a.id = id
a.textContent = '返回首页🏠'
let parentElement = document.querySelector(x)
parentElement.appendChild(a)
console.log('生成首页按钮')
}
if (document.querySelector('#' + id)) {
console.log('Got u!')
} else {
newx();
}
}
}
function newx() {
setTimeout(() => {
index('.play_info', 'iyf_index')
//index('div.player-container', 'iyf_news')
}
, 1500)
}
newx();
var currentUrl = window.location.href;
setInterval(function () {
if (window.location.href !== currentUrl) {
console.log('URL发生变化');
newx();
currentUrl = window.location.href;
}
}, 2000);
videoAds_accelerateSkip(0.1); // 视频广告加速
setConstant(); // 视频广告加速
break;
case 'cnys':
// nothing to do.
//videoAds_accelerateSkip(0.1); // 视频广告加速
//setConstant(); // 视频广告加速
css_adsRemove(imax.css.cnys, 0, 'cnys')
if (document.querySelectorAll('iframe')[2] !== null && document.querySelectorAll('iframe')[2] !== undefined) {
document.querySelectorAll('iframe')[2].style = 'opacity:0% !important; pointer-events: none !important;';
setTimeout(() => {
document.querySelectorAll('iframe')[2].style = 'opacity:1 !important; pointer-events: auto !important;';
setTimeout(() => {
document.querySelectorAll('iframe')[2].contentWindow.document.querySelectorAll('body')[0].querySelectorAll('div#player_pause')[0].style = 'display:none !important';
setTimeout(() => {
//document.querySelectorAll('iframe')[2].contentWindow.document.querySelectorAll('body')[0].querySelectorAll('button.yzmplayer-icon.yzmplayer-play-icon')[0].click();
document.querySelectorAll('iframe')[2].contentWindow.document.querySelectorAll('body')[0].querySelectorAll('button.yzmplayer-icon.yzmplayer-play-icon')[0].addEventListener('touchend', function () {
setTimeout(() => {
document.querySelectorAll('iframe')[2].contentWindow.document.querySelectorAll('body')[0].querySelectorAll('div#player_pause')[0].style = 'display:none !important';
}, 10);
});
}, 1000)
}, 3000)
}, 7500)
}
//document.querySelectorAll('iframe')[2].contentWindow.document.querySelectorAll('body')[0].querySelectorAll('#ADtip')[0].style = 'display:none';
break;
case 'xiaoxintv':
// nothing to do.
adsDomain_switch("xiaobaotv")
break;
case 'javday':
// nothing to do.
css_adsRemove(imax.css.javday, 0, 'javday')
break;
case 'xvideos':
setInterval(() => {
if (!document.getElementById('xvideos_t')) {
css_adsRemove(imax.css.xvideos, 100, "xvideos_t");
noWindowOpenIf();
} else {
noWindowOpenIf();
}
}, 1000)
break;
case 'javbus':
css_adsRemove(imax.css.javbus, 0, "javbus");
function javbus() { // 在番号详情页追加在线预览链接
setTimeout(() => {
let father = 'div.col-md-3.info';
let code = window.location.pathname.replace('/', '')
let url = window.location.href
let regx = /[a-zA-Z]{2,6}\-\d{2,5}/i
if (url.search(regx) !== -1) {
tmd(father, code, '在线预览: ')
} else {
console.log('当前网站不不匹配')
}
}, 2000)
}
javbus()
break;
case 'jav.land': // 444