mirror of
https://github.com/blackmatrix7/ios_rule_script.git
synced 2025-12-14 00:22:13 +00:00
[开屏去广告] 修复部分模块链接失效的问题
This commit is contained in:
36
script/startup/README.md
Normal file
36
script/startup/README.md
Normal file
@@ -0,0 +1,36 @@
|
||||
# 开屏去广告
|
||||
|
||||
使用脚本,通过修改开屏广告图片大小、开屏广告持续时间、开屏广告生效时间等方法,去除缓存到本地的APP开屏广告。
|
||||
|
||||
目前精力有限,仅能满足个人常用APP的开屏广告去除,并且不保证去除效果。
|
||||
|
||||
## 配置说明
|
||||
|
||||
大部分去广告的链接,都已经被整合型的去广告脚本拦截,脚本无法接管请求。
|
||||
|
||||
如果出现拦截失败,请抓包检查相关请求是不是在脚本处理前就已经被拦截。
|
||||
|
||||
## 模块
|
||||
|
||||
```ini
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.sgmodule
|
||||
```
|
||||
|
||||
## 插件
|
||||
|
||||
```ini
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.lnplugin
|
||||
```
|
||||
|
||||
## 重写
|
||||
|
||||
```ini
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.snippet
|
||||
```
|
||||
|
||||
## 覆写
|
||||
|
||||
```ini
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.stoverride
|
||||
```
|
||||
|
||||
214
script/startup/startup.js
Normal file
214
script/startup/startup.js
Normal file
@@ -0,0 +1,214 @@
|
||||
const scriptName = "去除APP启动广告";
|
||||
const $ = MagicJS(scriptName, "INFO");
|
||||
|
||||
(() => {
|
||||
let response = null;
|
||||
if ($.isResponse) {
|
||||
switch (true) {
|
||||
// 爱奇艺
|
||||
case /^https?:\/\/\w*\.cupid\.iqiyi\.com\/mixer\?/.test($.request.url):
|
||||
try {
|
||||
let obj = JSON.parse($.response.body);
|
||||
delete obj["adSlots"];
|
||||
response = { body: JSON.stringify(obj) };
|
||||
} catch (err) {
|
||||
$.logger.error(`爱奇艺开屏去广告出现异常:${err}`);
|
||||
}
|
||||
break;
|
||||
// BiliBili
|
||||
case /^https?:\/\/app\.bilibili\.com\/x\/v2\/splash\/list/.test($.request.url):
|
||||
try {
|
||||
let obj = JSON.parse($.response.body);
|
||||
obj["data"]["max_time"] = 0;
|
||||
obj["data"]["min_interval"] = 31536000;
|
||||
obj["data"]["pull_interval"] = 31536000;
|
||||
// for (let i = 0; i < obj["data"]["show"].length; i++) {
|
||||
// obj["data"]["show"][i]["begin_time"] = 1915027200;
|
||||
// obj["data"]["show"][i]["end_time"] = 1924272000;
|
||||
// }
|
||||
obj["data"]["list"]["show"] = [];
|
||||
for (let i = 0; i < obj["data"]["list"].length; i++) {
|
||||
obj["data"]["list"][i]["duration"] = 0;
|
||||
obj["data"]["list"][i]["begin_time"] = 1915027200;
|
||||
obj["data"]["list"][i]["end_time"] = 1924272000;
|
||||
}
|
||||
body = JSON.stringify(obj);
|
||||
} catch (err) {
|
||||
$.logger.error(`BiliBili开屏去广告出现异常:${err}`);
|
||||
}
|
||||
break;
|
||||
// Fa米家
|
||||
case /^https?:\/\/fmapp\.chinafamilymart\.com\.cn\/api\/app\/market\/start\/ad/.test($.request.url):
|
||||
try {
|
||||
let obj = JSON.parse($.response.body);
|
||||
if (obj.code === "200") {
|
||||
obj.data.relayDisplayUrl = "";
|
||||
}
|
||||
obj.data = {};
|
||||
response = { body: JSON.stringify(obj) };
|
||||
} catch (err) {
|
||||
$.logger.error(`Fa米家开屏去广告出现异常:${err}`);
|
||||
}
|
||||
// 嘀嗒出行
|
||||
case /^https?:\/\/capis(-?\w*)?\.didapinche\.com\/ad\/cx\/startup\?/.test($.request.url):
|
||||
try {
|
||||
let obj = JSON.parse($.response.body);
|
||||
if (obj.hasOwnProperty("startupPages") === true) {
|
||||
obj.show_time = 1;
|
||||
obj.full_screen = 0;
|
||||
let startupPages = [];
|
||||
obj.startupPages.forEach((element) => {
|
||||
element["width"] = 1;
|
||||
element["height"] = 1;
|
||||
element["page_url"] = "#";
|
||||
element["create_time"] = "20990101000000";
|
||||
element["start_time"] = "20990101000000";
|
||||
element["end_time"] = "20990101000000";
|
||||
startupPages.push(element);
|
||||
});
|
||||
obj.startupPages = startupPages;
|
||||
response = { body: JSON.stringify(obj) };
|
||||
}
|
||||
} catch (err) {
|
||||
$.logger.error(`嘀嗒出行开屏去广告出现异常:${err}`);
|
||||
}
|
||||
break;
|
||||
// 美团外卖
|
||||
case /^https?:\/\/wmapi\.meituan\.com\/api\/v\d+\/loadInfo?/.test($.request.url):
|
||||
try {
|
||||
let obj = JSON.parse($.response.body);
|
||||
if (obj.data.startpicture.hasOwnProperty("ad")) {
|
||||
obj.data.startpicture.ad = [];
|
||||
} else if (obj.data.startpicture.hasOwnProperty("mk")) {
|
||||
obj.data.startpicture.mk = [];
|
||||
} else {
|
||||
obj.data.startpicture = [];
|
||||
}
|
||||
response = { body: JSON.stringify(obj) };
|
||||
} catch (err) {
|
||||
$.logger.error(`美团外卖开屏去广告出现异常:${err}`);
|
||||
}
|
||||
break;
|
||||
// 小爱音箱
|
||||
case /^https?:\/\/hd\.mina\.mi\.com\/splashscreen\/alert/.test($.request.url):
|
||||
try {
|
||||
let obj = JSON.parse($.response.body);
|
||||
let data = [];
|
||||
for (let i = 0; i < obj.data.length; i++) {
|
||||
let ad = obj.data[i];
|
||||
ad.start = "1924272000000";
|
||||
ad.end = "1924358400000";
|
||||
ad.stay = 1;
|
||||
ad.maxTimes = 1;
|
||||
data.push(ad);
|
||||
}
|
||||
obj.data = data;
|
||||
response = { body: JSON.stringify(obj) };
|
||||
} catch (err) {
|
||||
$.logger.error(`小爱音箱开屏去广告出现异常:${err}`);
|
||||
}
|
||||
break;
|
||||
// 京东
|
||||
case /^https?:\/\/api\.m\.jd\.com\/client\.action\?functionId=start/.test($.request.url):
|
||||
try {
|
||||
let obj = JSON.parse($.response.body);
|
||||
for (let i = 0; i < obj.images.length; i++) {
|
||||
for (let j = 0; j < obj.images[i].length; j++) {
|
||||
if (obj.images[i][j].showTimes) {
|
||||
obj.images[i][j].showTimes = 0;
|
||||
obj.images[i][j].onlineTime = "2030-12-24 00:00:00";
|
||||
obj.images[i][j].referralsTime = "2030-12-25 00:00:00";
|
||||
obj.images[i][j].time = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
obj.countdown = 100;
|
||||
obj.showTimesDaily = 0;
|
||||
response = { body: JSON.stringify(obj) };
|
||||
} catch (err) {
|
||||
$.logger.error(`京东开屏去广告出现异常:${err}`);
|
||||
}
|
||||
break;
|
||||
// 联享家
|
||||
case /^https?:\/\/mi\.gdt\.qq\.com\/gdt_mview.fcg/.test($.request.url):
|
||||
try {
|
||||
let obj = JSON.parse($.response.body);
|
||||
obj.seq = "0";
|
||||
obj.reqinterval = 0;
|
||||
delete obj["last_ads"];
|
||||
delete obj.data;
|
||||
response = { body: JSON.stringify(obj) };
|
||||
} catch (err) {
|
||||
$.logger.error(`联享家开屏去广告出现异常:${err}`);
|
||||
}
|
||||
break;
|
||||
// 多点
|
||||
case /^https?:\/\/cmsapi\.dmall\.com\/app\/home\/homepageStartUpPic/.test($.request.url):
|
||||
try {
|
||||
let obj = JSON.parse($.response.body);
|
||||
for (let i = 0; i < obj["data"]["welcomePage"].length; i++) {
|
||||
obj["data"]["welcomePage"][i]["onlineTime"] = 1915027200000;
|
||||
obj["data"]["welcomePage"][i]["offlineTime"] = 1924272000000;
|
||||
}
|
||||
response = { body: JSON.stringify(obj) };
|
||||
} catch (err) {
|
||||
$.logger.error(`多点开屏广告处理出现异常:${err}`);
|
||||
}
|
||||
break;
|
||||
// 轻牛健康
|
||||
case /^https?:\/\/gw\.yolanda\.hk\/api\/servlets\?endpoint=banners\/show_launch_banner/.test($.request.url):
|
||||
try {
|
||||
let obj = {
|
||||
"code": "200",
|
||||
"msg": "ok",
|
||||
"data": {
|
||||
"present_flag": 1,
|
||||
"banner": {
|
||||
"banner_id": "1861064161258799417",
|
||||
"image": "http://qnplus-banner.glb.qnniu.com/banner_1636700135",
|
||||
"image_type": 1,
|
||||
"jump_link": "https://app-h5.yolanda.hk/redirect_center.html?type=fascia_gun",
|
||||
"jump_type": 1,
|
||||
"duration": 5,
|
||||
"frequency": 1,
|
||||
"updated_at": 1638157314
|
||||
}
|
||||
}
|
||||
}
|
||||
response = { body: JSON.stringify(obj) };
|
||||
} catch (err) {
|
||||
$.logger.error(`轻牛健康开屏广告处理出现异常:${err}`);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
$.logger.warning(`触发意外的请求处理,请确认脚本或复写配置正常。URL:\n${$.request.url}`);
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
$.logger.warning(`触发意外的请求处理,请确认脚本或复写配置正常。URL:\n${$.request.url}`);
|
||||
}
|
||||
if (response) {
|
||||
$.done(response);
|
||||
} else {
|
||||
$.done();
|
||||
}
|
||||
})();
|
||||
|
||||
// prettier-ignore
|
||||
/**
|
||||
*
|
||||
* $$\ $$\ $$\ $$$$$\ $$$$$$\ $$$$$$\
|
||||
* $$$\ $$$ | \__| \__$$ |$$ __$$\ $$ ___$$\
|
||||
* $$$$\ $$$$ | $$$$$$\ $$$$$$\ $$\ $$$$$$$\ $$ |$$ / \__| \_/ $$ |
|
||||
* $$\$$\$$ $$ | \____$$\ $$ __$$\ $$ |$$ _____| $$ |\$$$$$$\ $$$$$ /
|
||||
* $$ \$$$ $$ | $$$$$$$ |$$ / $$ |$$ |$$ / $$\ $$ | \____$$\ \___$$\
|
||||
* $$ |\$ /$$ |$$ __$$ |$$ | $$ |$$ |$$ | $$ | $$ |$$\ $$ | $$\ $$ |
|
||||
* $$ | \_/ $$ |\$$$$$$$ |\$$$$$$$ |$$ |\$$$$$$$\\$$$$$$ |\$$$$$$ | \$$$$$$ |
|
||||
* \__| \__| \_______| \____$$ |\__| \_______|\______/ \______/ \______/
|
||||
* $$\ $$ |
|
||||
* \$$$$$$ |
|
||||
* \______/
|
||||
*
|
||||
*/
|
||||
// prettier-ignore
|
||||
function MagicJS(scriptName="MagicJS",logLevel="INFO"){const MagicEnvironment=()=>{const isLoon=typeof $loon!=="undefined";const isQuanX=typeof $task!=="undefined";const isNode=typeof module!=="undefined";const isSurge=typeof $httpClient!=="undefined"&&!isLoon;const isStorm=typeof $storm!=="undefined";const isStash=typeof $environment!=="undefined"&&typeof $environment["stash-build"]!=="undefined";const isSurgeLike=isSurge||isLoon||isStorm||isStash;const isScriptable=typeof importModule!=="undefined";return{isLoon:isLoon,isQuanX:isQuanX,isNode:isNode,isSurge:isSurge,isStorm:isStorm,isStash:isStash,isSurgeLike:isSurgeLike,isScriptable:isScriptable,get name(){if(isLoon){return"Loon"}else if(isQuanX){return"QuantumultX"}else if(isNode){return"NodeJS"}else if(isSurge){return"Surge"}else if(isScriptable){return"Scriptable"}else{return"unknown"}},get build(){if(isSurge){return $environment["surge-build"]}else if(isStash){return $environment["stash-build"]}else if(isStorm){return $storm.buildVersion}},get language(){if(isSurge||isStash){return $environment["language"]}},get version(){if(isSurge){return $environment["surge-version"]}else if(isStash){return $environment["stash-version"]}else if(isStorm){return $storm.appVersion}else if(isNode){return process.version}},get system(){if(isSurge){return $environment["system"]}else if(isNode){return process.platform}},get systemVersion(){if(isStorm){return $storm.systemVersion}},get deviceName(){if(isStorm){return $storm.deviceName}}}};const MagicLogger=(scriptName,logLevel="INFO")=>{let _level=logLevel;const logLevels={SNIFFER:6,DEBUG:5,INFO:4,NOTIFY:3,WARNING:2,ERROR:1,CRITICAL:0,NONE:-1};const logEmoji={SNIFFER:"",DEBUG:"",INFO:"",NOTIFY:"",WARNING:"❗ ",ERROR:"❌ ",CRITICAL:"❌ ",NONE:""};const _log=(msg,level="INFO")=>{if(!(logLevels[_level]<logLevels[level.toUpperCase()]))console.log(`[${level}] [${scriptName}]\n${logEmoji[level.toUpperCase()]}${msg}\n`)};const setLevel=logLevel=>{_level=logLevel};return{getLevel:()=>{return _level},setLevel:setLevel,sniffer:msg=>{_log(msg,"SNIFFER")},debug:msg=>{_log(msg,"DEBUG")},info:msg=>{_log(msg,"INFO")},notify:msg=>{_log(msg,"NOTIFY")},warning:msg=>{_log(msg,"WARNING")},error:msg=>{_log(msg,"ERROR")},retry:msg=>{_log(msg,"RETRY")}}};return new class{constructor(scriptName,logLevel){this._startTime=Date.now();this.version="3.0.0";this.scriptName=scriptName;this.env=MagicEnvironment();this.logger=MagicLogger(scriptName,logLevel);this.http=typeof MagicHttp==="function"?MagicHttp(this.env,this.logger):undefined;this.data=typeof MagicData==="function"?MagicData(this.env,this.logger):undefined;this.notification=typeof MagicNotification==="function"?MagicNotification(this.scriptName,this.env,this.logger,this.http):undefined;this.utils=typeof MagicUtils==="function"?MagicUtils(this.env,this.logger):undefined;this.qinglong=typeof MagicQingLong==="function"?MagicQingLong(this.env,this.data,this.logger):undefined;if(typeof this.data!=="undefined"){let magicLoglevel=this.data.read("magic_loglevel");const barkUrl=this.data.read("magic_bark_url");if(magicLoglevel){this.logger.setLevel(magicLoglevel.toUpperCase())}if(barkUrl){this.notification.setBark(barkUrl)}}}get isRequest(){return typeof $request!=="undefined"&&typeof $response==="undefined"}get isResponse(){return typeof $response!=="undefined"}get isDebug(){return this.logger.level==="DEBUG"}get request(){return typeof $request!=="undefined"?$request:undefined}get response(){if(typeof $response!=="undefined"){if($response.hasOwnProperty("status"))$response["statusCode"]=$response["status"];if($response.hasOwnProperty("statusCode"))$response["status"]=$response["statusCode"];return $response}else{return undefined}}done=(value={})=>{this._endTime=Date.now();let span=(this._endTime-this._startTime)/1e3;this.logger.info(`SCRIPT COMPLETED: ${span} S.`);if(typeof $done!=="undefined"){$done(value)}}}(scriptName,logLevel)}
|
||||
20
script/startup/startup.lnplugin
Normal file
20
script/startup/startup.lnplugin
Normal file
@@ -0,0 +1,20 @@
|
||||
#!name= 开屏去广告
|
||||
#!desc= 通过脚本去除部分APP顽固开屏广告
|
||||
#!openUrl= https://github.com/blackmatrix7/ios_rule_script
|
||||
#!author= blackmatrix7
|
||||
#!homepage= https://github.com/blackmatrix7/ios_rule_script
|
||||
#!icon= https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/source/avatar.jpg
|
||||
|
||||
[Script]
|
||||
http-response ^https?:\/\/(t7z|kjp)\.cupid\.iqiyi\.com\/mixer\? requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js,tag=爱奇艺_开屏去广告
|
||||
http-response ^https?:\/\/capis(-?\w*)?\.didapinche\.com\/ad\/cx\/startup\? requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js,tag=嘀嗒出行_开屏去广告
|
||||
http-response ^https?:\/\/fmapp\.chinafamilymart\.com\.cn\/api\/app\/market\/start\/ad requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js,tag=Fa米家_开屏去广告
|
||||
http-response ^https?:\/\/app\.bilibili\.com\/x\/v2\/splash\/(show|list) requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js,tag=BiliBili_开屏去广告
|
||||
http-response ^https?:\/\/wmapi\.meituan\.com\/api\/v\d+\/loadInfo? requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js,tag=美团外卖_开屏去广告
|
||||
http-response ^https?:\/\/hd\.mina\.mi\.com\/splashscreen\/alert requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js,tag=小爱音箱_开屏去广告
|
||||
http-response ^https?:\/\/hd\.mina\.mi\.com\/splashscreen\/alert requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js,tag=京东_开屏去广告
|
||||
http-response ^https?:\/\/mi\.gdt\.qq\.com\/gdt_mview.fcg requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js,tag=联享家_开屏去广告
|
||||
http-response ^https?:\/\/cmsapi\.dmall\.com\/app\/home\/homepageStartUpPic requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js,tag=多点_开屏去广告
|
||||
|
||||
[MITM]
|
||||
hostname = capis.didapinche.com,capis*.didapinche.com,fmapp.chinafamilymart.com.cn,app.bilibili.com,wmapi.meituan.com,hd.mina.mi.com,api.m.jd.com,mi.gdt.qq.com,cmsapi.dmall.com,*.cupid.iqiyi.com
|
||||
21
script/startup/startup.sgmodule
Normal file
21
script/startup/startup.sgmodule
Normal file
@@ -0,0 +1,21 @@
|
||||
#!name=开屏去广告
|
||||
#!desc=通过脚本去除部分APP的顽固开屏广告
|
||||
#!system=ios
|
||||
|
||||
[General]
|
||||
force-http-engine-hosts = %APPEND% t7z.cupid.iqiyi.com,kjp.cupid.iqiyi.com,*.didapinche.com
|
||||
|
||||
[Script]
|
||||
爱奇艺_开屏去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/(t7z|kjp)\.cupid\.iqiyi\.com\/mixer\?,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
嘀嗒出行_开屏去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/capis(-?\w*)?\.didapinche\.com\/ad\/cx\/startup\?,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
Fa米家_开屏去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/fmapp\.chinafamilymart\.com\.cn\/api\/app\/market\/start\/ad,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
BiliBili_开屏去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/app\.bilibili\.com\/x\/v2\/splash\/(show|list),script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
美团外卖_开屏去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/wmapi\.meituan\.com\/api\/v\d+\/loadInfo?,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
小爱音箱_开屏去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/hd\.mina\.mi\.com\/splashscreen\/alert,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
京东_开屏去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/api\.m\.jd\.com\/client\.action\?functionId=start,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
联享家_开屏去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/mi\.gdt\.qq\.com\/gdt_mview.fcg,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
多点_开屏去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/cmsapi\.dmall\.com\/app\/home\/homepageStartUpPic,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
轻牛健康_开屏去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/gw\.yolanda\.hk\/api\/servlets\?endpoint=banners\/show_launch_banner,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
|
||||
[MITM]
|
||||
hostname = %APPEND% capis.didapinche.com,capis*.didapinche.com,fmapp.chinafamilymart.com.cn,app.bilibili.com,wmapi.meituan.com,hd.mina.mi.com,api.m.jd.com,mi.gdt.qq.com,cmsapi.dmall.com,gw.yolanda.hk,t7z.cupid.iqiyi.com,kjp.cupid.iqiyi.com
|
||||
20
script/startup/startup.snippet
Normal file
20
script/startup/startup.snippet
Normal file
@@ -0,0 +1,20 @@
|
||||
# 爱奇艺
|
||||
^https?:\/\/(t7z|kjp)\.cupid\.iqiyi\.com\/mixer\? url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
# 嘀嗒出行
|
||||
^https?:\/\/capis(-?\w*)?\.didapinche\.com\/ad\/cx\/startup\? url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
# Fa米家
|
||||
^https?:\/\/fmapp\.chinafamilymart\.com\.cn\/api\/app\/market\/start\/ad url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
# BiliBili
|
||||
^https?:\/\/app\.bilibili\.com\/x\/v2\/splash\/(show|list) url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
# 美团外卖
|
||||
^https?:\/\/wmapi\.meituan\.com\/api\/v\d+\/loadInfo? url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
# 小爱音箱
|
||||
^https?:\/\/hd\.mina\.mi\.com\/splashscreen\/alert url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
# 京东
|
||||
^https?:\/\/api\.m\.jd\.com\/client\.action\?functionId=start url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
# 联享家
|
||||
^https?:\/\/mi\.gdt\.qq\.com\/gdt_mview.fcg url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
# 多点
|
||||
^https?:\/\/cmsapi\.dmall\.com\/app\/home\/homepageStartUpPic url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
|
||||
hostname = *.didapinche.com,fmapp.chinafamilymart.com.cn,app.bilibili.com,wmapi.meituan.com,hd.mina.mi.com,api.m.jd.com,mi.gdt.qq.com,cmsapi.dmall.com,*.cupid.iqiyi.com
|
||||
104
script/startup/startup.stoverride
Normal file
104
script/startup/startup.stoverride
Normal file
@@ -0,0 +1,104 @@
|
||||
name: 开屏去广告
|
||||
desc: 通过脚本去除部分APP的顽固开屏广告
|
||||
|
||||
http:
|
||||
script:
|
||||
# 爱奇艺_开屏去广告
|
||||
- match: ^https?:\/\/(t7z|kjp)\.cupid\.iqiyi\.com\/mixer\?
|
||||
name: startup.js
|
||||
type: response
|
||||
require-body: true
|
||||
timeout: 30
|
||||
argument: ''
|
||||
|
||||
# 嘀嗒出行_开屏去广告
|
||||
- match: ^https?:\/\/capis(-?\w*)?\.didapinche\.com\/ad\/cx\/startup\?
|
||||
name: startup.js
|
||||
type: response
|
||||
require-body: true
|
||||
timeout: 30
|
||||
argument: ''
|
||||
|
||||
# Fa米家_开屏去广告
|
||||
- match: ^https?:\/\/fmapp\.chinafamilymart\.com\.cn\/api\/app\/market\/start\/ad
|
||||
name: startup.js
|
||||
type: response
|
||||
require-body: true
|
||||
timeout: 30
|
||||
argument: ''
|
||||
|
||||
# BiliBili_开屏去广告
|
||||
- match: ^https?:\/\/app\.bilibili\.com\/x\/v2\/splash\/(show|list)
|
||||
name: startup.js
|
||||
type: response
|
||||
require-body: true
|
||||
timeout: 30
|
||||
argument: ''
|
||||
|
||||
# 美团外卖_开屏去广告
|
||||
- match: ^https?:\/\/wmapi\.meituan\.com\/api\/v\d+\/loadInfo?
|
||||
name: startup.js
|
||||
type: response
|
||||
require-body: true
|
||||
timeout: 30
|
||||
argument: ''
|
||||
|
||||
# 小爱音箱_开屏去广告
|
||||
- match: ^https?:\/\/hd\.mina\.mi\.com\/splashscreen\/alert
|
||||
name: startup.js
|
||||
type: response
|
||||
require-body: true
|
||||
timeout: 30
|
||||
argument: ''
|
||||
|
||||
# 京东_开屏去广告
|
||||
- match: ^https?:\/\/api\.m\.jd\.com\/client\.action\?functionId=start
|
||||
name: startup.js
|
||||
type: response
|
||||
require-body: true
|
||||
timeout: 30
|
||||
argument: ''
|
||||
|
||||
# 联享家_开屏去广告
|
||||
- match: ^https?:\/\/mi\.gdt\.qq\.com\/gdt_mview.fcg
|
||||
name: startup.js
|
||||
type: response
|
||||
require-body: true
|
||||
timeout: 30
|
||||
argument: ''
|
||||
|
||||
# 多点_开屏去广告
|
||||
- match: ^https?:\/\/cmsapi\.dmall\.com\/app\/home\/homepageStartUpPic
|
||||
name: startup.js
|
||||
type: response
|
||||
require-body: true
|
||||
timeout: 30
|
||||
argument: ''
|
||||
|
||||
# 轻牛健康_开屏去广告
|
||||
- match: ^https?:\/\/gw\.yolanda\.hk\/api\/servlets\?endpoint=banners\/show_launch_banner
|
||||
name: startup.js
|
||||
type: response
|
||||
require-body: true
|
||||
timeout: 30
|
||||
argument: ''
|
||||
|
||||
mitm:
|
||||
- "capis.didapinche.com"
|
||||
- "capis*.didapinche.com"
|
||||
- "fmapp.chinafamilymart.com.cn"
|
||||
- "app.bilibili.com"
|
||||
- "wmapi.meituan.com"
|
||||
- "hd.mina.mi.com"
|
||||
- "api.m.jd.com"
|
||||
- "mi.gdt.qq.com"
|
||||
- "cmsapi.dmall.com"
|
||||
- "gw.yolanda.hk"
|
||||
- "t7z.cupid.iqiyi.com"
|
||||
- "kjp.cupid.iqiyi.com"
|
||||
|
||||
script-providers:
|
||||
startup.js:
|
||||
url: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
interval: 86400
|
||||
|
||||
Reference in New Issue
Block a user