';
var framedadsCheckboxContainer = document.createElement('div');
framedadsCheckboxContainer.classList.add('checkbox-container');
framedadsCheckboxContainer.innerHTML = `
`;
overlay.appendChild(framedadsCheckboxContainer);
var framelessadsCheckboxContainer = document.createElement('div');
framelessadsCheckboxContainer.classList.add('checkbox-container');
framelessadsCheckboxContainer.innerHTML = `
`;
overlay.appendChild(framelessadsCheckboxContainer);
var closeCheckboxContainer = document.createElement('div');
closeCheckboxContainer.classList.add('checkbox-container');
closeCheckboxContainer.innerHTML = `
`;
overlay.appendChild(closeCheckboxContainer);
var moreInfoButton = document.createElement('button');
moreInfoButton.textContent = 'More Info';
moreInfoButton.addEventListener('click', openInfoOverlay);
overlay.appendChild(moreInfoButton);
document.body.appendChild(overlay);
function openInfoOverlay() {
var infoOverlay = document.getElementById('info-overlay');
if (!infoOverlay) {
infoOverlay = document.createElement('div');
infoOverlay.id = 'info-overlay';
infoOverlay.innerHTML = `
Additional Information
At first the Script is only tested with an active Membership. (update comes)
Go to the Ad page and it start after reloading the page.
Framed Ads: It opens the first aviable site in the list and stay on it, when one site is completed it starts with the Next.
When all sites completed it goes to Framless Ads.
Frameless Ads: It opens and close site by site.
When all sites completed it close coinpayu or go after 3 hour to Framless Ads and begin from new.
You can activate and deactivate the functions in the Overlay as desired.
Download Captcha Solver
HCaptcha + ReCaptcha: NoCoding Data Scraper and CAPTCHA Solver - Install Here Antibot Words: AB Links Solver - Install Here Cf-Turnstile: Autopass Cloudflare CAPTCHA - Install Here
Support
If you have any questions or need assistance, don't hesitate to reach out the creator and supporter, Andrewblood.
Privacy Policy
This script stores user data locally within TamperMonkey and is exclusively used for script functionality.
It is not shared with the script creator or third parties.
Changelog
Version v.2.4
Deleted Bugs
Version v.2.3
Improved Ad closing
Improved waiting for ending of last activated function before start the next
Version v.2.2
New waiting for ending of last activated function before start the next
New Button/Overlay with more Infos
Version v.2.1
Improved Ad closing
Version v.2.0
New Overlay to chance the functions
`;
document.body.appendChild(infoOverlay);
}
infoOverlay.style.display = 'block';
document.addEventListener('click', function(event) {
if (!infoOverlay.contains(event.target) && event.target !== moreInfoButton) {
closeInfoOverlay();
}
});
}
function closeInfoOverlay() {
var infoOverlay = document.getElementById('info-overlay');
if (infoOverlay) {
infoOverlay.style.display = 'none';
}
}
var framedadsCheckbox = document.getElementById('framedads-checkbox');
framedadsCheckbox.addEventListener('change', function() {
GM_setValue('framedadsStatus', framedadsCheckbox.checked);
});
var savedFramedAdsStatus = GM_getValue('framedadsStatus');
if (savedFramedAdsStatus !== undefined) {
framedadsCheckbox.checked = savedFramedAdsStatus;
}
var framelessadsCheckbox = document.getElementById('framelessads-checkbox');
framelessadsCheckbox.addEventListener('change', function() {
GM_setValue('framelessadsStatus', framelessadsCheckbox.checked);
});
var savedFramelessAdsStatus = GM_getValue('framelessadsStatus');
if (savedFramelessAdsStatus !== undefined) {
framelessadsCheckbox.checked = savedFramelessAdsStatus;
}
var closeCheckbox = document.getElementById('close-checkbox');
closeCheckbox.addEventListener('change', function() {
GM_setValue('closeStatus', closeCheckbox.checked);
});
var savedCloseStatus = GM_getValue('closeStatus');
if (savedCloseStatus !== undefined) {
closeCheckbox.checked = savedCloseStatus;
}
if (window.location.href.includes("register")) {
if (!document.cookie.includes("Andrewblood")) {
window.location.href = "https://www.coinpayu.com/?r=Andrewblood";
}
}
var oldfunction = unsafeWindow.open;
var windowName = "";
function newFunction(params1, params2) {
if (!params2 || params2 == "_blank") {
windowName = "popUpWindow";
} else {
windowName = params2;
}
return oldfunction(params1, windowName);
};
unsafeWindow.open = newFunction;
unsafeWindow.onbeforeunload = function() {
unsafeWindow.open('', windowName).close();
};
// Funktion zur Ausführung der Framed-Ads-Aktion
async function performFramedAdsAction() {
if (savedFramedAdsStatus) {
if (window.location.href.includes("coinpayu.com/dashboard/ads_active")) {
await new Promise(resolve => {
setTimeout(function() {
var elements = document.querySelectorAll('.clearfix.ags-list-box:not(.gray-all.clearfix.ags-list-box)');
if (elements.length > 0) {
var firstElement = elements[0].querySelector('.text-overflow.ags-description > span');
var timeElement = elements[0].querySelector('.ags-detail-time span');
var url = elements[0].querySelector('.text-overflow.ags-description').getAttribute('title');
var time = parseInt(timeElement.textContent);
console.log('Open ' + url + ' for ' + time + 'seconds.');
if (firstElement) {
firstElement.click();
var interval = setInterval(function() {
var alertElement = document.querySelector(".alert-div.alert-green");
if (alertElement) {
clearInterval(interval);
setTimeout(function() {
resolve();
window.location.reload();
}, 1000);
}
}, 1000);
}
} else {
window.location.replace("https://www.coinpayu.com/dashboard/ads_surf");
}
}, 1000 * 3);
});
}
if (window.location.href.includes("coinpayu.com/dashboard/view_active?id=")) {
await new Promise(resolve => {
var intervalId = setInterval(function() {
var waittime = document.querySelector("#app > div > div > div > div > div");
if (waittime && waittime.style.width === "100%") {
clearInterval(intervalId);
resolve();
setTimeout(function() {
window.close();
}, 500);
}
}, 100);
});
}
}
}
// Funktion zur Ausführung der Frameless-Ads-Aktion
async function performFramelessAdsAction() {
if (savedFramelessAdsStatus && window.location.href.includes("coinpayu.com/dashboard/ads_surf")) {
await new Promise(resolve => {
setTimeout(function() {
var elements = document.querySelectorAll('.clearfix.ags-list-box:not(.gray-all.clearfix.ags-list-box)');
if (elements.length > 0) {
var firstElement = elements[0].querySelector('.text-overflow.ags-description > span');
var timeElement = elements[0].querySelector('.ags-detail-time span');
var urlElement = elements[0].querySelector('.text-overflow.ags-description');
var url = urlElement.getAttribute('title');
var time = parseInt(timeElement.textContent);
console.log('Open ' + url + ' for ' + time + ' seconds.');
urlElement.removeAttribute('title');
if (firstElement) {
firstElement.click();
unsafeWindow.open('', windowName).close();
var interval = setInterval(function() {
var alertElement = document.querySelector(".alert-div.alert-green");
if (alertElement) {
clearInterval(interval);
resolve();
window.location.reload();
}
}, 1000);
}
} else {
resolve();
}
}, 1000 * 3);
});
}
}
// Funktion zur Ausführung der Schließ-Aktion
async function performCloseAction() {
if (savedCloseStatus && window.location.href !== "https://www.coinpayu.com/") {
await new Promise(resolve => {
setTimeout(function() {
window.close();
resolve();
}, 1000 * 5);
});
} else {
await new Promise(resolve => {
setTimeout(function() {
window.location.replace("https://www.coinpayu.com/dashboard/ads_active");
resolve();
}, 1000*60*60*3);
});
}
}
// Die Aktionen werden nacheinander ausgeführt
await performFramedAdsAction();
await performFramelessAdsAction();
await performCloseAction();
})();