News for hackers. Stuff that matters.
Re:Why Aren’t Rich People Happy With the Money They Have? by mcv on Monday December 10, 2018 @04:39AM (#18646498)
Maybe it would be a good idea to hide your own total karma too. It's always right there on the top right, and I can't help looking at it. And I feel happy and proud when that number has gone up, and upset when it has gone down.

Much more useful would be notifications of people responding to my comments, or maybe even people continuing discussions that I'm interested in. It's easy to lose track of those if I haven't posted in them.

Re:Why Aren’t Rich People Happy With the Money They Have? by purple_ducks on Monday December 10, 2018 @05:54AM (#18646910)
tampermonkey script to do just that (would be nicer if HN could pop the karma into a span with an id :-) )

// ==UserScript==

// @name hide HN karma

// @namespace http://tampermonkey.net/

// @version 0.1

// @description hide HN karma

// @author You

// @match https://news.ycombinator.com/*

// @grant none

// ==/UserScript==

(function() {

    'use strict';  

    if(document.getElementById('me') !== null){   

      //hide karma 

        Array.from(document.getElementById('me').parentElement.childNodes)  

            .filter(x => x.nodeType == Node.TEXT_NODE)  

            .forEach(y => {y.textContent=' '})  


        //remove link to profile page

        let me = document.getElementById('me');  

        let newme = document.createElement('span');  

        newme.textContent = me.textContent;  

        me.parentElement.replaceChild(newme,me)  

        ;  

    }  
})();
Re:Why Aren’t Rich People Happy With the Money They Have? by gpvos on Monday December 10, 2018 @10:19AM (#18648466)
Thanks, I was looking into that earlier today but postponed it exactly because there was no element with an id, so I'd had to look up stuff to write it.
Re:Why Aren’t Rich People Happy With the Money They Have? by purple_ducks on Tuesday December 11, 2018 @05:05PM (#18659401)
Actually, hide karma part can be done clearer with just:

        //hide karma  

        let karma = document.getElementById("me").nextSibling;  

        karma.textContent = " | "