Halve HN comment's indentation

Halves indentation of HN comments

此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.gf.qytechs.cn/scripts/460786/1154528/Halve%20HN%20comment%27s%20indentation.js

  1. // ==UserScript==
  2. // @name Halve HN comment's indentation
  3. // @namespace https://github.com/tekinosman/
  4. // @version 1.1
  5. // @license MIT
  6. // @description Halves indentation of HN comments
  7. // @author Osman Tekin
  8. // @match https://news.ycombinator.com/*
  9. // @match http://news.ycombinator.com/*
  10. // @icon https://www.google.com/s2/favicons?sz=64&domain=ycombinator.com
  11. // @grant none
  12. // ==/UserScript==
  13.  
  14. document.querySelectorAll(".ind img") /* Comments are indented
  15. * with varying-width img elements
  16. */
  17. .forEach(indentation => indentation.width *= 0.5);

QingJ © 2025

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