mirror of
https://github.com/fmz200/wool_scripts.git
synced 2025-12-19 13:41:18 +08:00
update Spotify
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,210 +0,0 @@
|
||||
// 2024-10-19 12:35
|
||||
|
||||
const url = $request.url;
|
||||
if (!$response.body) $done({});
|
||||
let obj = JSON.parse($response.body);
|
||||
|
||||
if (url.includes("/x/resource/show/tab/v2")) {
|
||||
// 底部选项卡
|
||||
if (obj?.data?.bottom?.length > 0) {
|
||||
const sortLists = ["首页", "动态", "我的"];
|
||||
obj.data.bottom = obj.data.bottom
|
||||
.filter((i) => sortLists?.includes(i?.name))
|
||||
.sort((a, b) => sortLists.indexOf(a?.name) - sortLists.indexOf(b?.name));
|
||||
}
|
||||
// 首页导航栏
|
||||
if (obj?.data?.tab?.length > 0) {
|
||||
const sortLists = ["推荐", "热门", "影视", "动画"];
|
||||
obj.data.tab = obj.data.tab
|
||||
.filter((i) => sortLists?.includes(i?.name))
|
||||
.sort((a, b) => sortLists.indexOf(a?.name) - sortLists.indexOf(b?.name));
|
||||
}
|
||||
// 右上角按钮
|
||||
if (obj?.data?.top?.length > 0) {
|
||||
obj.data.top = obj.data.top.filter((i) => i?.name === "消息");
|
||||
if (obj?.data?.top?.[0]?.pos) {
|
||||
obj.data.top[0].pos = 1;
|
||||
}
|
||||
}
|
||||
} else if (url.includes("/x/v2/account/mine?")) {
|
||||
// 我的页面
|
||||
const del = ["rework_v1", "vip_section", "vip_section_v2"];
|
||||
for (let i of del) {
|
||||
// 不必要项目
|
||||
delete obj.data[i];
|
||||
}
|
||||
if (obj?.data?.sections_v2?.length > 0) {
|
||||
let newSects = [];
|
||||
for (let item of obj.data.sections_v2) {
|
||||
delete item.button;
|
||||
if (item?.style) {
|
||||
if (item?.style === 1 || item?.style === 2) {
|
||||
if (item?.title) {
|
||||
if (item?.title === "创作中心" || item?.title === "推荐服务") {
|
||||
// 创作中心 推荐服务
|
||||
continue;
|
||||
} else if (item?.title === "更多服务") {
|
||||
delete item.title;
|
||||
if (item?.items?.length > 0) {
|
||||
let newItems = [];
|
||||
for (let i of item.items) {
|
||||
if (/user_center\/feedback/g.test(i?.uri)) {
|
||||
// 联系客服
|
||||
newItems.push(i);
|
||||
} else if (/user_center\/setting/g.test(i?.uri)) {
|
||||
// 设置
|
||||
newItems.push(i);
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
item.items = newItems;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// 其他style
|
||||
continue;
|
||||
}
|
||||
}
|
||||
newSects.push(item);
|
||||
}
|
||||
obj.data.sections_v2 = newSects;
|
||||
}
|
||||
// 非会员开启本地会员标识
|
||||
if (obj?.data?.vip) {
|
||||
if (obj?.data?.vip?.status === 0) {
|
||||
obj.data.vip_type = 2;
|
||||
obj.data.vip.type = 2;
|
||||
obj.data.vip.status = 1;
|
||||
obj.data.vip.due_date = 3818419199; // Unix 时间戳 2090-12-31 23:59:59
|
||||
obj.data.vip.label = {
|
||||
path: "",
|
||||
text: "年度大会员",
|
||||
label_theme: "annual_vip",
|
||||
text_color: "#FFFFFF",
|
||||
bg_style: 1,
|
||||
bg_color: "#FB7299",
|
||||
border_color: "",
|
||||
image: "https://i0.hdslb.com/bfs/vip/8d4f8bfc713826a5412a0a27eaaac4d6b9ede1d9.png"
|
||||
};
|
||||
obj.data.vip.nickname_color = "#FB7299";
|
||||
obj.data.vip.role = 3;
|
||||
}
|
||||
}
|
||||
} else if (url.includes("/x/v2/account/mine/ipad")) {
|
||||
// ipad我的页面
|
||||
delete obj.data.ipad_upper_sections; // 投稿 创作首页 稿件管理 有奖活动
|
||||
if (obj?.data?.ipad_recommend_sections?.length > 0) {
|
||||
// 789我的关注 790我的消息 791我的钱包 792直播中心 793大会员 794我的课程 2542我的游戏
|
||||
const itemList = [789, 790];
|
||||
obj.data.ipad_recommend_sections = obj.data.ipad_recommend_sections.filter((i) => itemList?.includes(i.id));
|
||||
}
|
||||
if (obj?.data?.ipad_more_sections?.length > 0) {
|
||||
// 797我的客服 798设置 1070青少年守护
|
||||
const itemList = [797, 798];
|
||||
obj.data.ipad_more_sections = obj.data.ipad_more_sections.filter((i) => itemList?.includes(i.id));
|
||||
}
|
||||
} else if (url.includes("/x/v2/account/myinfo")) {
|
||||
// 非会员开启会员专属清晰度
|
||||
if (obj?.data?.vip) {
|
||||
if (obj?.data?.vip?.status === 0) {
|
||||
obj.data.vip.type = 2;
|
||||
obj.data.vip.status = 1;
|
||||
obj.data.vip.due_date = 3818419199; // Unix 时间戳 2090-12-31 23:59:59
|
||||
obj.data.vip.role = 3;
|
||||
}
|
||||
}
|
||||
} else if (url.includes("/x/v2/feed/index?")) {
|
||||
// 首页推荐信息流
|
||||
if (obj?.data?.items?.length > 0) {
|
||||
// 白名单
|
||||
obj.data.items = obj.data.items.filter((i) => i?.card_goto === "av");
|
||||
}
|
||||
if (obj?.data?.config?.toast?.has_toast) {
|
||||
obj.data.config.toast.has_toast = false;
|
||||
}
|
||||
} else if (url.includes("/x/v2/feed/index/story")) {
|
||||
// 竖屏模式信息流
|
||||
if (obj?.data?.items?.length > 0) {
|
||||
// vertical_live 直播内容
|
||||
// vertical_pgc 大会员专享
|
||||
let newItems = [];
|
||||
for (let item of obj.data.items) {
|
||||
if (item?.hasOwnProperty("ad_info")) {
|
||||
continue;
|
||||
} else if (["vertical_ad_av", "vertical_live", "vertical_pgc"]?.includes(item?.card_goto)) {
|
||||
continue;
|
||||
} else {
|
||||
delete item.creative_entrance; // 推荐话题搜索框
|
||||
delete item.story_cart_icon; // 相关话题图标
|
||||
newItems.push(item);
|
||||
}
|
||||
}
|
||||
obj.data.items = newItems;
|
||||
}
|
||||
} else if (url.includes("/x/v2/search/square")) {
|
||||
// 搜索框
|
||||
if (obj?.data) {
|
||||
obj.data = { type: "history", title: "搜索历史", search_hotword_revision: 2 };
|
||||
}
|
||||
} else if (url.includes("/x/v2/splash")) {
|
||||
// 开屏广告
|
||||
if (obj?.data) {
|
||||
const item = ["account", "event_list", "preload", "show"];
|
||||
item.forEach((i) => {
|
||||
delete obj.data[i];
|
||||
});
|
||||
if (obj?.data?.max_time) {
|
||||
obj.data.max_time = 0;
|
||||
}
|
||||
if (obj?.data?.min_interval) {
|
||||
obj.data.min_interval = 31536000;
|
||||
}
|
||||
if (obj?.data?.pull_interval) {
|
||||
obj.data.pull_interval = 31536000;
|
||||
}
|
||||
if (obj?.data?.list?.length > 0) {
|
||||
for (let i of obj.data.list) {
|
||||
i.duration = 0;
|
||||
i.enable_pre_download = false;
|
||||
i.begin_time = 3818332800; // Unix 时间戳 2090-12-31 00:00:00
|
||||
i.end_time = 3818419199; // Unix 时间戳 2090-12-31 23:59:59
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (url.includes("/pgc/page/bangumi") || url.includes("/pgc/page/cinema/tab")) {
|
||||
// 观影页
|
||||
if (obj.result?.modules?.length > 0) {
|
||||
obj.result.modules.forEach((i) => {
|
||||
if (i?.style?.startsWith("banner")) {
|
||||
if (i?.items?.length > 0) {
|
||||
i.items = i.items.filter((ii) => ii?.link?.includes("play"));
|
||||
}
|
||||
} else if (i?.style?.startsWith("function")) {
|
||||
if (i?.items?.length > 0) {
|
||||
i.items = i.items.filter((ii) => ii?.blink?.startsWith("bilibili"));
|
||||
}
|
||||
} else if ([241, 1283, 1284, 1441]?.includes(i?.module_id)) {
|
||||
if (i?.items?.length > 0) {
|
||||
i.items = [];
|
||||
}
|
||||
} else if (i?.style?.startsWith("tip")) {
|
||||
if (i?.items?.length > 0) {
|
||||
i.items = [];
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (url.includes("/xlive/app-room/v1/index/getInfoByRoom")) {
|
||||
// 直播
|
||||
delete obj.data.activity_banner_info;
|
||||
if (obj?.data?.shopping_info) {
|
||||
obj.data.shopping_info = { is_show: 0 };
|
||||
}
|
||||
if (obj?.data?.new_tab_info?.outer_list?.length > 0) {
|
||||
obj.data.new_tab_info.outer_list = obj.data.new_tab_info.outer_list.filter((i) => i?.biz_id !== 33);
|
||||
}
|
||||
}
|
||||
|
||||
$done({ body: JSON.stringify(obj) });
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -5,7 +5,7 @@
|
||||
"icon": "https://avatars.githubusercontent.com/u/57740735?s=60&v=4",
|
||||
"repo": "https://github.com/fmz200/wool_scripts",
|
||||
"desc": "订阅大多都支持多账号,协定数据格式如下:有主键的用JSON,没有主键的拼接用#分割用@。\n例如{\"uid1\": \"token1\", \"uid2\": \"token2\",\"uid3\": \"token3\"}和uid1#token1@uid2#token2@uid3#token3",
|
||||
"date": "更新日期:2025-07-29 19:00:00",
|
||||
"date": "更新日期:2025-08-10 10:00:00",
|
||||
"apps": [
|
||||
{
|
||||
"id": "fmz200_xiaohongshu",
|
||||
@ -514,101 +514,6 @@
|
||||
"https://raw.githubusercontent.com/fmz200/wool_scripts/main/icons/apps/testflight.png"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "fmz200_ql_sync",
|
||||
"name": "BoxJS与青龙数据同步",
|
||||
"keys": [
|
||||
"ql_sync_keys",
|
||||
"ql_sync_notify",
|
||||
"@ql.ip",
|
||||
"@ql.client_id",
|
||||
"@ql.client_secret",
|
||||
"@ql.username",
|
||||
"@ql.password",
|
||||
"@ql.env",
|
||||
"@ql.mute",
|
||||
"@ql.is_pwd"
|
||||
],
|
||||
"settings": [
|
||||
{
|
||||
"id": "ql_sync_keys",
|
||||
"name": "需要同步的keys",
|
||||
"val": "",
|
||||
"type": "textarea",
|
||||
"placeholder": "",
|
||||
"autoGrow": true,
|
||||
"rows": 2,
|
||||
"desc": "以英文逗号分隔多个key,例如:key1,key2,key3 \n 如果要增加注释可以用格式@分隔key和注释,例如:key1@remark1,key2@remark2,key3@remark3 \n 以上两种格式可以混用"
|
||||
},
|
||||
{
|
||||
"id": "ql_sync_notify",
|
||||
"name": "是否静默通知",
|
||||
"val": "",
|
||||
"type": "boolean",
|
||||
"placeholder": "true or false",
|
||||
"autoGrow": true,
|
||||
"rows": 1,
|
||||
"desc": "关闭后成功时将不会通知,同步失败会通知(暂时没做)"
|
||||
},
|
||||
{
|
||||
"id": "@ql.is_pwd",
|
||||
"name": "开启密码登陆",
|
||||
"val": false,
|
||||
"type": "boolean",
|
||||
"desc": "同步时,优先使用密码登陆"
|
||||
},
|
||||
{
|
||||
"id": "@ql.ip",
|
||||
"name": "青龙登陆的域名或IP:端口号",
|
||||
"val": "",
|
||||
"type": "text",
|
||||
"placeholder": "111.21.0.32:5700"
|
||||
},
|
||||
{
|
||||
"id": "@ql.client_id",
|
||||
"name": "应用 Client ID",
|
||||
"val": "",
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"id": "@ql.client_secret",
|
||||
"name": "应用 Client Secret",
|
||||
"val": "",
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"id": "@ql.username",
|
||||
"name": "账号",
|
||||
"val": "",
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"id": "@ql.password",
|
||||
"name": "密码",
|
||||
"val": "",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"author": "@fmz200",
|
||||
"repo": "https://raw.githubusercontent.com/fmz200/wool_scripts/main/Scripts/qinglong/ql_sync.js",
|
||||
"icons": [
|
||||
"https://raw.githubusercontent.com/fmz200/wool_scripts/main/icons/apps/ql.png",
|
||||
"https://raw.githubusercontent.com/fmz200/wool_scripts/main/icons/apps/ql.png"
|
||||
],
|
||||
"scripts": [
|
||||
{
|
||||
"name": "BoxJS同步到青龙",
|
||||
"script": "https://raw.githubusercontent.com/fmz200/wool_scripts/main/Scripts/qinglong/ql_sync.js"
|
||||
}
|
||||
],
|
||||
"descs_html": [
|
||||
"青龙 docker 的安装方式请移步 tg 频道",
|
||||
"青龙 docker 仓库:【<a href=\"https://github.com/whyour\">github</a>】",
|
||||
"青龙 docker 频道:【<a href=\"https://t.me/jiao_long\",>电报频道</a>】",
|
||||
"去广告交流群:【<a href=\"https://t.me/lanjieguanggao\",>去广告交流群</a>】",
|
||||
"应用client_id,client_secret获取请去青龙面板“系统设置->应用设置”中添加相关参数,优先以openapi方式同步"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "fmz200_macat_signin",
|
||||
"name": "macat.vip网站签到",
|
||||
@ -633,39 +538,6 @@
|
||||
"https://raw.githubusercontent.com/fmz200/wool_scripts/main/icons/apps/Macat.png"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "fmz200_freeAppsToday",
|
||||
"name": "今日限免APP",
|
||||
"keys": [
|
||||
"freeAppsTodayKey"
|
||||
],
|
||||
"descs_html": [
|
||||
"填写key可以使用bark推送,可以对不同平台和更新内容分组推送,不填使用自带通知推送,支持跳转商店"
|
||||
],
|
||||
"settings": [
|
||||
{
|
||||
"id": "freeAppsTodayKey",
|
||||
"name": "bark的Key",
|
||||
"val": "",
|
||||
"desc": "",
|
||||
"type": "textarea",
|
||||
"autoGrow": false,
|
||||
"rows": 4
|
||||
}
|
||||
],
|
||||
"author": "@fmz200",
|
||||
"repo": "https://github.com/fmz200/wool_scripts",
|
||||
"scripts": [
|
||||
{
|
||||
"name": "获取今日限免APP",
|
||||
"script": "https://raw.githubusercontent.com/fmz200/wool_scripts/main/QuantumultX/scripts/freeAppsToday.js"
|
||||
}
|
||||
],
|
||||
"icons": [
|
||||
"https://raw.githubusercontent.com/fmz200/wool_scripts/main/icons/chxm1023/AppStore.png",
|
||||
"https://raw.githubusercontent.com/fmz200/wool_scripts/main/icons/chxm1023/AppStore.png"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "fmz200_CCB_life",
|
||||
"name": "建行生活签到",
|
||||
@ -878,109 +750,6 @@
|
||||
"https://raw.githubusercontent.com/fmz200/wool_scripts/main/icons/apps/WeiboTalk.png",
|
||||
"https://raw.githubusercontent.com/fmz200/wool_scripts/main/icons/apps/WeiboTalk.png"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "fmz200_bilibili_share",
|
||||
"name": "哔哩哔哩共享会员模板",
|
||||
"desc_html": "⚠️使用说明:有会员的用户获取headers发给你后填入下面对应的内容里,点击保存,打开B站测试可用性\n</br>【<a href='https://raw.githubusercontent.com/fmz200/wool_scripts/main/Scripts/bilibili/bilibiliShare.js'><font class='red--text'>点我查看使用说明</font></a>】",
|
||||
"keys": [
|
||||
"Cookie",
|
||||
"x-bili-device-bin",
|
||||
"wb_request_time",
|
||||
"Authorization",
|
||||
"User-Agent",
|
||||
"buvid",
|
||||
"x-bili-metadata-bin",
|
||||
"x-bili-locale-bin",
|
||||
"x-bili-network-bin",
|
||||
"x-bili-fawkes-req-bin",
|
||||
"x-bili-trace-id"
|
||||
],
|
||||
"settings": [
|
||||
{
|
||||
"id": "Cookie",
|
||||
"name": "Cookie",
|
||||
"val": false,
|
||||
"type": "text",
|
||||
"desc": ""
|
||||
},
|
||||
{
|
||||
"id": "x-bili-device-bin",
|
||||
"name": "x-bili-device-bin",
|
||||
"val": "",
|
||||
"type": "text",
|
||||
"desc": ""
|
||||
},
|
||||
{
|
||||
"id": "Authorization",
|
||||
"name": "Authorization",
|
||||
"val": "",
|
||||
"type": "text",
|
||||
"desc": ""
|
||||
},
|
||||
{
|
||||
"id": "User-Agent",
|
||||
"name": "User-Agent",
|
||||
"val": "",
|
||||
"type": "textarea",
|
||||
"autoGrow": true,
|
||||
"rows": 4
|
||||
},
|
||||
{
|
||||
"id": "buvid",
|
||||
"name": "buvid",
|
||||
"val": "",
|
||||
"type": "textarea",
|
||||
"autoGrow": true,
|
||||
"rows": 4
|
||||
},
|
||||
{
|
||||
"id": "x-bili-metadata-bin",
|
||||
"name": "x-bili-metadata-bin",
|
||||
"val": "",
|
||||
"type": "textarea",
|
||||
"autoGrow": true,
|
||||
"rows": 4
|
||||
},
|
||||
{
|
||||
"id": "x-bili-locale-bin",
|
||||
"name": "x-bili-locale-bin",
|
||||
"val": "",
|
||||
"type": "textarea",
|
||||
"autoGrow": true,
|
||||
"rows": 4
|
||||
},
|
||||
{
|
||||
"id": "x-bili-network-bin",
|
||||
"name": "x-bili-network-bin",
|
||||
"val": "",
|
||||
"type": "textarea",
|
||||
"autoGrow": true,
|
||||
"rows": 4
|
||||
},
|
||||
{
|
||||
"id": "x-bili-fawkes-req-bin",
|
||||
"name": "x-bili-fawkes-req-bin",
|
||||
"val": "",
|
||||
"type": "textarea",
|
||||
"autoGrow": true,
|
||||
"rows": 4
|
||||
},
|
||||
{
|
||||
"id": "x-bili-trace-id",
|
||||
"name": "x-bili-trace-id",
|
||||
"val": "",
|
||||
"type": "textarea",
|
||||
"autoGrow": true,
|
||||
"rows": 4
|
||||
}
|
||||
],
|
||||
"author": "@fmz200",
|
||||
"repo": "https://github.com/fmz200/wool_scripts",
|
||||
"icons": [
|
||||
"https://raw.githubusercontent.com/fmz200/wool_scripts/main/icons/apps/BiliBili.png",
|
||||
"https://raw.githubusercontent.com/fmz200/wool_scripts/main/icons/apps/BiliBili.png"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user