Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Changer "Username" et "Password"
- // ==UserScript==
- // @name Autovote domro.online
- // @namespace http://domro.online/?module=account&action=login
- // @version 0.1
- // @description Un script pour voter automatiquement domro.online
- // @author Congelateur
- // @match http://domro.online/*
- // @match https://www.rotopserv.net/*
- // @grant none
- // ==/UserScript==
- function clickButton(val)
- {
- var buttons = document.getElementsByTagName('input');
- for(var i = 0; i < buttons.length; i++)
- {
- if(buttons[i].type == 'submit' && buttons[i].value == val)
- {
- buttons[i].click();
- break; //this will exit for loop, but if you want to click every button with the value button then comment this line
- }
- }
- }
- (function() {
- if(window.location.href.indexOf("?module=account&action=login") > -1)
- setInterval( function(){
- document.getElementById("login_username").setAttribute("value","Pseudo");
- document.getElementById("login_password").setAttribute("value","Mdp");
- clickButton('Log In');
- },500);
- else
- {
- setInterval( function(){
- window.location.replace("http://domro.online/index.php?module=voteforpoints&action=vote&sid=1");
- },5000);
- }
- })
- ();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement