Skip to content

Instantly share code, notes, and snippets.

@cspinetta
Last active July 15, 2016 19:01
Show Gist options
  • Save cspinetta/52e4735dba9d91d616a792d82e952f71 to your computer and use it in GitHub Desktop.
Save cspinetta/52e4735dba9d91d616a792d82e952f71 to your computer and use it in GitHub Desktop.
For quickly completion the SIGA Survey: Open the Developer Tool of your browser (press F12), go to the Console Tab and Run this script (in 2 separated steps) to get your convenient options selected in all fields.
// First enable JQuery on the page
var jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
// Then, (After Jquery is in page) select your default option
var selectValue = '100%';
$('body > div > div > form > div > div:nth-child(6) > table')
.find('select > option')
.filter(function () { return $(this).html() == selectValue; })
.prop('selected', true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment