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 = " | "
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.