File tree 1 file changed +17
-15
lines changed
1 file changed +17
-15
lines changed Original file line number Diff line number Diff line change 26
26
}
27
27
28
28
// check script banned
29
- checkAdScriptBanned (' https://log.mmstat.com/eg .js' );
29
+ checkAdScriptBanned (" https://cdn.wwads.cn/js/makemoney .js" );
30
30
}
31
-
31
+
32
32
function checkAdScriptBanned (scriptUrl ) {
33
33
fetch (scriptUrl)
34
- .then (response => {
35
- if (! response .ok ) {
36
- console .log (" ADBlock detected, cause script can't be loaded" );
37
- hasAdBlockDetected = true ;
38
- }
39
- })
40
- .catch (() => {
41
- console .log (" ADBlock detected, cause script banned" );
34
+ .then ((response ) => {
35
+ if (! response .ok ) {
36
+ console .log (" ADBlock detected, cause script can't be loaded" );
42
37
hasAdBlockDetected = true ;
43
- });
38
+ }
39
+ })
40
+ .catch (() => {
41
+ console .log (" ADBlock detected, cause script banned" );
42
+ hasAdBlockDetected = true ;
43
+ });
44
44
}
45
45
46
46
onMount (() => {
55
55
: 'hidden'} fixed inset-0 bg-black bg-opacity-90 z-[99999]"
56
56
>
57
57
< div class = " m-auto p-5 bg-white rounded-lg text-center space-y-4" >
58
- < button
59
- class = " absolute top-3 right-3 text-black text-white bg-transparent"
60
- on: click= {closeNotice}> ×< / button
61
- >
62
58
< p class = " text-center text-lg text-gray-700" >
63
59
我们的广告服务商并不跟踪您的隐私,为了支持本站的长期运营,请将我们的网站加入广告拦截器的白名单,谢谢!
64
60
< / p>
77
73
>
78
74
查看加入白名单教程
79
75
< / a>
76
+ < button
77
+ class = " px-4 py-2 bg-neutral-300 text-white rounded hover:bg-neutral-400 transition duration-300 text-current no-underline hover:no-underline"
78
+ on: click= {closeNotice}
79
+ >
80
+ 关闭
81
+ < / button>
80
82
< / div>
81
83
< / div>
82
84
< / div>
You can’t perform that action at this time.
0 commit comments