Skip to content

Bendudaniel/userscripts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,188 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

// ==UserScript== // @name Preenchimento Automático de Login Atualizado // @namespace http://tampermonkey.net/ // @version 1.4 // @author Marques // @match https://visa.vfsglobal.com/* // @grant none // ==/UserScript==

(function () { 'use strict';

// Lista de contas const contas = [

{ email: "elianamabiala31@gmail.com", senha: "@Charlen123" },
{ email: "bendodaniel211@gmail.com", senha: "@Charlen123" },

];

let contaAtual = contas[0]; // Conta padrão

function preencherLogin() { const campoEmail = document.querySelector('input[type="email"], input[name="email"], input#email'); const campoSenha = document.querySelector('input[type="password"], input[name="password"], input#password');

if (campoEmail && campoSenha) {
  campoEmail.value = contaAtual.email;
  campoEmail.dispatchEvent(new Event('input', { bubbles: true }));

  campoSenha.value = contaAtual.senha;
  campoSenha.dispatchEvent(new Event('input', { bubbles: true }));

  console.log("Campos preenchidos com sucesso!");
} else {
  console.warn("Campos não encontrados.");
}

}

function alternarConta() { let novaConta = prompt("Escolha a conta (0 para primeira, 1 para segunda):", "0"); if (novaConta !== null && contas[novaConta]) { contaAtual = contas[novaConta]; preencherLogin(); } else { alert("Conta inválida!"); } }

function criarBotao() { const botao = document.createElement("button"); botao.textContent = "VFS GLOBAL"; botao.style.position = "fixed"; botao.style.top = "5%"; // Centraliza verticalmente botao.style.left = "50%"; // Centraliza horizontalmente botao.style.transform = "translate(-50%, -50%)"; // Ajusta para garantir que o centro seja exato botao.style.padding = "10px"; botao.style.backgroundColor = "#C6C6C6"; botao.style.color = "#fff"; botao.style.border = "none"; botao.style.borderRadius = "5px"; botao.style.cursor = "pointer"; botao.style.zIndex = "9999";

botao.onclick = alternarConta;

document.body.appendChild(botao);

}

// Tenta preencher os campos após o carregamento setInterval(preencherLogin, 1000);

window.addEventListener('load', criarBotao); })();

About

An open-source userscript manager for Safari

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages

  • Swift 33.7%
  • JavaScript 32.5%
  • Svelte 29.0%
  • CSS 3.8%
  • Other 1.0%