Professional Documents
Culture Documents
Coinpayu
Coinpayu
// ==/UserScript==
(function() {
'use strict';
window.alert = function() {};
window.confirm = function() {};
var count = 0;
var clicked = false;
//Enter your login and password below, if you like to Autologin. Be careful
while providing passwords,
//else you may get your accounts locked
var websiteData = [
var websiteMap = [{
website: ["adltc.cc", "adeth.cc", "addoge.cc", "adzec.cc", "adxrp.cc",
"adbch.cc", "addash.cc", "adsdgb.com", "surf-trx"],
defaultButtonSelectors: ["#index-banner .btn-large", ".btn.btn-
primary.btn-large"],
loginSelectors: ["input[type=text]", "input[type=password]", ".btn.btn-
default"],
captchaButtonSubmitSelector: [".btn.btn-default"],
allMessageSelectors: ["h3", "#pre > p", "#cf-error-details"],
additionalFunctions: closeRepeatingAds,
messagesToCheckBeforeMovingToNextUrl: ["No ads", "Links in surfing are
over", "Error 520"]
},
{
website: "adbtc.top",
defaultButtonSelectors: [".btn.btn-primary.btn-large"],
loginSelectors: ["input[type=text]", "input[type=password]",
"input[type=submit]"],
captchaButtonSubmitSelector: [".btn.btn-default",
"input[type=submit]"],
allMessageSelectors: ["p.flow-text", "#pre > p"],
additionalFunctions: adbtcTop,
messagesToCheckBeforeMovingToNextUrl: ["You have watched", "Links in
surfing are over"]
},
{
website: "adbch.top",
defaultButtonSelectors: ["#btstart"],
loginSelectors: ["#mail", "#password", ".btn-large"],
captchaButtonSubmitSelector: [".btn.btn-default", ".btn-large"],
allMessageSelectors: ["h5"],
additionalFunctions: adbtcTop,
messagesToCheckBeforeMovingToNextUrl: ["You have looked at all the
sites at the moment"]
},
{
website: "faucetpay.io",
defaultButtonSelectors: [".card-body .btn.btn-primary.btn-block"],
loginSelectors: ["input[type=text]", "input[type=password]",
"button[type=submit]"],
captchaButtonSubmitSelector: [".btn.btn-lg.btn-danger", ".btn.btn-
primary.btn-block"],
allMessageSelectors: [".alert.alert-info"],
messagesToCheckBeforeMovingToNextUrl: ["There are no ads available"],
additionalFunctions: faucetpay,
timeoutbeforeMovingToNextUrl: 380000
},
{
website: "coinpayu.com",
defaultButtonSelectors: [".btn.btn-primary.btn-large"],
loginSelectors: ["input[type=email]", "input[type=password]", "body >
div:nth-child(1) > div > main > div > button"],
captchaButtonSubmitSelector: [".btn.btn-default",
"input[type=submit]"],
allMessageSelectors: ["p.flow-text", "#pre > p"],
additionalFunctions: coinpayu,
messagesToCheckBeforeMovingToNextUrl: ["You have watched", "Links in
surfing are over"],
timeoutbeforeMovingToNextUrl: 500000
},
{
website: "everve.net",
additionalFunctions: everve,
timeoutbeforeMovingToNextUrl: 120000
},
];
setTimeout(function() {
goToNextUrl();
}, delayBeforeMovingToNextUrl);
(document.querySelectorAll(websiteDataValues.allMessageSelectors[j])
[k].innerText.includesOneOf(websiteDataValues.messagesToCheckBeforeMovingToNextUrl)
||
(document.querySelectorAll(websiteDataValues.allMessageSelectors[j])[k].value &&
document.querySelectorAll(websiteDataValues.allMessageSelectors[j])
[k].value.includesOneOf(websiteDataValues.messagesToCheckBeforeMovingToNextUrl))))
{
return true;
}
}
}
}
return false;
}
function closeRepeatingAds() {
function adbtcTop() {
if (window.location.href == "https://adbtc.top/index/" ||
window.location.href == "https://adbtc.top/index") {
window.location.href = "https://adbtc.top/index/earn";
}
if (window.location.href == "https://adbtc.top/index/earn" ||
window.location.href == "https://adbtc.top/index/earn/") {
window.location.href =
document.querySelectorAll(".collection.menu.colmen.nomarg > a")[0].href;
}
setInterval(function() {
//Skip the Ad if the Ad closes on it's own for adbtc due to Adblocker
or the script itself
if (document.querySelector("#nenado") && !
document.querySelector("#nenado").className.includes("hide") &&
document.querySelector("#nenado").innerText.includes("You closed
page")) {
document.querySelector("#nenado > a").click();
}
}, 10000);
function faucetpay() {
function everve() {
var oldfunction = unsafeWindow.open;
var windowName = "";
console.log(params1 + params2);
if (!params2 || params2 == "_blank") {
windowName = "EvervepopUpWindow";
} else {
windowName = params2;
}
unsafeWindow.open = newFunction;
unsafeWindow.onbeforeunload = function() {
unsafeWindow.open('', windowName).close();
};
if(document.querySelectorAll(".table_row[role=row]").length == 0){
clearInterval(interval);
goToNextUrl();
return;
}
if(!clicked){
for(let i=0; i<
document.querySelectorAll(".table_row[role=row]").length;i++){
if(document.querySelectorAll(".table_row[role=row]")
[i].style.display != "none"){
document.querySelectorAll(".table_row[role=row] .btn-
group")[i].querySelector("a").click();
clicked = true;
break;
}
}
}else{
},5000);
function coinpayu() {
console.log(params1 + params2);
if (!params2 || params2 == "_blank") {
windowName = "popUpWindow";
} else {
windowName = params2;
}
if (window.location.href ==
"https://www.coinpayu.com/dashboard/ads_active") {
// opts = "height=800,width=800";
}
unsafeWindow.open = newFunction;
unsafeWindow.onbeforeunload = function() {
unsafeWindow.open('', windowName).close();
};
setInterval(function() {
} else {
//Select either of Hcaptcha or Recaptcha
if (document.querySelectorAll(".form-group.form-code.captcha-
type > div span")[i].innerText.includes("Hcaptcha") ||
document.querySelectorAll(".form-group.form-code.captcha-
type > div span")[i].innerText.includes("GoogleRecaptcha")) {
document.querySelectorAll(".form-group.form-code.captcha-
type > div span")[i].click();
break;
}
if (document.querySelector("div.warning-ags") &&
(document.querySelector("div.warning-
ags").innerText.includes("You closed the advertisement too soon") ||
document.querySelector("div.warning-
ags").innerText.includes("The advertisement is not opened correctly"))){
i = i + 1;
unsafeWindow.open('', windowName).close();
viewingAd = false;
clearInterval(waitForCompletionInterval);
}
if (count != document.querySelectorAll("[class='clearfix
container-fluid bgwhite'] [title] span").length) {
//Ad viewed
//Close the window
setTimeout(function() {
unsafeWindow.open('', windowName).close();
viewingAd = false;
clearInterval(waitForCompletionInterval);
}, 3000);
}
}, 5000);
}, 7000);
}
if ((count == 0 || count == i) && !viewingAd) {
//Go to next page
i = 0;
var pageCount = document.querySelectorAll("div.coinpayu-pagination
> ul > li").length;
if (pageCount >= 1 && document.querySelectorAll("div.coinpayu-
pagination > ul > li")[pageCount - 1].className == "active") {
//Stop or go to next url
console.log("Ads End");
goToNextUrl();
}, 5000);
function checkLoginSelectors() {
if (websiteDataValues.loginSelectors) {
//Check if all login selectors are present
let count = 0;
for (let i = 0; i < websiteDataValues.loginSelectors.length; i++) {
if (document.querySelector(websiteDataValues.loginSelectors[i])) {
count++;
}
if (count == websiteDataValues.loginSelectors.length) {
document.querySelector(websiteDataValues.loginSelectors[0]).value = login;
//Input Password
document.querySelector(websiteDataValues.loginSelectors[1]).value = password;
} else {
stopSolvingCaptcha = true;
}
} else {
stopSolvingCaptcha = true;
}
} else {
stopSolvingCaptcha = true;
}
setTimeout(function() {
checkLoginSelectors();
if (websiteDataValues.additionalFunctions) {
websiteDataValues.additionalFunctions();
}
//Look for all the default messages or errors before proceeding to next url
//For other languages difference in the length of the strings can be
compared or visibility of the style element
if (!movingToNextUrl && messageSelectorsPresent()) {
goToNextUrl();
}
document.querySelector(websiteDataValues.defaultButtonSelectors[i]).click();
break;
}
}
}
document.querySelector(websiteDataValues.inputTextSelectorButton).click();
}
}, 5000);
}
document.querySelector(websiteDataValues.captchaButtonSubmitSelector[i]).click();
}
}
clicked = true;
clearInterval(captchaInterval);
setTimeout(function() {
if (messageSelectorsPresent()) {
goToNextUrl();
}
}, 5000);
}
} catch (e) {
document.querySelector(websiteDataValues.captchaButtonSubmitSelector[i]).click();
}
}
clicked = true;
clearInterval(captchaInterval);
setTimeout(function() {
if (messageSelectorsPresent()) {
goToNextUrl();
}
}, 5000);
}
}
}
}, 5000);
}, 5000);
window.onbeforeunload = function() {
if (unsafeWindow.myWindow) {
unsafeWindow.myWindow.close();
}
if (unsafeWindow.coinwin) {
var tmp = unsafeWindow.coinwin;
unsafeWindow.coinwin = {};
tmp.close();
}
};
})();