Code.org Auto Report

Automatically clicks the report link when in a code.org project.

  1. // ==UserScript==
  2. // @name Code.org Auto Report
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Automatically clicks the report link when in a code.org project.
  6. // @author You
  7. // @match https://studio.code.org/projects/*/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=code.org
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. var i = setInterval(() => {
  14. var ml = document.getElementsByClassName("more-link")[0];
  15. if (ml != undefined) {
  16. clearInterval(i);
  17. ml.click();
  18. var ra = document.getElementsByClassName("ui-test-report-abuse")[0].children[0];
  19. ra.target = "";
  20. ra.click();
  21. }
  22. }, 10);