forked from doio/Surge-Script
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweibo_config.js
115 lines (99 loc) · 5.62 KB
/
weibo_config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
//主要的选项配置
const mainConfig = {
isDebug: true, //开启调试,会打印运行中部分日志
//个人中心配置,其中多数是可以直接在更多功能里直接移除
removeHomeVip: true, //个人中心头像旁边的vip样式
removeHomeCreatorTask: true, //个人中心创作者中心下方的轮播图
//微博详情页配置
removeRelate: true, //相关推荐
removeGood: true, //微博主好物种草
removeFollow: true, //关注博主
modifyMenus: true, //编辑上下文菜单
removeRelateItem: true, //评论区相关内容
removeRecommendItem: true, //评论区推荐内容
removeRewardItem: true, //微博详情页打赏模块
removeLiveMedia: true, //首页顶部直播
removeNextVideo: true, //关闭自动播放下一个视频
removePinedTrending: false, //删除热搜列表置顶条目
removeInterestFriendInTopic: true, //超话:超话里的好友
removeInterestTopic: true, //超话:可能感兴趣的超话
removeInterestUser: true, //用户页:可能感兴趣的人
removeLvZhou: true, //绿洲模块
removeSearchWindow: true, //#搜索页滑动窗口,有的不是广告
removeUnfollowTopic: true, //超话-未关注的
removeUnusedPart: true, //超话-乱七八糟没用的部分
blockIds: [], //屏蔽的用户id列表
// profileSkin1: ["https://wx2.sinaimg.cn/large/006Y6guWly1gvjeaingvoj6046046dg802.jpg","https://wx2.sinaimg.cn/large/006Y6guWly1gvjeaiuoxtj6046046dga02.jpg","https://wx2.sinaimg.cn/large/006Y6guWly1gvjeaiytuyj60460463yv02.jpg","https://wx2.sinaimg.cn/large/006Y6guWly1gvjeaj19hvj6046046aac02.jpg","https://wx2.sinaimg.cn/large/006Y6guWly1gvjeaj5ka0j6046046jrp02.jpg","https://wx2.sinaimg.cn/large/006Y6guWly1gvjeaj9jfmj6046046dg502.jpg","https://wx2.sinaimg.cn/large/006Y6guWly1gvjeajd0hfj60460463yu02.jpg","https://wx2.sinaimg.cn/large/006Y6guWly1gvjeajfce5j6046046wet02.jpg"], //用户页:自定义 我的相册 - 客服 8个图标(需要8项),如果不需要设置为profileSkin1: null
// profileSkin2: ["https://wx2.sinaimg.cn/large/006Y6guWly1gvjeajhmrnj6046046jro02.jpg","https://wx2.sinaimg.cn/large/006Y6guWly1gvjeajmgs0j60460460t102.jpg","https://wx2.sinaimg.cn/large/006Y6guWly1gvjeajp9uuj6046046jrp02.jpg","https://wx2.sinaimg.cn/large/006Y6guWly1gvjeajrwrwj6046046dg102.jpg"], //用户页:自定义 创作首页 - 任务中心 4个图标(需要4项),如果不需要设置为profileSkin2: null
profileSkin1: ["http://ww4.sinaimg.cn/mw690/acf865f8ly1geywm0xiz9g2074074tbk.gif","http://ww4.sinaimg.cn/mw690/acf865f8ly1geywm0l1jsg2074074ab7.gif","http://ww4.sinaimg.cn/mw690/acf865f8ly1geywm0f40qg2074074myw.gif","http://ww4.sinaimg.cn/mw690/acf865f8ly1geywm08lc7g2074074q5v.gif","http://ww4.sinaimg.cn/mw690/acf865f8ly1geywlzuuo5g2074074n01.gif","http://ww4.sinaimg.cn/mw690/acf865f8ly1geywlzl7oqg207407476m.gif","http://ww4.sinaimg.cn/mw690/acf865f8ly1geywlzawwmg207407441d.gif","http://ww4.sinaimg.cn/mw690/acf865f8ly1geywlyvqu3g2074074goe.gif"],
profileSkin2: ["http://ww4.sinaimg.cn/mw690/acf865f8ly1geywluvq88g2074074gol.gif","http://ww4.sinaimg.cn/mw690/acf865f8ly1geywlu5xujg2074074gok.gif","http://ww4.sinaimg.cn/mw690/acf865f8ly1geywltdtcgg207407477b.gif","http://ww4.sinaimg.cn/mw690/acf865f8ly1geywlt2k73g2074074dhg.gif"],
tabIconVersion: 0, //配置大于100的数才生效
tabIconPath: "http://5b0988e595225.cdn.sohucs.com/skin-hebe.zip", //配置图标路径
}
//菜单配置
const itemMenusConfig = {
creator_task:false, //转发任务
mblog_menus_custom:false, //寄微博
mblog_menus_video_later:true, //可能是稍后再看?没出现过
mblog_menus_comment_manager:true, //评论管理
mblog_menus_avatar_widget:false, //头像挂件
mblog_menus_card_bg: false, //卡片背景
mblog_menus_long_picture:true, //生成长图
mblog_menus_delete:true, //删除
mblog_menus_edit:true, //编辑
mblog_menus_edit_history:true, //编辑记录
mblog_menus_edit_video:true, //编辑视频
mblog_menus_sticking:true, //置顶
mblog_menus_open_reward:true, //赞赏
mblog_menus_novelty:false, //新鲜事投稿
mblog_menus_favorite:true, //收藏
mblog_menus_promote:true, //推广
mblog_menus_modify_visible:true, //设置分享范围
mblog_menus_copy_url:true, //复制链接
mblog_menus_follow:true, //关注
mblog_menus_video_feedback:true, //播放反馈
mblog_menus_shield:true, //屏蔽
mblog_menus_report:true, //投诉
mblog_menus_apeal:true, //申诉
mblog_menus_home:true //返回首页
}
function nobyda() {
const isQuanX = typeof $task != "undefined";
const isSurge = typeof $httpClient != "undefined";
const isRequest = typeof $request != "undefined";
const notify = (title, subtitle='', message='') => {
if (isQuanX) $notify(title, subtitle, message)
if (isSurge) $notification.post(title, subtitle, message);
}
const write = (value, key) => {
if (isQuanX) return $prefs.setValueForKey(value, key);
if (isSurge) return $persistentStore.write(value, key);
}
const read = (key) => {
if (isQuanX) return $prefs.valueForKey(key);
if (isSurge) return $persistentStore.read(key);
}
const done = (value = {}) => {
if (isQuanX) return $done(value);
if (isSurge) isRequest ? $done(value) : $done();
}
return {
isRequest,
isSurge,
isQuanX,
notify,
write,
read,
done
}
}
let $ = new nobyda();
// $.write(JSON.stringify(isDebug), 'isDebug');
$.write(JSON.stringify(mainConfig), 'mainConfig');
$.write(JSON.stringify(itemMenusConfig), 'itemMenusConfig');
// console.log($.read('isDebug'));
console.log($.read('mainConfig'));
console.log($.read('itemMenusConfig'));
console.log('success');
$.notify('微博自定义配置更改成功');
$.done();