Code.org Auto Fill Up Report Form

Automatically fills up the report form of a code.org project.

  1. // ==UserScript==
  2. // @name Code.org Auto Fill Up Report Form
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Automatically fills up the report form of a code.org project.
  6. // @author You
  7. // @match https://studio.code.org/report_abuse
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=code.org
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. var e = document.getElementById("uitest-email");
  14. var d = document.getElementById("uitest-abuse-type");
  15. var t = document.getElementById("uitest-abuse-detail");
  16. var s = document.getElementById("uitest-submit-report-abuse");
  17. e.value = "cool@gmail.com";
  18. d.selectedIndex = "2";
  19. t.value = "Offensive content";
  20. s.click();