Merge pull request #84 from sve1r/develop

Merge Update-2401 from Develop into main
This commit is contained in:
sve1r 2024-01-10 14:29:21 +08:00 committed by GitHub
commit 16e67ccc2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 7212 additions and 5691 deletions

File diff suppressed because one or more lines are too long

View File

@ -7,7 +7,7 @@
// @Contribute https://t.me/ddgksf2013_bot
// @Feedback 📮 ddgksf2013@163.com 📮
// @Attention 如需引用请注明出处,谢谢合作!
// @UpdateTime 2023-12-03
// @UpdateTime 2024-01-07
// @Function 自用影视网站去广告配置(不定期更新)
// @Suitable 自行观看"# > "注释内容
// @Explain 推荐使用手机版Chrome或Alook浏览器(仅供墨鱼本人及小部分QX用户使用)
@ -16,21 +16,24 @@
hostname=m.nivod4.tv, *.freeok.*, *netflix*, *bdys*,*cupfox*,*cokemv*,*pornhub.com,*lezhutv*,*bimi*,18comic.org,*5y*,*gimy*,*tkznp*,*czzy*,*ikandy*,*libvio*
hostname=www.zxzjhd.com, m.nivod4.tv, *.freeok.*, *netflix*, *bdys*,*cupfox*,*cokemv*,*pornhub.com,*lezhutv*,*bimi*,18comic.org,*5y*,*gimy*,*tkznp*,*czzy*,*ikandy*,*libvio*
# > 08 在线之家[网页优化]@ddgksf2013 - 网站地址https://www.zxzjhd.com/
^https?:\/\/www\.zxzjhd\.com\/($|[0-9a-zA-Z=_/-]+\.html$) url script-response-body https://cdn.jsdelivr.net/gh/ddgksf2013/Scripts@master/adguard.js
# > 08 FreeOk[网页优化]@ddgksf2013 - 网站地址https://www.freeok.vip
^https?:\/\/www\.freeok\.(vip|pro)(\/$|\/[0-9a-zA-Z=_/-]+\.html$) url script-response-body https://cdn.jsdelivr.net/gh/ddgksf2013/Scripts@master/adguard.js
# > 07 哔嘀影视[网页优化]@ddgksf2013 - 网站地址https://www.bdys01.com
# > 07 哔嘀影视[网页优化]@ddgksf2013 - 网站地址https://www.bdys01.com
^https?:\/\/.*bdys.*com\/($|([a-z]+)\/(play\/)?\d+.*$) url script-response-body https://cdn.jsdelivr.net/gh/ddgksf2013/Scripts@master/bdys.js
# > 06 茶杯狐[网页优化]@ddgksf2013 - 网站地址https://cupfox.app
^https?:/\/.*cupfox\.app\/($|[\u4E00-\u9FFFa-zA-Z0-9%=_/-]+$) url script-response-body https://cdn.jsdelivr.net/gh/ddgksf2013/Scripts@master/cupbox.js
^https?:/\/.*cupfox\.*\/($|[\u4E00-\u9FFFa-zA-Z0-9%=_/-]+$) url script-response-body https://cdn.jsdelivr.net/gh/ddgksf2013/Scripts@master/cupbox.js
# > 05 PornHub[网页优化]@ddgksf2013 - 网站地址https://cn.pornhub.com
^https:\/\/(cn|www)\.pornhub\.com\/_xa\/ads url reject-dict
^https?:\/\/(cn|www)\.pornhub\.com\/_xa\/ads url reject-dict
^https?:/\/(cn|www)\.pornhub\.com\/($|(view|video).*$) url script-response-body https://cdn.jsdelivr.net/gh/ddgksf2013/Scripts@master/pornhub.js
# > 04 Bimi[网页优化]@ddgksf2013 - 网站地址https://www.bimi.net
@ -46,7 +49,7 @@ hostname=m.nivod4.tv, *.freeok.*, *netflix*, *bdys*,*cupfox*,*cokemv*,*pornhub.c
^https?:\/\/.*czzy.*\/($|\?btwaf=\w+$|[0-9a-zA-Z=_/-]+\.html) url script-response-body https://cdn.jsdelivr.net/gh/ddgksf2013/Scripts@master/qianoo.js
# =========== 不维护或网站已关服 =========== #
# =========== 不维护或网站已关服 =========== #
# > 08 Cokemv[网页优化]@ddgksf2013 - 网站地址https://cokemv.me
^https?:/\/cokemv\.me\/($|vod.*$) url script-response-body https://cdn.jsdelivr.net/gh/ddgksf2013/Scripts@master/cokemv.js
# > 07 555影视[网页优化]@ddgksf2013 - 网站地址https://555yy6.com

View File

@ -6,11 +6,11 @@
// @TgChannel https://t.me/ddgksf2021
// @Contribute https://t.me/ddgksf2013_bot
// @Feedback 📮 ddgksf2013@163.com 📮
// @UpdateTime 2023-09-28
// @UpdateTime 2024-01-05
// @Attention 微博、微博国际版净化,现已二合一,使用中若有问题请发邮件!
// @Suitable 自行观看“# > ”注释内容
// @Attention 如需引用请注明出处,谢谢合作!
// @Version V2.0.91
// @Version V2.0.93
// @ScriptURL https://github.com/ddgksf2013/Rewrite/raw/master/AdBlock/Weibo.conf
// ==/UserScript==

View File

@ -1,4 +1,6 @@
#使用说明: 用于视频、瀑布流、搜索、播放页、短视频及贴片广告、视频自动PIP、后台播放、自动翻译不适用允许 UDP 转发的节点及 Premium
#使用说明: 如果视频广告仍然存在请在QuantumultX配置文件的[general]下添加 udp_drop_list=443
hostname = -redirector*.googlevideo.com,*.googlevideo.com,www.youtube.com,s.youtube.com,youtubei.googleapis.com

134
Sample_v1.4.2.conf Normal file
View File

@ -0,0 +1,134 @@
# 基于 Quantumult X 官方标准 Sample V1.1.0
#
# 以 ';' 或 '#' 或 '//' 开头的配置文件行为注释行
#
# 最后更新时间: 2023年12月25日 14:34:55
#
# ================
# 基础部分
[general]
// > 配置文件图标
profile_img_url = https://img.sveir.xyz/static/favicon%40trs.png
// > 网络测试链接
network_check_url = http://www.bing.com
// > 服务器测试链接
server_check_url = http://www.gstatic.com/generate_204
// > 服务器测试超时时间 (毫秒)
server_check_timeout = 3000
// > 节点 GEO 位置信息检测
// 如果不需识别节点地区为中文和显示国旗,请将下面行 geo_location_checker 进行注释ß
geo_location_checker = http://ip-api.com/json/?lang=zh-CN,https://cdn.jsdelivr.net/gh/KOP-XIAO/QuantumultX@master/Scripts/IP_API.js
// > 指定 WiFi SSID 下的运行模式
// 如果需要指定 对应 SSID 的运行模式,请取消下列注释并自定配置
;running_mode_trigger = filter, filter, asus-5g:all_direct, asus:all_proxy
// > 资源解析器
resource_parser_url = https://cdn.jsdelivr.net/gh/KOP-XIAO/QuantumultX@master/Scripts/resource-parser.js
// > DNS 排除列表
// 不使用 fakeip 映射,可一定程度防止检测到使用代理
dns_exclusion_list = *.lan, cable.auth.com, *.msftconnecttest.com, *.msftncsi.com, network-test.debian.org, detectportal.firefox.com, resolver1.opendns.com, *.srv.nintendo.net, *.stun.playstation.net, xbox.*.microsoft.com, *.xboxlive.com, stun.*, *.qq.com, localhost.*.qq.com, *.logon.battlenet.com.cn, *.logon.battle.net, *.blzstatic.cn, *.cmpassport.com, id6.me, open.e.189.cn, mdn.open.wo.cn, auth.wosms.cn, *.jegotrip.com.cn, *.icitymobile.mobi, *.pingan.com.cn, *.cmbchina.com, *?miwifi.com, pool.ntp.org, *.pool.ntp.org, ntp.*.com, time.*.com, ntp?.*.com, time?.*.com, time.*.gov, time.*.edu.cn, *.ntp.org.cn, time.*.apple.com, PDC._msDCS.*.*, DC._msDCS.*.*, GC._msDCS.*.*
// > 排除路由
// 以下 ip-cidr 中的路由将不经由 QuantumultX 进行处理
excluded_routes = 192.168.0.0/16, 172.16.0.0/12, 100.64.0.0/10, 10.0.0.0/8, 239.255.255.250/32
# 域名解析部分
[dns]
// 如果您需要禁用系统 DNSno-system), 请取消下行注释
;no-system
// 如果您需要禁用 IPv6, 请取消下行注释
;no-ipv6
// 如需使用 DNS over HTTP/3请取消下行注释
;prefer-doh3
// 指定 DNS 服务器,并发响应选取最优结果
server = 119.29.29.29
server = 182.254.116.116
server = 223.5.5.5
server = 223.6.6.6
server = 119.28.28.28
# ⚠️ 注意 不建议在此对 微信以及QQ等即时通讯工具进行 指定域名分配DNS
# 此操作将可能导致微信消息延迟推送
// 如果需要指定 DNS over HTTP 服务,则上列指定的 DNS 服务器 *均将失效* ,在特定网络下禁用该 doh
;doh-server = https://doh.pub/dns-query, https://223.5.5.5/dns-query, https://223.6.6.6/dns-query
# 分流策略组
[policy]
static = OutSide, Hong Kong, Singapore, Taiwan, United States, Japan, Korea, Other, direct, img-url=https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Airport.png
static = Final, OutSide, direct, img-url=https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Final.png
// 分流
static = DomesticMedia, direct, OutSide, img-url= https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Domestic.png
static = Domestic, direct, OutSide, img-url= https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Back.png
static = Apple, direct, OutSide, img-url= https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Apple.png
static = Apple Domestic, direct, OutSide, img-url= https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Apple_Update.png
static = Google, OutSide, img-url=https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Google.png
static = Google Domestic, direct, OutSide, img-url= https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Google_Search.png
static = Hijacking, reject, direct, img-url=https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Hijacking.png
static = Advertising, reject, img-url= https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Advertising.png
// 按地区分类
static = Hong Kong, resource-tag-regex=🧁 我的订阅, server-tag-regex=香港|Hong Kong|HK|hk, img-url=https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Hong_Kong.png
static = Singapore, resource-tag-regex=🧁 我的订阅, server-tag-regex=新加坡|Singapore|SG|sg, img-url=https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Singapore.png
static = Taiwan, resource-tag-regex=🧁 我的订阅, server-tag-regex=台湾|Taiwan|TW|tw|台北, img-url=https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Taiwan.png
static = United States, resource-tag-regex=🧁 我的订阅, server-tag-regex=美国|United States|US|us, img-url=https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/United_States.png
static = Japan, resource-tag-regex=🧁 我的订阅, server-tag-regex=日本|Japan|JP|jp, img-url=https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Japan.png
static = Korea, resource-tag-regex=🧁 我的订阅, server-tag-regex=韩国|Korea|KR|kr, img-url=https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Korea.png
static = Other, resource-tag-regex=🧁 我的订阅, server-tag-regex=印度|巴西|阿根廷|英国|澳门|土耳其|挪威|瑞士|俄罗斯|瑞典|爱尔兰|法国|菲律宾|越南|泰国|印度尼西亚|德国|英国|荷兰|乌克兰, img-url=https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/AIA.png
[server_local]
[server_remote]
https://example.com/subscribe.snippet,tag=🧁 我的订阅,enabled=true, img-url= https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Heart.png
[filter_local]
#本地分流规则(对于完全相同的某条规则,本地的将优先生效)
ip-cidr, 10.0.0.0/8, direct
ip-cidr, 127.0.0.0/8, direct
ip-cidr, 172.16.0.0/12, direct
ip-cidr, 192.168.0.0/16, direct
ip-cidr, 224.0.0.0/24, direct
# 已采用 ip 池数据,因此注释掉 geoip cn
;geoip, cn, direct
final, Final
[filter_remote]
https://rules-for-qx.sveir.xyz/Rules/Advertising/Hijacking.list, tag=Hijacking, enabled=true
https://rules-for-qx.sveir.xyz/Rules/Advertising/AdReject.list, tag=Advertising, enabled=true
https://rules-for-qx.sveir.xyz/Rules/Services/Google.list, tag=Google, enabled=true
https://rules-for-qx.sveir.xyz/Rules/Services/Microsoft.list, tag=Microsoft, enabled=true
https://rules-for-qx.sveir.xyz/Rules/Media/DomesticMedia.list, tag=DomesticMedia, force-policy=direct, enabled=true
https://rules-for-qx.sveir.xyz/Rules/Media/ForeignMedia.list, tag=ForeignMedia, force-policy=OutSide, enabled=true
https://rules-for-qx.sveir.xyz/Rules/Region/Global.list, tag=Global, force-policy=OutSide, enabled=true
https://rules-for-qx.sveir.xyz/Rules/Services/Apple.list, tag=Apple, force-policy=direct, enabled=true
https://rules-for-qx.sveir.xyz/Rules/Region/China.list, tag=Domestic, force-policy=direct, enabled=true
[rewrite_local]
[rewrite_remote]
# 网页去广告
https://rules-for-qx.sveir.xyz/Rewrite/AdBlock/WebAdBlock.adblock, tag=常用网页去广告
# 知乎去广告
https://rules-for-qx.sveir.xyz/Rewrite/AdBlock/Zhihu.adblock, tag=知乎去广告
# 微博去广告
https://rules-for-qx.sveir.xyz/Rewrite/AdBlock/Weibo.adblock, tag=微博去广告
# Youtube 去广告
https://rules-for-qx.sveir.xyz/Rewrite/AdBlock/Youtube.adblock, tag=Youtube 去广告
# TestFlight复写
https://rules-for-qx.sveir.xyz/Rewrite/Services/Apple/TestFlight/TestFlightDownload.conf,tag=TestFlight
# Rewrite 复写远程订阅
https://rules-for-qx.sveir.xyz/Rewrite/Rewrite.conf, tag=Rewrite
[task_local]
# 流媒体查询脚本
event-interaction https://cdn.jsdelivr.net/gh/KOP-XIAO/QuantumultX@master/Scripts/streaming-ui-check.js, tag = 流媒体 - 解锁查询img-url=checkmark.seal.system, enabled=true
[http_backend]
[mitm]

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,4 @@
const version = 'V2.0.120';
const version = 'V2.0.122';
const mainConfig = {
@ -84,8 +83,7 @@ const mainConfig = {
"php?a=search_topic": "removeSearchTopic",
"v1/ad/realtime": "removeRealtimeAd",
"v1/ad/preload": "removeAdPreload",
"php?a=open_app": "removeAdBanner",
"groups/allgroups": "removeGroup"
"php?a=open_app": "removeAdBanner"
};
function getModifyMethod(e) {
@ -99,10 +97,6 @@ function removeRealtimeAd(e) {
return delete e.ads, e.code = 4016, e
}
function removeGroup(e) {
return e.pageDatas && (e.pageDatas = Object.values(e.pageDatas).filter(e => "homeExtend" != e.pageDataType)), e
}
function removeAdBanner(e) {
return e.data.close_ad_setting && delete e.data.close_ad_setting, e.data.detail_banner_ad && (e.data.detail_banner_ad = []), e
}
@ -197,7 +191,7 @@ function removeSearchMain(e) {
}
function checkSearchWindow(e) {
return !!mainConfig.removeSearchWindow && "card" == e.category && (e.data?.itemid == "finder_window" || e.data?.itemid == "more_frame" || e.data?.card_type == 208 || e.data?.card_type == 217 || e.data?.card_type == 101 || e.data?.card_type == 19 || e.data?.mblog?.page_info?.actionlog?.source?.includes("ad"))
return !!mainConfig.removeSearchWindow && "card" == e.category && (e.data?.itemid == "finder_window" || e.data?.itemid == "more_frame" || e.data?.card_type == 208 || e.data?.card_type == 247 || e.data?.card_type == 217 || e.data?.card_type == 101 || e.data?.card_type == 19 || e.data?.mblog?.page_info?.actionlog?.source?.includes("ad"))
}
function removeSearch(e) {

File diff suppressed because one or more lines are too long