Edmentum Show Sample Answers

Always shows sample answer buttons when they exist, regardless of whether the question has been submitted

  1. // ==UserScript==
  2. // @name Edmentum Show Sample Answers
  3. // @namespace EdmentumShowSampleAnswers
  4. // @version 0.2.1
  5. // @description Always shows sample answer buttons when they exist, regardless of whether the question has been submitted
  6. // @author Origami Toast
  7. // @match https://*.edmentum.com/*
  8. // @grant none
  9. // @run-at document-end
  10. // ==/UserScript==
  11.  
  12. for(let nav of document.getElementsByClassName('SampleAnswerNav')){
  13. nav.style = {}
  14. nav.firstElementChild.style.display = 'inline-block'
  15. }
  16.  
  17. for(let nav of document.getElementsByClassName('buttonCorrectToggle')){
  18. nav.style.display = 'inline'
  19. nav.style.visibility = 'visible'
  20. }