「javascript/pcomment_display」の編集履歴(バックアップ)一覧はこちら

javascript/pcomment_display - (2016/11/15 (火) 21:09:09) の1つ前との変更点

追加された行は緑色になります。

削除された行は赤色になります。

#js(){{{{{ <script> $(function() { var args = $.trim($('div#pcm_display_args').css('display', 'none').text()).split(','); var size_max = args.shift(); var tree_max = args.shift(); $('form.plugin_pcomment_form').each(function(){ // ページタイトルに特定の文字列を含む場合は適用外 var flag = 0; $.each(args, function(i,str){ if($('head title').text().match(str)){flag = 1;} }); if(flag == 1){return false;} var size = $(' li',this).length; var tree = $('> ul > li',this).length; $('> ul > li', this).each(function(){ console.log(size); console.log(tree); size -= $(' li', this).length + 1.0; tree --; if(size < size_max || tree < tree_max){return false;} else{$(this).css('display', 'none');} }); }); }); </script> }}}}}
#js(){{{{{ <style> div#pcm_display_args{ display:none; } </style> <script> $(function() { var args = $.trim($('div#pcm_display_args').text()).split(','); var size_max = args.shift(); var tree_max = args.shift(); $('form.plugin_pcomment_form').each(function(){ // ページタイトルに特定の文字列を含む場合は適用外 var flag = 0; $.each(args, function(i,str){ if($('head title').text().match(str)){flag = 1;} }); if(flag == 1){return false;} var size = $(' li',this).length; var tree = $('> ul > li',this).length; $('> ul > li', this).each(function(){ console.log(size); console.log(tree); size -= $(' li', this).length + 1.0; tree --; if(size < size_max || tree < tree_max){return false;} else{$(this).css('display', 'none');} }); }); }); </script> }}}}}

表示オプション

横に並べて表示:
変化行の前後のみ表示: