Skip to content

Instantly share code, notes, and snippets.

@gregorkas
gregorkas / gist:6267453
Last active December 21, 2015 06:58
A bookmarklet for removing posts from Hacker News that contain the words: "in Go".
javascript:var as=document.getElementsByTagName("a");for(var idx in as){var ihtml=as[idx].innerHTML;if(ihtml&&ihtml.indexOf("in Go")!=-1){var parent=as[idx].parentNode.parentNode.parentNode;var toRemove=as[idx].parentNode.parentNode;var sibling=as[idx].parentNode.parentNode.nextSibling;parent.removeChild(toRemove);parent.removeChild(sibling)}}
@gregorkas
gregorkas / Cornerizr
Created July 24, 2013 07:49
Cornerizr - Tired of those boring flat looking corners? Here is a bookmarklet that makes your (or any other) website beautiful again. Installation tips: 1. create a new bookmark and enter Cornerizr as the name 2. paste the code into the URL field 3. enjoy
javascript:(function(){var newcss='* { border-radius: 30px !important; }';if('\v'=='v'){document.createStyleSheet().cssText=newcss}else{var tag=document.createElement('style');tag.type='text/css';document.getElementsByTagName('head')[0].appendChild(tag);tag[(typeof document.body.style.WebkitAppearance=='string')?'innerText':'innerHTML']=newcss}})();