Skip to content

Commit

Permalink
add chat filter item for 2233
Browse files Browse the repository at this point in the history
  • Loading branch information
jjj201200 committed Mar 20, 2019
1 parent d68c8d9 commit 186199a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bilibili-helper-master",
"version": "1.2.1-beta.6",
"version": "1.2.1-beta.7",
"description": "bilibili-helper",
"main": "index.js",
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions src/js/modules/chatFilter/UI/ChatFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export class ChatFilter extends React.Component {
achievement: '.chat-item:not(.hover) .title-label{display:none !important;}',
level: '.chat-item:not(.hover) .user-level-icon{display:none !important;}',
announcement: '.chat-item:not(.hover).system-msg{display:none !important;}',
'2233': '#my-dear-haruna-vm{display:none !important;}',
};
this.roomId = location.pathname.slice(1);
this.storeName = 'bilibili-helper-chat-filter';
Expand Down
3 changes: 2 additions & 1 deletion src/js/modules/chatFilter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ export class ChatFilter extends Feature {
{key: 'medal', title: '粉丝勋章', on: true},
{key: 'achievement', title: '成就头衔', on: true},
{key: 'level', title: '用户等级', on: true},
{key: '2233', title: '2233娘', on: true},
{key: 'announcement', title: '系统公告', on: false, description: '如:活动广播,抽奖或礼物广播推送等'},
],
},
},
});
}
};
};
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"1.2.1.6","update_url":"https://clients2.google.com/service/update2/crx","manifest_version":2,"minimum_chrome_version":"56.0.0","name":"__MSG_extensionName__","short_name":"__MSG_extensionShortName__","default_locale":"zh_CN","description":"__MSG_extensionDescription__","options_ui":{"page":"config.html","open_in_tab":true},"options_page":"config.html","background":{"scripts":["vendors.bundle.js","features.bundle.js","background.js"],"persistent":true},"browser_action":{"default_icon":{"19":"statics/imgs/icon-19.png","38":"statics/imgs/icon-38.png"},"default_popup":"popup.html","default_title":"__MSG_extensionShortName__"},"content_scripts":[{"all_frames":false,"js":["video.js","vendors.bundle.js","features.bundle.js"],"css":["styles/vendors.css","styles/features.css"],"matches":["*://*.bilibili.com/bangumi/play/ss*","*://*.bilibili.com/bangumi/play/ep*","*://*.bilibili.com/video/av*"],"run_at":"document_end"},{"all_frames":false,"js":["vendors.bundle.js","live.js","statics/js/ocrad.min.js","features.bundle.js"],"matches":["*://live.bilibili.com/*"],"run_at":"document_end"},{"all_frames":false,"js":["vendors.bundle.js","website.js","features.bundle.js"],"matches":["*://localhost/*","*://helper.drowsyflesh.com/*","*://bilibili-helper.github.io/*"],"run_at":"document_start"},{"all_frames":false,"js":["vendors.bundle.js","cv.js","features.bundle.js"],"css":["styles/vendors.css","styles/features.css"],"matches":["*://www.bilibili.com/read/cv*"],"run_at":"document_end"},{"all_frames":false,"js":["vendors.bundle.js","tbilibili.js","features.bundle.js"],"css":["styles/vendors.css","styles/features.css"],"matches":["*://t.bilibili.com/?tab=*"],"run_at":"document_end"}],"externally_connectable":{"matches":["*://*/*"]},"icons":{"16":"statics/imgs/icon-16.png","32":"statics/imgs/icon-32.png","128":"statics/imgs/icon-128.png"},"key":"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDd/wqh8sN1lnVWVGyKqhGM0Zz0ZuY3Dq5hNK3qNBw1/+B/XGe+zzwe7aSyr0qikd8pkN5HpoDvEDdkFHcdhPwXWoQGKiNAnKtohuz/2+g5YzLYzQg2bRqKdYJebEoCoiHtoSNS/HRtUeg483ypAH26LLyD6p+ykwQNo9DvtBo0kwIDAQAB","permissions":["downloads","alarms","contextMenus","cookies","notifications","storage","tabs","webRequest","webRequestBlocking","http://*/","https://*/"],"web_accessible_resources":["statics/*","bilibili-helper.woff","at.alicdn.com/t/*","libs/*","js/*"],"content_security_policy":"script-src 'self' https://www.google-analytics.com/analytics.js https://www.google-analytics.com/analytics_debug.js; object-src 'self';","incognito":"split"}
{"version":"1.2.1.7","update_url":"https://clients2.google.com/service/update2/crx","manifest_version":2,"minimum_chrome_version":"56.0.0","name":"__MSG_extensionName__","short_name":"__MSG_extensionShortName__","default_locale":"zh_CN","description":"__MSG_extensionDescription__","options_ui":{"page":"config.html","open_in_tab":true},"options_page":"config.html","background":{"scripts":["vendors.bundle.js","features.bundle.js","background.js"],"persistent":true},"browser_action":{"default_icon":{"19":"statics/imgs/icon-19.png","38":"statics/imgs/icon-38.png"},"default_popup":"popup.html","default_title":"__MSG_extensionShortName__"},"content_scripts":[{"all_frames":false,"js":["video.js","vendors.bundle.js","features.bundle.js"],"css":["styles/vendors.css","styles/features.css"],"matches":["*://*.bilibili.com/bangumi/play/ss*","*://*.bilibili.com/bangumi/play/ep*","*://*.bilibili.com/video/av*"],"run_at":"document_end"},{"all_frames":false,"js":["vendors.bundle.js","live.js","statics/js/ocrad.min.js","features.bundle.js"],"matches":["*://live.bilibili.com/*"],"run_at":"document_end"},{"all_frames":false,"js":["vendors.bundle.js","website.js","features.bundle.js"],"matches":["*://localhost/*","*://helper.drowsyflesh.com/*","*://bilibili-helper.github.io/*"],"run_at":"document_start"},{"all_frames":false,"js":["vendors.bundle.js","cv.js","features.bundle.js"],"css":["styles/vendors.css","styles/features.css"],"matches":["*://www.bilibili.com/read/cv*"],"run_at":"document_end"},{"all_frames":false,"js":["vendors.bundle.js","tbilibili.js","features.bundle.js"],"css":["styles/vendors.css","styles/features.css"],"matches":["*://t.bilibili.com/?tab=*"],"run_at":"document_end"}],"externally_connectable":{"matches":["*://*/*"]},"icons":{"16":"statics/imgs/icon-16.png","32":"statics/imgs/icon-32.png","128":"statics/imgs/icon-128.png"},"key":"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDd/wqh8sN1lnVWVGyKqhGM0Zz0ZuY3Dq5hNK3qNBw1/+B/XGe+zzwe7aSyr0qikd8pkN5HpoDvEDdkFHcdhPwXWoQGKiNAnKtohuz/2+g5YzLYzQg2bRqKdYJebEoCoiHtoSNS/HRtUeg483ypAH26LLyD6p+ykwQNo9DvtBo0kwIDAQAB","permissions":["downloads","alarms","contextMenus","cookies","notifications","storage","tabs","webRequest","webRequestBlocking","http://*/","https://*/"],"web_accessible_resources":["statics/*","bilibili-helper.woff","at.alicdn.com/t/*","libs/*","js/*"],"content_security_policy":"script-src 'self' https://www.google-analytics.com/analytics.js https://www.google-analytics.com/analytics_debug.js; object-src 'self';","incognito":"split"}

0 comments on commit 186199a

Please sign in to comment.