Edmentum Skip Tutorials

Enables the "Summary" button on tutorials.

目前为 2023-05-15 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Edmentum Skip Tutorials
  3. // @namespace https://github.com/Kellenn
  4. // @version 0.1.1
  5. // @description Enables the "Summary" button on tutorials.
  6. // @author Kellen
  7. // @match https://*.app.edmentum.com/courseware-delivery/*
  8. // ==/UserScript==
  9.  
  10. function enableSummary(delay, count) {
  11. if (count > 5) {
  12. return;
  13. }
  14.  
  15. let summary = document.querySelector("[title='Summary']");
  16. if (!summary) {
  17. setTimeout(() => enableSummary(delay * ++count, count), delay);
  18. } else {
  19. summary.class = "toc-current toc-section";
  20. summary.removeAttribute("disabled");
  21. }
  22. }
  23.  
  24. enableSummary(500, 1);