Autoshorts!
// ==UserScript==
// @name Banfaucet - Crypto-Radio Bitcotasks V2
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Autoshorts!
// @author Frohike
// @match https://banfaucet.com/*
// @match https://bitcotasks.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=banfaucet.com
// @license MIT
// @grant none
// ==/UserScript==
(function() {
'use strict';
var mensagemAlvo = "A timeout occurred";
var urlRedirecionamento = "https://banfaucet.com/links";
if (document.body.innerText.includes(mensagemAlvo)) {
window.location.href = urlRedirecionamento;
}
var messageDiv = document.createElement('div');
messageDiv.style.position = 'fixed';
messageDiv.style.top = '20px'; // Alterado para 20px para o canto superior
messageDiv.style.left = '20px';
messageDiv.style.padding = '10px';
messageDiv.style.backgroundColor = 'red';
messageDiv.style.color = 'white';
messageDiv.style.borderRadius = '5px';
messageDiv.style.zIndex = '9999';
messageDiv.textContent = 'Banfaucet - Crypto-Radio Bitcotasks V2';
document.body.appendChild(messageDiv);
//if (window.location.href.includes("xxxxxxxxxxxxxxx")) {
if(window.location.href=="https://banfaucet.com/links"){
window.onload = function() {
// Sayaç ve yapımcı bilgisi için bir div oluşturma
var counterDiv = document.createElement('div');
counterDiv.id = 'counterDiv';
counterDiv.style.position = 'fixed';
counterDiv.style.top = '40px';
counterDiv.style.right = '10px';
counterDiv.style.padding = '10px';
counterDiv.style.backgroundColor = 'red';
counterDiv.style.color = 'white';
counterDiv.style.fontSize = '20px';
counterDiv.style.zIndex = '1000';
document.body.appendChild(counterDiv);
var countdown = 10; // 1 dakikadan geriye doğru say
var countdownInterval = setInterval(function() {
counterDiv.innerHTML = 'Time remaining: ' + countdown + 's<br>Frohike';
countdown--;
if (countdown < 0) {
clearInterval(countdownInterval);
//location.reload(); // Sayfa yenileme
}
}, 1000);
};
}
function RedirigeShortLinks() {
if (window.location.href === 'https://banfaucet.com/dashboard') {
window.location.href = 'https://banfaucet.com/links';
}
}
setInterval(RedirigeShortLinks, 15000);
// Modulo bitcotasks + Cloud
if (window.location.href.includes("/result/") || window.location.href.includes("bitcotasks")) {
function verificar() {
const textoBitcotasks = "SUCCESS";
if (document.body.innerText.includes(textoBitcotasks)) {
window.location.href = 'https://banfaucet.com/links';
}
}
setInterval(verificar, 5000);
}
//Session expired!
function verificarexpired() {
const textoexpired = "Session expired";
if (document.body.innerText.includes(textoexpired)) {
window.location.href = 'https://banfaucet.com/links';
}
}
setInterval(verificarexpired, 5000);
// FIN DEL Modulo bitcotasks + Cloudflare
function clicarComDelay() {
setTimeout(function() {
var botao = document.querySelector('a.btn-one');
if (botao) {
botao.click();
} else {
console.log('Botão não encontrado.');
}
}, 10000);
}
clicarComDelay();
// Agregar Enlaces Validos
var palavrasChave = ["cRypto-radio",
"Crypto###Rad",
"Crypto#Radio",
"Crypto##Radi",
"CryptoRadioo",
"CryptoRadioE",
"CryptooRadio",
"xxxxxxxxxxx",
];
function contemPalavraChave(elemento, palavrasChave) {
for (var i = 0; i < palavrasChave.length; i++) {
if (elemento.textContent.includes(palavrasChave[i])) {
return true;
}
}
return false;
}
function removerElementosPorPalavraChave() {
var elementos = document.querySelectorAll('div[class="col-lg-6 col-xl-4"]'); // Aqui se pone la class
elementos.forEach(function(elemento) {
if (!contemPalavraChave(elemento, palavrasChave)) {
elemento.remove();
}
});
}
removerElementosPorPalavraChave();
// Fin de Agregar Enlaces Validos
})();