2024-02-07 16:06:33 +05:00
|
|
|
// ==UserScript==
|
|
|
|
// @name shareus.io bypass
|
|
|
|
// @match *://*.shareus.io/*
|
|
|
|
// @run-at document-start
|
|
|
|
// ==/UserScript==
|
|
|
|
|
|
|
|
// ----- Bypass for shareus.io -----
|
|
|
|
(function() {
|
|
|
|
'use strict';
|
|
|
|
if (window.location.hostname === 'shareus.io') {
|
2024-02-14 02:06:21 +05:00
|
|
|
document.addEventListener('DOMContentLoaded', function() { // Wait for the page to be loaded
|
|
|
|
|
2024-02-07 16:06:33 +05:00
|
|
|
function clickButton() {
|
2024-02-14 02:06:21 +05:00
|
|
|
const button = document.querySelector("#root > div > main > div.main-container-1 > div.main-container-2 > div:nth-child(1) > div.adunit-container > button");
|
2024-02-07 16:06:33 +05:00
|
|
|
if (button) {
|
|
|
|
button.click();
|
|
|
|
//clearInterval(intervalId); // Stop attempting once clicked
|
|
|
|
}
|
|
|
|
}
|
2024-02-14 02:06:21 +05:00
|
|
|
const intervalId = setInterval(clickButton, 1000); // Set interval to attempt clicking every 1 second
|
|
|
|
|
2024-02-07 16:06:33 +05:00
|
|
|
});
|
|
|
|
}
|
|
|
|
})();
|
|
|
|
// ----- ----- -----
|