Greasy Fork is available in English.

Halve HN comment's indentation

Halves indentation of HN comments

Ce script ne devrait pas être installé directement. C'est une librairie créée pour d'autres scripts. Elle doit être inclus avec la commande // @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);