Skip to content

Instantly share code, notes, and snippets.

@strix
Last active November 24, 2015 19:42
Show Gist options
  • Save strix/da126b9b2da17a51188e to your computer and use it in GitHub Desktop.
Save strix/da126b9b2da17a51188e to your computer and use it in GitHub Desktop.
For all IDEA course feedback surveys. Copy and paste this script in the console and it will mark all radio buttons with the value 5. You can then go through and change the questions you feel deserve less.
function markAllTheThings(){
$(document).ready(function(){
var frameContext = function(){
return window.parent.frames[1].document;
};
// You can change the value of qsox to any number between 1-5 for your default checked value
$(':radio[qsox="5"]', frameContext()).prop('checked', true);
});
}
(function() {
var script = document.createElement("script");
script.src = "https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js";
script.onload = script.onreadystatechange = function(){
markAllTheThings();
};
document.body.appendChild(script);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment