Prévia do material em texto
// ==UserScript==
// @name Aditional fly
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Verificação humana!!!
// @author keno venas
// @license MIT
// @match https://advertisingexcel.com/landing/*
// @match https://advertisingexcel.com/outgoing/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=wefly.me
// @grant none
// @downloadURL https://update.greasyfork.org/scripts/493203/Aditional%20fly.user.js
// @updateURL https://update.greasyfork.org/scripts/493203/Aditional%20fly.meta.js
// ==/UserScript==
(function() {
'use strict';
var messageDiv = document.createElement('div');
messageDiv.innerHTML = 'Criado por Keno Venas!!!';
var style = `
position: fixed;
top: 10px;
left: 10px;
background-color: blue;
color: black;
padding: 10px;
z-index: 9999;
font-size: 16px;
font-family: Arial, sans-serif;
border-radius: 5px;
`;
messageDiv.setAttribute('style', style);
document.body.appendChild(messageDiv);
function clickContinueButton() {
var buttons = document.querySelectorAll('button');
for (var i = 0; i < buttons.length; i++) {
if (buttons[i].textContent.includes('Continue')) {
var button = buttons[i];
console.log('Botão "Continue" encontrado. Clicando em 3 segundos...');
setTimeout(function() {
button.click();
console.log('Botão "Continue" clicado!');
}, 1000);
break;
}
}
}
function clickGetLinkButton() {
var buttons = document.querySelectorAll('button');
for (var i = 0; i < buttons.length; i++) {
if (buttons[i].textContent.includes('Get Link')) {
var button = buttons[i];
console.log('Botão "Get Link" encontrado. Clicando em 5 segundos...');
setTimeout(function() {
button.click();
console.log('Botão "Get Link" clicado!');
}, 1000);
break;
}
}
}
var targetNode = document.body;
var config = { attributes: true, childList: true, subtree: true };
var callback = function(mutationsList, observer) {
for (var mutation of mutationsList) {
if (mutation.type === 'childList' || mutation.type === 'attributes') {
clickContinueButton();
clickGetLinkButton();
}
}
};
var observer = new MutationObserver(callback);
observer.observe(targetNode, config);
clickContinueButton();
clickGetLinkButton();
})();