TR Height 초기화 및 Padding 수정

height="128" 인 tr 요소의 높이를 초기화하고 #read_profile_td에 padding-bottom 10px을 적용합니다.

当前为 2025-10-30 提交的版本,查看 最新版本

// ==UserScript==
// @name         TR Height 초기화 및 Padding 수정
// @namespace    https://greasyfork.org/users/your-username
// @version      1.0.1
// @description  height="128" 인 tr 요소의 높이를 초기화하고 #read_profile_td에 padding-bottom 10px을 적용합니다.
// @match        *://*/*
// @grant        none
// ==/UserScript==

(function() {
  'use strict';

  // 스타일 수정
  const style = document.createElement('style');
  style.textContent = `
    tr[height="128"] { height: initial !important; }
    #read_profile_td { padding-bottom: 10px !important; }
  `;
  document.head.appendChild(style);

  // 댓글 숨기기 로직
  document.querySelectorAll('li[id^="comment_li_"]').forEach(li => {
    const ok = li.querySelector('.ok .r');
    const notok = li.querySelector('.notok');
    if (!ok || !notok) return;

    const okVal = parseInt(ok.textContent.trim(), 10) || 0;
    const notokVal = parseInt(notok.textContent.replace(/\D/g, ''), 10) || 0;

    if (okVal === 0 && notokVal === 0) {
      li.style.display = 'none';
    }
  });
})();