twitcasting_collapse_comment

ツイキャスのコメント欄を非表示にする。

目前为 2018-01-27 提交的版本。查看 最新版本

// ==UserScript==
// @name        twitcasting_collapse_comment
// @namespace   http://catherine.v0cyc1pp.com/twitcasting_collapse_comment.user.js
// @include     http://twitcasting.tv/*
// @include     https://twitcasting.tv/*
// @exclude     https://twitcasting.tv/
// @exclude     https://twitcasting.tv/?*
// @version     1.3
// @require     http://code.jquery.com/jquery-2.1.4.min.js
// @grant       none
// @run-at      document-end
// @description ツイキャスのコメント欄を非表示にする。
// ==/UserScript==

this.$ = this.jQuery = jQuery.noConflict(true);


//console.log("twitcasting_collapse_comment start");

this.$ = this.jQuery = jQuery.noConflict(true);


function main() {
	var attr = $("div#navibox").attr("abcde");
	if( typeof attr !== 'undefined' && attr !== false ){
	} else {
		$("div#navibox").attr("abcde","twitcasting_collapse_comment");
		$("div#navibox").before('<div margin-top: 0px; margin-bottom: 0px;" width="320" frameborder="0" height="420" onclick="obj=document.getElementById(\'navibox\').style; obj.display=(obj.display==\'none\')?\'block\':\'none\';"><center><a style="cursor:pointer;">コメントエリア (クリックで展開)</a></center></div>');
		$("div#navibox").attr("style","display:none;clear:both;");
	}
}


var observer = new MutationObserver(function(mutations) {
    observer.disconnect();
    main();
    observer.observe( document, config);
});
 
var config = { attributes: false, childList: true, characterData: false, subtree:true };
 
observer.observe( document, config);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址