Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
akoya-tomo committed Sep 9, 2018
2 parents 9ce70ba + 18cddf1 commit 117d271
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 4 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
- ツールバーボタンからNGワードを登録する機能を追加
ツールバーボタンのポップアップからNGワードを直接登録することができます。
またポップアップの右上の[設定]ボタンから設定画面を開くことができます。
\(New\) NGにしたい文字列を選択してからツールバーボタンを押すとNGワード入力欄に反映されます。
NGにしたい文字列を選択してからツールバーボタンを押すとNGワード入力欄に反映されます。
- 設定の変更やNGワードの登録が直ぐにスレに反映されるように変更
スレを更新しなくても設定の変更やNGワードの登録が直ぐに反映されます。

## インストール
**GitHub**
[![インストールボタン](images/install_button.png "クリックでアドオンをインストール")](https://github.com/akoya-tomo/koshian_ng_kai/releases/download/v1.2.1/koshian_ng_kai-1.2.1-an.fx.xpi)
[![インストールボタン](images/install_button.png "クリックでアドオンをインストール")](https://github.com/akoya-tomo/koshian_ng_kai/releases/download/v1.2.2/koshian_ng_kai-1.2.2-an+fx.xpi)

※「接続エラーのため、アドオンをダウンロードできませんでした。」と表示されてインストール出来ないときはインストールボタンを右クリックしてxpiファイルをダウンロードし、メニューのツール→アドオン(またはCtrl+Shift+A)で表示されたアドオンマネージャーのページにxpiファイルをドラッグ&ドロップして下さい。

Expand All @@ -42,6 +42,8 @@
- 永続的な登録を必要としないIDやIPの登録を想定しています。

## 更新履歴
* v1.2.2 2018-09-09
- [赤福Extended](https://toshiakisp.github.io/akahuku-firefox-sp/)のリロードに対応
* v1.2.1 2018-05-14
- NGワード登録で[隠す]ボタンで隠したレスが表示される不具合を修正
* v1.2.0 2018-05-14
Expand Down
18 changes: 18 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash
set -Ceu
cd `dirname $0`

TARGET_DIR="./koshian_ng"
OUTPUT_DIR=".."

script_dir=$(cd $(dirname $0); pwd)
echo "script_dir = $script_dir"
addon_name=${script_dir##*/}
echo "addon_name = $addon_name"
cd ${TARGET_DIR}
addon_ver=$(jq -r '.version' manifest.json)
echo "addon_ver = $addon_ver"
filename="${OUTPUT_DIR}/${addon_name}-${addon_ver}.zip"
echo "filename = $filename"

zip -v -r -9 ${filename} * -x "*.bak" ".eslint*"
2 changes: 1 addition & 1 deletion koshian_ng/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

"name":"KOSHIAN NG 改",

"version":"1.2.1",
"version":"1.2.2",

"applications": {
"gecko": {
Expand Down
5 changes: 5 additions & 0 deletions koshian_ng/res.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,11 @@ function main(){
process(last_process_num);
});

document.addEventListener("AkahukuContentAppend", (e) => {
let beg = last_process_num;
process(last_process_num);
});

document.addEventListener("visibilitychange", handleVisibilityChange, false);

browser.runtime.onMessage.addListener(function(msg, sender, sendResponse) {
Expand Down
2 changes: 1 addition & 1 deletion updates.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"addons": {
"{709CBCCE-3EDF-11E8-817A-C6D28A3A6C14}": {
"updates": [
{ "version": "1.2.1", "update_link": "https://github.com/akoya-tomo/koshian_ng_kai/releases/download/v1.2.1/koshian_ng_kai-1.2.1-an.fx.xpi" }
{ "version": "1.2.2", "update_link": "https://github.com/akoya-tomo/koshian_ng_kai/releases/download/v1.2.2/koshian_ng_kai-1.2.2-an+fx.xpi" }
]
}
}
Expand Down

0 comments on commit 117d271

Please sign in to comment.