mirror of https://github.com/NobyDa/Script.git
sync script.
This commit is contained in:
parent
8e70673fcd
commit
4e90cb2921
|
@ -11,7 +11,53 @@ Surge & QX MITM = app.bilibili.com
|
|||
*/
|
||||
|
||||
let body = $response.body
|
||||
body=JSON.parse(body)
|
||||
body['data']['sections'].splice(2,1)
|
||||
body=JSON.stringify(body)
|
||||
$done({body})
|
||||
|
||||
body = JSON.parse(body)
|
||||
body['data']['sections'] = [
|
||||
|
||||
{
|
||||
"title": "个人中心",
|
||||
"items": [
|
||||
{
|
||||
"title": "历史记录",
|
||||
"uri": "bilibili://user_center/history",
|
||||
"icon": "http://i0.hdslb.com/bfs/archive/ae502b4b69b6a3b287ea59b1552859332e59c277.png",
|
||||
|
||||
},
|
||||
{
|
||||
"title": "我的收藏",
|
||||
"uri": "bilibili://user_center/favourite",
|
||||
"icon": "http://i0.hdslb.com/bfs/archive/1e6b0583257a086f40779c10ad7e2fcd72984463.png",
|
||||
},
|
||||
{
|
||||
"title": "稍后再看",
|
||||
"uri": "bilibili://user_center/watch_later",
|
||||
"icon": "http://i0.hdslb.com/bfs/archive/56893a05f41d7c503f7f1f5b67e9ee2add8581fa.png",
|
||||
|
||||
},
|
||||
{
|
||||
"title": "离线缓存",
|
||||
"uri": "bilibili://user_center/download",
|
||||
"icon": "http://i0.hdslb.com/bfs/archive/0f3e682b0611f9404c6e9d0a8d57f7246f91bffd.png",
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": 1,
|
||||
"title": "创作中心",
|
||||
"items": [
|
||||
{
|
||||
"need_login": 1,
|
||||
"display": 1,
|
||||
"id": 171,
|
||||
"title": "创作首页",
|
||||
"global_red_dot": 1,
|
||||
"uri": "bilibili://uper/homevc",
|
||||
"icon": "http://i0.hdslb.com/bfs/archive/d3aad2d07538d2d43805f1fa14a412d7a45cc861.png"
|
||||
},
|
||||
]
|
||||
},
|
||||
]
|
||||
|
||||
body = JSON.stringify(body)
|
||||
$done({ body })
|
|
@ -26,6 +26,7 @@ const path15 = "/statuses/video_timeline";
|
|||
const path16 = "/page";
|
||||
const path17 = "/statuses/friends_timeline";
|
||||
const path18 = "/!/photos/pic_recommend_status";
|
||||
const path19 = "/statuses/video_mixtimeline";
|
||||
|
||||
const url = $request.url;
|
||||
var body = $response.body;
|
||||
|
@ -118,6 +119,12 @@ if (
|
|||
body = JSON.stringify(obj);
|
||||
}
|
||||
|
||||
if (url.indexOf(path19) != -1) {
|
||||
let obj = JSON.parse(body);
|
||||
delete obj.expandable_view;
|
||||
body = JSON.stringify(obj);
|
||||
}
|
||||
|
||||
$done({ body });
|
||||
|
||||
function filter_timeline_statuses(statuses) {
|
||||
|
@ -155,14 +162,16 @@ function filter_timeline_cards(cards) {
|
|||
while (i--) {
|
||||
let card_group_item = card_group[i];
|
||||
let card_type = card_group_item.card_type;
|
||||
if (card_type && card_type == 9) {
|
||||
if (is_timeline_ad(card_group_item.mblog)) card_group.splice(i, 1);
|
||||
} else if (card_type && card_type == 118) {
|
||||
card_group.splice(i, 1);
|
||||
} else if (card_type && card_type == 42) {
|
||||
if (card_group_item.desc == '\u53ef\u80fd\u611f\u5174\u8da3\u7684\u4eba') {
|
||||
cards.splice(j, 1);
|
||||
break;
|
||||
if (card_type) {
|
||||
if (card_type == 9) {
|
||||
if (is_timeline_ad(card_group_item.mblog)) card_group.splice(i, 1);
|
||||
} else if (card_type == 118 || card_type == 89) {
|
||||
card_group.splice(i, 1);
|
||||
} else if (card_type == 42) {
|
||||
if (card_group_item.desc == '\u53ef\u80fd\u611f\u5174\u8da3\u7684\u4eba') {
|
||||
cards.splice(j, 1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
|
||||
# 去微博应用内广告 (By yichahucha)
|
||||
^https?://m?api\.weibo\.c(n|om)/2/(statuses/(unread|extend|positives/get|(friends|video)(/|_)timeline)|stories/(video_stream|home_list)|(groups|fangle)/timeline|profile/statuses|comments/build_comments|photo/recommend_list|service/picfeed|searchall|cardlist|page|\!/photos/pic_recommend_status) url script-response-body https://raw.githubusercontent.com/NobyDa/Script/master/QuantumultX/File/wb_ad.js
|
||||
^https?://m?api\.weibo\.c(n|om)/2/(statuses/(unread|extend|positives/get|(friends|video)(/|_)(mix)?timeline)|stories/(video_stream|home_list)|(groups|fangle)/timeline|profile/statuses|comments/build_comments|photo/recommend_list|service/picfeed|searchall|cardlist|page|!/photos/pic_recommend_status) url script-response-body https://raw.githubusercontent.com/NobyDa/Script/master/QuantumultX/File/wb_ad.js
|
||||
#^https?://(sdk|wb)app\.uve\.weibo\.com(/interface/sdk/sdkad.php|/wbapplua/wbpullad.lua) url script-response-body https://raw.githubusercontent.com/NobyDa/Script/master/QuantumultX/File/wb_launch.js
|
||||
|
||||
# 去微信公众号广告 (By Choler)
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
|
||||
# 去微博应用内广告 (By yichahucha)
|
||||
^https?://m?api\.weibo\.c(n|om)/2/(statuses/(unread|extend|positives/get|(friends|video)(/|_)timeline)|stories/(video_stream|home_list)|(groups|fangle)/timeline|profile/statuses|comments/build_comments|photo/recommend_list|service/picfeed|searchall|cardlist|page|\!/photos/pic_recommend_status) url script-response-body NobyDa/QuantumultX/File/wb_ad.js
|
||||
^https?://m?api\.weibo\.c(n|om)/2/(statuses/(unread|extend|positives/get|(friends|video)(/|_)(mix)?timeline)|stories/(video_stream|home_list)|(groups|fangle)/timeline|profile/statuses|comments/build_comments|photo/recommend_list|service/picfeed|searchall|cardlist|page|!/photos/pic_recommend_status) url script-response-body NobyDa/QuantumultX/File/wb_ad.js
|
||||
#^https?://(sdk|wb)app\.uve\.weibo\.com(/interface/sdk/sdkad.php|/wbapplua/wbpullad.lua) url script-response-body NobyDa/QuantumultX/File/wb_launch.js
|
||||
|
||||
# 去微信公众号广告 (By Choler)
|
||||
|
|
Loading…
Reference in New Issue