Last active
July 15, 2016 19:01
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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