Skip to content

Instantly share code, notes, and snippets.

View drake01's full-sized avatar
๐Ÿ™‚

Gulshan Kumar drake01

๐Ÿ™‚
View GitHub Profile

Keybase proof

I hereby claim:

  • I am drake01 on github.
  • I am gulshankumar (https://keybase.io/gulshankumar) on keybase.
  • I have a public key ASCJJiHiRhIIfm3SdtNJrajYFxLaKiCM5CzQHfDSfX_sRQo

To claim this, I am signing this object:

@drake01
drake01 / hn_seach.js
Created September 1, 2017 19:39 — forked from kristopolous/hn_seach.js
hn job query search
function query() {
var
// HN is done with very unsemantic classes.
job_list = Array.prototype.slice.call(document.querySelectorAll('.c5a,.cae,.c00,.c9c,.cdd,.c73,.c88')),
query_list = Array.prototype.slice.call(arguments),
shown = 0, total = job_list.length;
// Traverses up the dom stack trying to find a match of a specific class
function up_to(node, klass) {
if (node.classList.contains(klass)) {