Halves indentation of HN comments
此腳本不應該直接安裝,它是一個供其他腳本使用的函式庫。欲使用本函式庫,請在腳本 metadata 寫上: // @require https://update.gf.qytechs.cn/scripts/460786/1154528/Halve%20HN%20comment%27s%20indentation.js
// ==UserScript==
// @name Halve HN comment's indentation
// @namespace https://github.com/tekinosman/
// @version 1.1
// @license MIT
// @description Halves indentation of HN comments
// @author Osman Tekin
// @match https://news.ycombinator.com/*
// @match http://news.ycombinator.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=ycombinator.com
// @grant none
// ==/UserScript==
document.querySelectorAll(".ind img") /* Comments are indented
* with varying-width img elements
*/
.forEach(indentation => indentation.width *= 0.5);