How to auto-complete a course


With the new and improved version of GameDev.tv, your learning experience is vastly improved over our previous technology. After this switch however, many students were left without a way to transfer their course progress. While there is still no direct way, there is a quick and easy method to auto-complete a course that you own and have it reflect the progress you had on the previous site.

We understand how frustrating losing course progress can be, and we hope this method helps speed up your data transfer. By following the steps below, you can automate the completion of courses you've already finished.

First, navigate to the Course Page

  1. Open your web browser.
  2. Go to our new website at https://GameDev.tv.
  3. Log in with your account credentials.
  4. Navigate to the course page for the course you wish to mark as completed.
  5. Open the Browser's Developer Tools

For Google Chrome:

  • Right-click anywhere on the course page and select "Inspect" or press Ctrl+Shift+I (Windows/Linux) or Cmd+Option+I (Mac).

For Mozilla Firefox:

  • Right-click anywhere on the course page and select "Inspect Element" or press Ctrl+Shift+I (Windows/Linux) or Cmd+Option+I (Mac).

For Microsoft Edge:

  • Right-click anywhere on the course page and select "Inspect" or press Ctrl+Shift+I.

For Safari:

  • Right-click anywhere on the course page and select "Inspect Element" or press Cmd+Option+I.

Second, access the Console Tab

  1. Once the Developer Tools panel is open, navigate to the "Console" tab.
  2. Copy the script code provided below
  3. Paste the copied script into the Console.
  4. Run the Script
// Function to check a single checkbox with a delay
function checkCheckbox(checkbox, delay) {
return new Promise((resolve) => {
setTimeout(() => {
if (!checkbox.checked) {
checkbox.click(); // Simulate a click to ensure it updates the UI
console.log('Checkbox checked.');
}
resolve();
}, delay);
});
}

// Function to check all checkboxes one by one with a delay
async function checkAllCheckboxes() {
// Selecting all checkboxes within the sidebar container
const checkboxes = document.querySelectorAll('.h-player-sidebar input[type="checkbox"]');
const delay = 500; // Delay in milliseconds

for (let checkbox of checkboxes) {
await checkCheckbox(checkbox, delay);
}
console.log('All checkboxes have been checked.');
}

// Execute the function to check all checkboxes
checkAllCheckboxes();


Press Enter to execute the script.

The script will automatically mark the course as completed, and will check every lecture 1 by 1 until it either finishes, or you navigate away from the page. If you do not wish for the entire course to be marked as completed, then simply hit the back button when the script reaches any lecture of your choice.


Verify Completion

  1. Refresh the course page to verify that your progress has been restored.
  2. Repeat the process for any additional courses as needed.

Troubleshooting

If you encounter any issues while running the script or have any questions, please do not hesitate to contact our support team at [email protected]. We are here to assist you and ensure that your learning experience remains uninterrupted.

We appreciate your understanding and patience during this transition. Thank you for being an awesome student, and a valued member of our learning community!

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.