Skip to content

Commit

Permalink
Merge pull request #136 from sve1r/develop
Browse files Browse the repository at this point in the history
🎄 Christmas Update
  • Loading branch information
sve1r authored Dec 24, 2024
2 parents 83276ab + b1a50f9 commit 2c24a76
Show file tree
Hide file tree
Showing 8 changed files with 834 additions and 3,080 deletions.
113 changes: 57 additions & 56 deletions Rewrite/4limbo.adblock

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions Rewrite/AdBlock/Weibo.adblock
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,20 @@
// @TgChannel https://t.me/ddgksf2021
// @Contribute https://t.me/ddgksf2013_bot
// @Feedback 📮 [email protected] 📮
// @UpdateTime 2024-10-30
// @UpdateTime 2024-12-22
// @Attention 微博、微博国际版净化,现已二合一,使用中若有问题请发邮件!
// @Attention 使用时请注意关闭QuantumultX的[兼容性增强]开关,否则无法去除微博广告
// @Suitable 自行观看“# > ”注释内容
// @Contributors @zmqcherish
// @Attention 如需引用请注明出处,谢谢合作!
// @Version V2.0.103
// @Version V2.0.104
// @ScriptURL https://github.com/ddgksf2013/Rewrite/raw/master/AdBlock/Weibo.conf
// ==/UserScript==

hostname = api.weibo.*, *.api.weibo.*, mapi.weibo.*, *.uve.weibo.com, new.vip.weibo.cn, boot.biz.weibo.com

# > 微博_搜索页默认填充词@ddgksf2013
^https?:\/\/api\.weibo\.cn\/!\/was\/finder\/searchbarchange url reject-200
# > 微博_AD_Preload@ddgksf2013
^https?:\/\/api\.weibo\.cn\/\d\/ad\/preload url reject-dict
# > 微博_首页顶部homeExtend@ddgksf2013
Expand Down
1,081 changes: 763 additions & 318 deletions Rewrite/Advertising.adblock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Rules/App/TomatoNovel.list
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ ip-cidr,117.71.105.23/32,reject
ip-cidr,218.94.207.205/32,reject
ip-cidr,117.92.229.188/32,reject
ip-cidr,101.36.166.16/32,reject
ip-cidr,180.96.2.114/32,reject
ip-cidr,180.96.2.114/32,reject
8 changes: 4 additions & 4 deletions Scripts/AdBlock/Weibo/weibo.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
> 应用名称:墨鱼自用微博&微博国际版净化脚本
> 脚本作者:@ddgksf2013
> 微信账号:墨鱼手记
> 更新时间:2024-10-30
> 更新时间:2024-12-22
> 通知频道:https://t.me/ddgksf2021
> 贡献投稿:https://t.me/ddgksf2013_bot
> 问题反馈:[email protected]
Expand All @@ -12,7 +12,7 @@
***********************************************/


const version = 'V2.0.133';
const version = 'V2.0.135';


const mainConfig = {
Expand Down Expand Up @@ -211,7 +211,7 @@ function checkSearchWindow(e) {
function removeSearch(e) {
if (!e.items) return e;
let t = [];
for (let o of e.items) "feed" == o.category ? isAd(o.data) || (o.data?.page_info?.video_limit && delete o.data.page_info.video_limit, t.push(o)) : "group" == o.category ? (o.items = o.items.filter(e => e.data?.card_type == void 0 || e.data?.card_type === 17 || e.data?.card_type === 10), o.items.length > 0 && t.push(o)) : checkSearchWindow(o) || t.push(o);
for (let o of e.items) "feed" == o.category ? isAd(o.data) || (o.data?.page_info?.video_limit && delete o.data.page_info.video_limit, t.push(o)) : "group" == o.category ? o.header?.type !== "guess" && (o.items = o.items.filter(e => e.data?.card_type == void 0 || e.data?.card_type === 17 || e.data?.card_type === 10), o.items.length > 0 && t.push(o)) : checkSearchWindow(o) || t.push(o);
return e.items = t, e.loadedInfo && (e.loadedInfo.searchBarContent = [], e.loadedInfo.headerBack && (e.loadedInfo.headerBack.channelStyleMap = {})), log("remove_search success"), e
}

Expand Down Expand Up @@ -430,4 +430,4 @@ if (method) {
let data = JSON.parse(body.match(/\{.*\}/)[0]);
new func(data), body = JSON.stringify(data), "removePhpScreenAds" == method && (body = JSON.stringify(data) + "OK")
}
$done({body});
$done({body});
4 changes: 2 additions & 2 deletions Scripts/AdBlock/Weibo/weibo.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions Scripts/AdBlock/Weibo/weibo_json.js

Large diffs are not rendered by default.

Loading

0 comments on commit 2c24a76

Please sign in to comment.