Skip to content

Instantly share code, notes, and snippets.

View postmalloc's full-sized avatar
🛸

Srimukh Sripada postmalloc

🛸
View GitHub Profile
@postmalloc
postmalloc / .block
Created January 4, 2020 05:47
fresh block
license: mit
@postmalloc
postmalloc / hn_sidebar.js
Last active August 30, 2023 08:10
Hacker News comments sidebar bookmarklet
// A handy bookmarklet to display comments from the top-rated Hacker News thread related to the current page
// Written with the help of GPT-4
javascript:(function() {
const createCommentElement = (comment, depth) => {
const commentWrapper = document.createElement('div');
commentWrapper.style.paddingLeft = (depth * 20) + 'px';
commentWrapper.style.marginBottom = '10px';
commentWrapper.style.marginLeft = '10px';
commentWrapper.style.color = '#333';