Skip to content

Commit ca09c0b

Browse files
committed
.
1 parent 031d189 commit ca09c0b

File tree

314 files changed

+14297
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

314 files changed

+14297
-0
lines changed

CNAME

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
keywos.eu.org

JS/12306.js

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//转自@kokoryh
2+
!(function () {
3+
let e,
4+
a = JSON.parse($request.body);
5+
e =
6+
"0007" === a.placementNo
7+
? '{"materialsList":[{"billMaterialsId":"255","filePath":"h","creativeType":1}],"advertParam":{"skipTime":1}}'
8+
: "G0054" === a.placementNo
9+
? '{"code":"00","materialsList":[{}]}'
10+
: '{"code":"00","message":"无广告返回"}';
11+
"undefined" != typeof $task
12+
? $done({ body: e })
13+
: $done({ response: { body: e } });
14+
})();

JS/Blinew.js

+95
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

JS/ConnectivityTest.js

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// YouTube少了e是为了对齐,加入了百度和bilibili测速,感谢@小白脸重写脚本原脚本,原作者@yibeizipeini来自于https://raw.githubusercontent.com/yibeizipeini/JavaScript/Surge/ConnectivityTest.js
2+
let $ = {
3+
Bilibili:'https://www.bilibili.com',
4+
Baidu:'https://www.baidu.com',
5+
YouTub:'https://www.youtube.com/',
6+
Google:'https://www.google.com/generate_204',
7+
Github:'https://www.github.com'}
8+
!(async () => {
9+
await Promise.all([http('Baidu'),http('Bilibili'),http('Github'),http('Google'),http('YouTub')]).then((x)=>{
10+
$done({
11+
title: 'Network Connectivity Test',
12+
content: x.join('\n'),
13+
icon: 'timer',
14+
'icon-color': '#FF5A9AF9',
15+
})})})();
16+
function http(req) {
17+
return new Promise((r) => {
18+
let time = Date.now();
19+
$httpClient.post($[req], (err, resp, data) => {
20+
r(req +
21+
'\xa0\xa0\xa0\xa0\t: ' +
22+
(Date.now() - time)+' ms');
23+
});});}

JS/Daily.js

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
#!name=推栏 开屏广告
3+
#!desc=2023..17
4+
5+
[MITM]
6+
hostname = %APPEND% m.pvp.xoyo.com
7+
8+
[Script]
9+
mm = type=http-response,pattern=^https\:\/\/m\.pvp\.xoyo\.com\/conf\/server-mapping,requires-body=1,max-size=0,script-path=https://github.com/Keywos/rule/raw/main/JS/Daily.js
10+
*/
11+
let obj = JSON.parse($response.body);
12+
obj.data.splashConfNew.forEach(item => {
13+
item.aliveTime = 0;
14+
item.status = item.status.replace("ON", "OFF");
15+
let props = ["urlX", "url", "title"];
16+
if (obj.data) {
17+
props.forEach((prop) => {
18+
delete item[prop];
19+
});}});
20+
$done({body: JSON.stringify(obj)});

0 commit comments

Comments
 (0)