Greasy Fork is available in English.

Halve HN comment's indentation

Halves indentation of HN comments

Skrip ini tidak untuk dipasang secara langsung. Ini adalah pustaka skrip lain untuk disertakan dengan direktif meta // @require https://update.greasyfork.org/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);