Skip to content

Instantly share code, notes, and snippets.

View UltraNurd's full-sized avatar

Nicolas Ward UltraNurd

View GitHub Profile
@UltraNurd
UltraNurd / keybase.md
Created February 4, 2016 23:23
Verifying my GitHub account for Keybase

Keybase proof

I hereby claim:

  • I am ultranurd on github.
  • I am nward (https://keybase.io/nward) on keybase.
  • I have a public key ASDURH-w8YnB2dyAUy1ZHI_lb3R5lvYyHNlhOdJSY_nApAo

To claim this, I am signing this object:

Verifying I am +nward on my passcard. https://onename.com/nward
@UltraNurd
UltraNurd / Marvel #1 Add All
Created April 12, 2013 14:50
This JavaScript one-liner iterates through all of the paging and "add to cart" buttons at promo.comixology.com to add each of 723 Marvel #1s to your Comixology cart. Checkout and login etc. are still handled manually. I just pasted this into my Chrome console.
pagers = document.getElementsByClassName('adHocPager');
for (i = 0; i < 18; i++) {
add_buttons = document.getElementsByClassName('addComicLink');
for (a = 0; a < add_buttons.length; a++) {
if (add_buttons[a].text != 'In Cart') {
add_buttons[a].click();
}
}
for (p = 0; p < pagers.length; p++) {
next_buttons = pagers[p].getElementsByTagName('a');