Automatically click "Start Verification" after the 10-second timer finishes or button appears
目前為
// ==UserScript==
// @name uhdmovies - Auto Bypass Timer and Click Start Verification
// @namespace http://tampermonkey.net/
// @author Hasan-Abbas
// @version 0.1
// @description Automatically click "Start Verification" after the 10-second timer finishes or button appears
// @match https://tech.unblockedgames.world/*
// @grant none
// ==/UserScript==
(function () {
'use strict';
// Function to handle button click
function clickStartVerificationButton() {
let startVerificationButton = document.querySelector('a[onclick="document.getElementById(\'landing\').submit();"]');
if (startVerificationButton) {
startVerificationButton.click();
} else {
console.error('Start Verification button not found!');
}
}
// Observe changes to the document body to detect when the button becomes available
const observer = new MutationObserver((mutationsList, observer) => {
for (const mutation of mutationsList) {
// Check if the "Start Verification" button has been added to the page
if (mutation.type === 'childList') {
const startVerificationButton = document.querySelector('a[onclick="document.getElementById(\'landing\').submit();"]');
if (startVerificationButton) {
// Button found, click it and stop observing further changes
clickStartVerificationButton();
observer.disconnect(); // Stop observing once the button is clicked
}
}
}
});
// Start observing the document body for child node changes (added elements)
observer.observe(document.body, { childList: true, subtree: true });
// Alternatively, if you want to fallback on a 10-second wait in case of a slow page load
setTimeout(clickStartVerificationButton, 100); // Click after 10 seconds if still not found
})();
// ==UserScript==
// @name Auto Bypass Timer and Click Buttons (For 3rd URL - tech.unblockedgames.world)
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Automates clicking buttons and handling delays between each step for 3rd URL
// @match https://tech.unblockedgames.world/*
// @grant none
// ==/UserScript==
(function () {
'use strict';
// Function to click the "Verify To Continue" button
function clickVerifyButton() {
let verifyButton = document.getElementById('verify_button2');
if (verifyButton) {
console.log('Clicking "Verify To Continue" button...');
verifyButton.click();
} else {
console.error('Verify To Continue button not found!');
}
}
// Function to click the "Click Here To Continue" button after the "Please Wait 10 Seconds" message
function clickContinueButton() {
let continueButton = document.getElementById('verify_button');
if (continueButton) {
console.log('Clicking "Click Here To Continue" button...');
continueButton.click();
} else {
console.error('Click Here To Continue button not found!');
}
}
// Function to scroll down to make the "Go to download" button visible
function scrollToDownloadButton() {
window.scrollTo(0, document.body.scrollHeight);
console.log('Scrolling to the bottom of the page...');
}
// Function to click the "Go to download" button (final button)
function clickDownloadButton() {
let downloadButton = document.getElementById('two_steps_btn');
if (downloadButton) {
console.log('Clicking "Go to download" button...');
downloadButton.click();
} else {
console.error('Go to download button not found!');
}
}
// Step 1: Click the "Verify To Continue" button as soon as it appears
setTimeout(() => {
clickVerifyButton();
}, 20); // Wait 2 seconds to allow page to load the "Verify To Continue" button
// Step 2: Wait for the "Please Wait 10 Seconds" message (after clicking "Verify To Continue")
setTimeout(() => {
console.log('Waiting for 10 seconds...');
}, 7); // Wait 7 seconds to allow for the "Please Wait 10 Seconds" message to appear
// Step 3: Click the "Click Here To Continue" button after 10 seconds
setTimeout(() => {
clickContinueButton();
}, 10); // Wait 17 seconds (after the "Please Wait 10 Seconds" message) to click the next button
// Step 4: Scroll down to make the "Go to download" button visible
setTimeout(() => {
scrollToDownloadButton();
}, 20); // Wait 20 seconds before scrolling down to make the final download button visible
// Step 5: Wait for 7 seconds, then click the "Go to download" button
setTimeout(() => {
clickDownloadButton();
}, 27000); // Wait 7 seconds after scrolling (total of 27 seconds before clicking the final "Go to download" button)
})();