-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #136 from sve1r/develop
🎄 Christmas Update
- Loading branch information
Showing
8 changed files
with
834 additions
and
3,080 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
> 应用名称:墨鱼自用微博&微博国际版净化脚本 | ||
> 脚本作者:@ddgksf2013 | ||
> 微信账号:墨鱼手记 | ||
> 更新时间:2024-10-30 | ||
> 更新时间:2024-12-22 | ||
> 通知频道:https://t.me/ddgksf2021 | ||
> 贡献投稿:https://t.me/ddgksf2013_bot | ||
> 问题反馈:[email protected] | ||
|
@@ -12,7 +12,7 @@ | |
***********************************************/ | ||
|
||
|
||
const version = 'V2.0.133'; | ||
const version = 'V2.0.135'; | ||
|
||
|
||
const mainConfig = { | ||
|
@@ -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 | ||
} | ||
|
||
|
@@ -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}); |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.