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 Dec 24, 2017
2 parents 36a4970 + deeb6ad commit 7655d7d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ ChromeやOperaでの動作は未確認です。既読スレピックアップ機
* Firefoxアドオン[ねないこ](http://nenaiko.sakura.ne.jp/nenaiko/)と併用する場合は、ねないこの設定より「カタログ2」→「カタログ本文のスタイルを指定する」のチェックを外してください。

## 更新履歴
* v1.6.6rev3 2017-12-24
- マーク監視開始前にマーク完了が来た時の処理を変更
* v1.6.6rev2 2017-12-24
- マーク監視タイムアウト処理に失敗することがあるので修正
- マーク監視タイムアウト処理に失敗することがあるのを修正
* v1.6.6rev1 2017-12-23
- KOSHIAN Catarog Marker kaiとの連携で既読スレのピックアップ機能を追加
- 板名+ソート名をタブに表示する機能を追加
Expand Down
26 changes: 17 additions & 9 deletions futaba_thread_highlighter.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// @description スレ本文を検索してカタログでスレッド監視しちゃう
// @include http://*.2chan.net/*/futaba.php?mode=cat*
// @include https://*.2chan.net/*/futaba.php?mode=cat*
// @version 1.6.6rev2
// @version 1.6.6rev3
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js
// @grant GM_registerMenuCommand
// @grant GM_getValue
Expand Down Expand Up @@ -52,10 +52,10 @@ this.$ = this.jQuery = jQuery.noConflict(true);
setStyle();
makecontainer();
makeConfigUI();
check_timeout();
//check_timeout内でhighlight呼び出しに変更
// highlight();
check_akahuku_reload();
check_timeout();
}

/*
Expand Down Expand Up @@ -359,6 +359,7 @@ this.$ = this.jQuery = jQuery.noConflict(true);
//カタログでマークされたことを検出
else if (nodes.length && USE_PICKUP_OPENED_THREAD) {
if (nodes[0].id == "kcm_mark_opened_thre_comp") {
nodes[0].id = "fth_receive_mark_comp";
clearTimeout(timer_kcm);
highlight();
pickup_opened_threads();
Expand All @@ -378,13 +379,20 @@ this.$ = this.jQuery = jQuery.noConflict(true);
*/
function check_timeout() {
if (USE_PICKUP_OPENED_THREAD) {
timer_kcm = setTimeout(function() {
// if (!$("#kcm_mark_opened_thre_comp").length) {
console.log("futaba_thread_highlighter : kcm timeout");
highlight();
pickup_opened_threads();
// }
}, 3000);
if (!$("#kcm_mark_opened_thre_comp").length &&
!$("#fth_receive_mark_comp").length) {
timer_kcm = setTimeout(function() {
// if (!$("#fth_receive_mark_comp").length) {
console.log("futaba_thread_highlighter : kcm timeout");
highlight();
pickup_opened_threads();
// }
}, 3000);
}else if (!$("#fth_receive_mark_comp").length) {
console.log("futaba_thread_highlighter : kcm already marked");
highlight();
pickup_opened_threads();
}else return;
}else {
//既読ピックアップ無効のときはハイライト呼び出し
highlight();
Expand Down

0 comments on commit 7655d7d

Please sign in to comment.