Skip to content

Commit

Permalink
[v1.0.0] フィルター条件の追加
Browse files Browse the repository at this point in the history
  • Loading branch information
junt1458 committed Jul 13, 2022
1 parent c471336 commit 8fc3610
Show file tree
Hide file tree
Showing 11 changed files with 61 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/dist
dist.crx
dist.pem

# Created by https://www.toptal.com/developers/gitignore/api/macos,node
# Edit at https://www.toptal.com/developers/gitignore?templates=macos,node
Expand Down
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 Junki Tomatsu

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Superchat Log

Superchat/Gift/Membership log viewer for bilibili (Chrome extension)

# 言語・フレームワーク

- JavaScript
- Browserify

# コマンド

```bash
# Initial setup
$ yarn

# Build codes
$ yarn build
```

# ビルド済みバージョン
[https://chrome.google.com/webstore/detail/bilibili-gift-logger/bgkkmbgcbcdhcdaabnmdjnpddneeegge](https://chrome.google.com/webstore/detail/bilibili-gift-logger/bgkkmbgcbcdhcdaabnmdjnpddneeegge)

# ライセンス

MIT License
10 changes: 8 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function on_checked(id, updated_to, type) {

// Hide from screen (only filter enabled)
const f = get_filter_val();
if(f === 0 || f === 2 || f === 4)
if(f === 0 || f === 2 || f === 4 || f === 6)
return;

const div_a = document.getElementById(id + "_a");
Expand Down Expand Up @@ -279,6 +279,12 @@ function match_filter(data) {
case 5: {
return !data.checked && price >= 99;
}
case 6: {
return price >= 999;
}
case 7: {
return !data.checked && price >= 999;
}
default: {
return false;
}
Expand Down Expand Up @@ -551,7 +557,7 @@ async function getCommentRoomID (id) {
if(m2) {
return parseInt(m2[1]);
}
return -1;
return id;

}

Expand Down
Binary file modified static/icons/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/icons/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/icons/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/icons/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/icons/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions static/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@
<option>30元以上のみ表示する(未読のみ)</option>
<option>99元以上のみ表示する(全て)</option>
<option>99元以上のみ表示する(未読のみ)</option>
<option>999元以上のみ表示する(全て)</option>
<option>999元以上のみ表示する(未読のみ)</option>
</select>
</div>
</div>
Expand Down
7 changes: 3 additions & 4 deletions static/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
"manifest_version": 3,
"name": "Bilibili Gift Logger",
"short_name": "B23 SC Logger",
"version": "0.0.1",
"description": "Gift log viewer for bilibili live",
"version": "1.0.0",
"description": "Gift/Superchat/Membership log viewer for bilibili live",
"permissions": [
"storage",
"contextMenus"
"storage"
],
"host_permissions": [
"*://*.bilibili.com/"
Expand Down

0 comments on commit 8fc3610

Please sign in to comment.