diff --git a/Bypass_All_Shortlinks.user.js b/Bypass_All_Shortlinks.user.js index 802ef2e..a09994e 100644 --- a/Bypass_All_Shortlinks.user.js +++ b/Bypass_All_Shortlinks.user.js @@ -1675,25 +1675,17 @@ (function() { 'use strict'; if (window.location.hostname === 'shareus.io') { - document.addEventListener('DOMContentLoaded', function() { - // Define the button selector - const buttonSelector = "#root > div > main > div.main-container-1 > div.main-container-2 > div:nth-child(1) > div.adunit-container > button"; - - // Function to click the button + document.addEventListener('DOMContentLoaded', function() { // Wait for the page to be loaded + function clickButton() { - // Find the button element - const button = document.querySelector(buttonSelector); + const button = document.querySelector("#root > div > main > div.main-container-1 > div.main-container-2 > div:nth-child(1) > div.adunit-container > button"); if (button) { button.click(); - console.log("Button clicked!"); //clearInterval(intervalId); // Stop attempting once clicked - } else { - console.log("Button not found!"); } } - - // Set interval to attempt clicking every 1 second - const intervalId = setInterval(clickButton, 1000); + const intervalId = setInterval(clickButton, 1000); // Set interval to attempt clicking every 1 second + }); } })(); diff --git a/extra_bypasses/shareus.io.user.js b/extra_bypasses/shareus.io.user.js index 869d352..6b40838 100644 --- a/extra_bypasses/shareus.io.user.js +++ b/extra_bypasses/shareus.io.user.js @@ -8,25 +8,17 @@ (function() { 'use strict'; if (window.location.hostname === 'shareus.io') { - document.addEventListener('DOMContentLoaded', function() { - // Define the button selector - const buttonSelector = "#root > div > main > div.main-container-1 > div.main-container-2 > div:nth-child(1) > div.adunit-container > button"; - - // Function to click the button + document.addEventListener('DOMContentLoaded', function() { // Wait for the page to be loaded + function clickButton() { - // Find the button element - const button = document.querySelector(buttonSelector); + const button = document.querySelector("#root > div > main > div.main-container-1 > div.main-container-2 > div:nth-child(1) > div.adunit-container > button"); if (button) { button.click(); - console.log("Button clicked!"); //clearInterval(intervalId); // Stop attempting once clicked - } else { - console.log("Button not found!"); } } - - // Set interval to attempt clicking every 1 second - const intervalId = setInterval(clickButton, 1000); + const intervalId = setInterval(clickButton, 1000); // Set interval to attempt clicking every 1 second + }); } })();