Alura Hack

nuh uh i dont want to do alura nomore :sob:

  1. // ==UserScript==
  2. // @name Alura Hack
  3. // @namespace https://cursos.alura.com.br/
  4. // @version 2024-09-23
  5. // @description nuh uh i dont want to do alura nomore :sob:
  6. // @author marcos10pc
  7. // @match https://cursos.alura.com.br/course/*/task/*
  8. // @icon https://i.imgur.com/gP1LZq9.png
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. console.log("--- ALURA DESTROYER BY marcos10pc ---");
  16.  
  17. const water_mark = document.querySelector('.formattedText');
  18. water_mark.innerHTML = 'sussy baka amongus';
  19.  
  20. let cookies = document.cookie;
  21.  
  22. let actual_url = window.location.href;
  23.  
  24. let next_lesson_button = document.getElementsByClassName("bootcamp-next-button")[0];
  25.  
  26. if (next_lesson_button){
  27. let next_lesson_link = next_lesson_button.getAttribute('href');
  28. let parts = actual_url.split('/');
  29. let lessonName = parts[4];
  30. let lessonId = parts[6];
  31. console.log(`[DEBUG] Lesson_Name: ${lessonName} Lesson_Id: ${lessonId} `);
  32.  
  33. fetch(`https://cursos.alura.com.br/course/${lessonName}/task/${lessonId}/mark-video`, {
  34. method: 'POST',
  35. credentials: 'include',
  36. headers: {
  37. 'Content-Type': 'application/json',
  38. 'Cookie': cookies
  39. }}).then(data => {
  40. console.log("[DEBUG] Lesson Done!")
  41. })
  42.  
  43. setTimeout(next_lesson_button.click(), 4000); // Modificar o tempo para 4 segundos
  44. } else {
  45. alert("Next Lesson Button not found :( are u sure that u are on the correct page?");
  46. }
  47. })();