// ==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 ツイキャスのコメント欄を非表示にする。 // @downloadURL none // ==/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#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);