Skip to content

Instantly share code, notes, and snippets.

@eramdam
Created June 28, 2014 09:08
Show Gist options
  • Save eramdam/b31e1ba0be1662debe7a to your computer and use it in GitHub Desktop.
Save eramdam/b31e1ba0be1662debe7a to your computer and use it in GitHub Desktop.
Because filling Nintendo surveys for games and consoles is boring, I made some commands to do it quickly.

How to fill the Nintendo surveys quickly

Or 'How to don't loose time on these damn surveys and earn your stars and start playing the game you just got

Since the Nintendo's website uses jQuery, we should totally use it to do that.

How ?

Open your JavaScript console (Cmd+Alt+J on Chrome OSX/Ctrl+Shift+J on Chrome Windows) and type the following commands :

1st page

This bad boy fills out the first radio/checkboxes buttons on the first page !

$('.clubcontent + [class*="form_"] input').attr('checked',true)

And this one fills out the "How many persons are gonna play the game ?" question

$('input[type=text][name=q1]').val('1')

Other pages

Luckily enough, the following pages are almost all the same in structure so you can use this naughty boy to fill out (almost) all the radio/checkboxes buttons afterwards, yay!

$('[id^=q] [class*="form_"]:first-child input, .clubcontent + [class*="form_"] input, input[id^=q]').attr('checked',true)

User section on 2nd page

When you're on the 2nd page, there is the User Infos section, use these nifty lines (in order) to fill this section in no time!

// Age input
$('input[id*=age]').val('42').trigger('keyup')
// Gender age
$('#q2_1_gender').val('2')
// The first user radio button
$('input[name=q2b]').trigger('click')

Okay, and now ?

Play your damn game and enjoy your (hard earned) stars right now!

PS: If you liked this piece of stuff, you can always donate on PayPal to damien[.]erambert[at]me[.]com

@lhirlimann
Copy link

Why is this Chrome only ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment