blackmatrix7 / ios_rule_script Goto Github PK
View Code? Open in Web Editor NEW分流规则、重写写规则及脚本。
License: GNU General Public License v2.0
分流规则、重写写规则及脚本。
License: GNU General Public License v2.0
把^https?://api.zhihu.com/(moments|topstory)(/|?)?(recommend|action=|feed_type=) url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.js 注释掉,想法不存在的问题就解决了。
但这个正则和脚本貌似没有匹配到https://api.zhihu.com/pins/1297608506535374800/reactions 这个,不知道是什么原因呢。
当一个使用域名的请求遇到IP-CIDR规则时,Surge需要进行DNS查询才能确定是否应该执行规则。如果启用该选项将会使域名请求跳过该规则。
https://www\.zhihu\.com/api/v4/questions/\d+/related-readings url reject-200
https://www\.zhihu\.com/api/v4/answers/\d+/related-readings url reject-200
https://www\.zhihu\.com/api/v4/hot_recommendation url reject-200
https://www\.zhihu\.com/commercial_api/banners_v3/mobile_banner url reject-200
https://zhuanlan\.zhihu\.com/api/articles/\d+/recommendation url reject-200
[mitm]
hostname = www.zhihu.com, zhuanlan.zhihu.com
应为 ^https?://h5.ele.me/restapi/svip_biz/v1/supervip/query_mission_list?.longitude=([^&]).latitude=([^&])
也是一位规则爬虫大佬
direct以及proxy域名量相当庞大
其它规则都失效了,还要在您的重写地址后边加#out=googlevideo 比较麻烦,建议更新下哈。
URL-REGEX,^http://cdn-1rtb.caiyunapp.com/creative/.*$,REJECT
Fa米家按照描述的方法无法获取cookie,听说最新版接口变了,不知道是否这个原因
click.mz.simba.taobao.com这个域名被屏蔽,手动放行后并无可感知的广告出现。此问题在前段时间ACL4SSR广告规则项目下反馈过,被修正了。
https://github.com/ACL4SSR/ACL4SSR/issues/426
大佬,发现你的脚本库里知乎文件内,就是商店版的loon没有去广告的脚本,只有一个后缀js的文件,这个在loon里也不能用。
Sent from PPHub
清空浏览器缓存之后,问题依旧
如题
你好,请问如果我要把什么值得买的 cookie 直接写到签到脚本里,可以怎么定义?
我在瞎改成使用 GitHub actions 来运行签到,因为不懂代码,参考的“ https://github.com/BlueskyClouds/My-Actions ”尝试了很多种改法,一直未能成功。
希望能得到你的解答,非常感谢!
`
// 公共变量
const KEY = process.env.SMZDM_COOKIE
const USER = process.env.SMZDM_USER
const PASS = process.env.SMZDM_PASS
const SEND_KEY = process.env.SEND_KEY
async function downFile () {
const url = 'https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_checkin.js'
await download(url, './')
}
async function changeFiele () {
let content = await fs.readFileSync('./smzdm_checkin.js', 'utf8')
content = content.replace(/smzdmCookieKey = 'smzdm_cookie' = ''/, smzdmCookieKey = '${KEY}'
)
content = content.replace(/const smzdmAccount = ''/, const smzdmAccount = '${USER}'
)
content = content.replace(/const smzdmPassword = ''/, const smzdmPassword = '${PASS}'
)
await fs.writeFileSync( './smzdm_checkin.js', content, 'utf8')
}
`
“关注”页中
将“默认排序”更改为“时间排序”
去广告效果丢失
能否让“时间排序”下也实现去广告
“默认排序”的排序逻辑,应该不是所有人都能接受的
观察了一下,以/rule/Surge/AdvertisingTest中的Domain.list为例
比如这组,
“.a.com”等效于“DOMAIN-SUFFIX,a.com”,
前面不带“.”的那个可以去除
botiviga.com
.botiviga.com
这是另一组例子
.jumptap.com
bo.jumptap.com
bos-tapreq01.jumptap.com
bos-tapreq02.jumptap.com
bos-tapreq03.jumptap.com
bos-tapreq04.jumptap.com
bos-tapreq05.jumptap.com
bos-tapreq06.jumptap.com
bos-tapreq07.jumptap.com
bos-tapreq08.jumptap.com
bos-tapreq09.jumptap.com
bos-tapreq10.jumptap.com
bos-tapreq11.jumptap.com
bos-tapreq12.jumptap.com
bos-tapreq13.jumptap.com
bos-tapreq14.jumptap.com
bos-tapreq15.jumptap.com
bos-tapreq16.jumptap.com
bos-tapreq17.jumptap.com
bos-tapreq18.jumptap.com
bos-tapreq19.jumptap.com
bos-tapreq20.jumptap.com
web63.jumptap.com
web64.jumptap.com
web65.jumptap.com
环境:ios13.7, loon最新2.1.3,qq音乐最新10.5.5,
订阅的规则有: rewrite/Loon/Advertising.plugin;
rule/Loon/Advertising/Advertising.list + Domain.list + MITM.plugin;
rule/Loon/Global/Global.list + MITM.plugin;
rule/Loon/Apple/Apple.list + Domain.list;
rule/Loon/China/China.list;
rule/Loon/ChinaIPs/ChinaIPs.list;
script/zhihu/zhihu_lite.loonplugin;
逐个排除都没发现是具体哪个规则有影响,但是关掉Loon就可以听了
https://www.zhihu.com/question/335181155/answer/1509438447
浏览这个回答,并不会提示有推广内容
苹果开完发布会,还有ios 14正式版推送。
导致这几天苹果很多问题下面的回答,各种塞购物链接!
更离谱的是:刚才刷到一个美队漏鸟相关的问题,回答里居然有推荐内裤的……
目前几乎所有有过滤字节跳动广告的重写都会导致字节跳动的办公app,飞书无法正常使用
飞书获取聊天接口会调用
mon.snssdk.com
我目前是自己加了一个 hostname: -mon.snssdk.com
mitm和rewrite配置都是对的,但在首页推荐以及详情评论下方还是有广告,不过广告内容似乎是固定的,尝试过清楚缓存和卸载重装依然出现
如果我清空缓存以后,首页的内容无法刷出来,如果关闭助手刷出内容以后再开助手,则可以刷新内容 surgetf4.10 知乎6.58.0(6724) 有时候会提示 似乎断开互联网连接,复写里无任何与知乎相关的内容
去广告规则Domain.list中
.duiba.com.cn
会导致误杀海底捞App签到页面
在 NobyDa/ND-AD#7 有类似报告,希望能够加入规则黑名单。感谢您的维护。
activityCode部分,前面多了个=
发现Advertising.sgmodule
与AdvertisingTest.list中的URL-REGEX类规则相同
能否提供一个Mitm.sgmodule
个人—设置—屏蔽设置—管理黑名单
知乎 6.52.0(2548)
surge 4.10.0(Build 1797)
clash for windows也是通用的
不支持USER-AGENT
支持PROCESS-NAME
示例:https://lancellc.gitbook.io/clash/clash-config-file/rule-provider
If arule-provider file named as testprovider and behavior is domain:
testprovider
payload:
If arule-provider file named as testprovider2 and behavior is ipcidr:
testprovider2
payload:
If arule-provider file named as testprovider3 and behavior is classical:
testprovider3
payload:
这位大佬爬取了Adguard 的规则,都是DOMAIN-SET格式,有意向整合进广告list吗?
https://github.com/geekdada/surge-list/tree/master/domain-set
2020-09-28 13:31:29.718590 [SGJSVM] [什么值得买_获取账号密码]
13:31:29.708965 [WARNING] [什么值得买]
获取账号密码时请求数据不合法 。
请求数据:undefined
最新版张大妈app获取账号密码日志会报非法导致账户被锁
surge模块中“知乎_付费内容提醒”js链接错误
貌似是zhihu_remove_ads.surge名称写错了,导致surge无法成功更新外部资源
请大师检查检查
感谢大佬的整理,像选用多个脚本,但从描述看各个功能的GetCookie脚本均为分散 quanx得挨个添加打开并关闭,能否将已收录的所有脚本的GetCookie整合为一个便于开关调用呢?
如题。
如题
DOMAIN-KEYWORD,analytics 这条去广告规则会导致云闪付打不开乘车码
建议放行这条域名analytics.95516.com
IP-CIDR, 118.89.204.198/32, REJECT
以上这条规则在surge中是会触发dns查询的(所有域名请求经过这条规则都会触发)
如果有人将教程中的去广告规则置于最前,那么会产生大量不必要的dns查询
建议改成以下这样,不影响去广告效果,不会触发dns查询
IP-CIDR, 118.89.204.198/32, REJECT,no-resolve
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.