marcos10pc / Alura-Destroyer

0 stars 9 forks source link

Alura #6

Open Joao184922 opened 1 week ago

Joao184922 commented 1 week ago

// ==UserScript== // @name Alura Destroyer // @namespace https://cursos.alura.com.br/ // @version 2024-09-23 // @description nuh uh i dont want to do alura nomore :sob: // @author wwwwwwwwwww // @match https://cursos.alura.com.br/course/*/task/* // @icon https://i.imgur.com/gP1LZq9.png // @grant none // ==/UserScript==

(function() { 'use strict'; const water_mark = document.querySelector('.formattedText'); water_mark.innerHTML = 'sussy baka amongus';

let cookies = document.cookie;

let actual_url = window.location.href;

let next_lesson_button = document.getElementsByClassName("bootcamp-next-button")[0];

if (next_lesson_button){
    let next_lesson_link = next_lesson_button.getAttribute('href');
    let parts = actual_url.split('/');
    let lessonName = parts[4];
    let lessonId = parts[6];
    console.log(`[DEBUG] Lesson_Name: ${lessonName} Lesson_Id: ${lessonId} `);

    fetch(`https://cursos.alura.com.br/course/${lessonName}/task/${lessonId}/mark-video`, {
      method: 'POST',
      credentials: 'include',
      headers: {
         'Content-Type': 'application/json',
         'Cookie': cookies
      }}).then(data => {
      console.log("[DEBUG] Lesson Done!")
      })

    setTimeout(next_lesson_button.click(), 4000); // Modificar o tempo para 4 segundos
} else {
    alert("Next Lesson Button not found :( are u sure that u are on the correct page?");
}

})();

mooonHqrrrr commented 3 days ago

// ==UserScript== // @name Alura Destroyer // @namespace https://cursos.alura.com.br/ // @version 2024-11-12 // @description nuh uh i dont want to do alura nomore :sob: // @author wwwwwwwwwww // @match https://cursos.alura.com.br/course/lista-recursao-criando-projeto-fusao-personagens/task/152688 // @icon https://i.imgur.com/gP1LZq9.png // @grant none // ==/UserScript==

(function() { 'use strict'; const water_mark = document.querySelector('.formattedText'); water_mark.innerHTML = 'sussy baka amongus';

let cookies = document.cookie;

let actual_url = window.location.href;

let next_lesson_button = document.getElementsByClassName("bootcamp-next-button")[0];

if (next_lesson_button){
    let next_lesson_link = next_lesson_button.getAttribute('href');
    let parts = actual_url.split('/');
    let lessonName = parts[4];
    let lessonId = parts[6];
    console.log(`[DEBUG] Lesson_Name: ${lessonName} Lesson_Id: ${lessonId} `);

    fetch(`https://cursos.alura.com.br/course/${lessonName}/task/${lessonId}/mark-video`, {
      method: 'POST',
      credentials: 'include',
      headers: {
         'Content-Type': 'application/json',
         'Cookie': cookies
      }}).then(data => {
      console.log("[DEBUG] Lesson Done!")
      })

    setTimeout(next_lesson_button.click(), 4000); // Modificar o tempo para 4 segundos
} else {
    alert("Next Lesson Button not found :( are u sure that u are on the correct page?");
}

})();

mooonHqrrrr commented 3 days ago

// ==UserScript== // @name Alura Destroyer // @namespace https://cursos.alura.com.br/ // @version 2024-11-12 // @description nuh uh i dont want to do alura nomore :sob: // @author wwwwwwwwwww // @match https://www.alura.com.br/curso-online-lista-recursao-criando-projeto-fusao-personagens // @icon https://i.imgur.com/gP1LZq9.png // @grant none // ==/UserScript==

(function() { 'use strict'; const water_mark = document.querySelector('.formattedText'); water_mark.innerHTML = 'sussy baka amongus';

let cookies = document.cookie;

let actual_url = window.location.href;

let next_lesson_button = document.getElementsByClassName("bootcamp-next-button")[0];

if (next_lesson_button){
    let next_lesson_link = next_lesson_button.getAttribute('href');
    let parts = actual_url.split('/');
    let lessonName = parts[4];
    let lessonId = parts[6];
    console.log(`[DEBUG] Lesson_Name: ${lessonName} Lesson_Id: ${lessonId} `);

    fetch(`https://cursos.alura.com.br/course/${lessonName}/task/${lessonId}/mark-video`, {
      method: 'POST',
      credentials: 'include',
      headers: {
         'Content-Type': 'application/json',
         'Cookie': cookies
      }}).then(data => {
      console.log("[DEBUG] Lesson Done!")
      })

    setTimeout(next_lesson_button.click(), 4000); // Modificar o tempo para 4 segundos
} else {
    alert("Next Lesson Button not found :( are u sure that u are on the correct page?");
}

})();

Vfermiano1418 commented 3 days ago

Como usa isso no alura da escola ?