Last active
          November 24, 2015 19:42 
        
      - 
      
- 
        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.
  
        
  
    
      This file contains hidden or 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
    
  
  
    
  | 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