Last active
October 15, 2015 12:44
-
-
Save puyo-sh/ceb05cad25e5995ad312 to your computer and use it in GitHub Desktop.
ブラウザ三国志 ひとことコメント欄拡張
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name 3gokushi-WordExtention | |
// @namespace https://github.com/puyo-sh/bro3 | |
// @description ブラウザ三国志 ひとコメ拡張 | |
// @include http://*.3gokushi.jp/* | |
// @version 2.0β | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js | |
// ==/UserScript== | |
// ver 1.0 単品化 | |
// ver 2.0β 2015.10.5 仕様変更に合わせて突貫仕様 | |
j$ = jQuery.noConflict(true); | |
(function ($){ | |
// コメントエリア調整 --------------------------------------------------------------------------------- | |
function commentAreaAdjust(){ | |
$("#comment .sel_group").css({ | |
'cssText': 'display:none; z-index:999;' | |
}); | |
$("div#comment.group_mode>div.comment_list_outer>div#commentList, div#comment.direct_mode>div.comment_list_outer>div#commentList").css({ | |
'cssText': 'top:0 !important;' | |
}); | |
$(".comment_btn_area .button_area_bottom").append('<a href="javascript:void(0)" id="group_slide" style="font-size:10px;color:#423B17">セレクタ表示</a>'); | |
$("#group_slide").off("click").on("click",function(){ | |
$("#comment .sel_group").slideToggle(100); | |
}); | |
$("#chatSelect .tab_group,#chatSelect .tab_direct").on("click",function(){ | |
$("div#comment.group_mode>div.comment_list_outer>div#commentList, div#comment.direct_mode>div.comment_list_outer>div#commentList").css({ | |
'cssText': 'top:0 !important;' | |
}); | |
}); | |
$("#comment .sel_group_box,#comment .sel_user_box").change(function(){ | |
$("#comment .sel_group").hide(); | |
}); | |
} | |
// Run | |
$(document).ready(function(){ | |
commentAreaAdjust(); | |
}); | |
})(j$); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment