dubwub / Heroes WoW Voter

Hello, the bot does not work because the link is "https" and not "http"
Fix :

// ==UserScript==
// @name Heroes WoW Voter
// @namespace https://openuserjs.org/scripts/dubwub/Heroes_WoW_Voter
// @version 1.3
// @updateURL https://openuserjs.org/src/scripts/dubwub/Heroes_WoW_Voter.user.js#
// @description Helps you vote on heroes wow faster
// @author Dubstepper
// @require http://code.jquery.com/jquery-latest.js
// @match http://heroes-wow.com/*
// @match https://heroes-wow.com/*
// @match http://www.xtremetop100.com/*
// @match http://www.top100arena.com/*
// @match http://www.openwow.com/*
// @match http://www.rpg-paradize.com/*
// @match http://topg.org/*
// @match http://www.wowstatus.net/*
// @match http://topwow.ru/*
// @match http://www.topwowserver.de/*
// @match http://www.wowtop.es/*
// @match http://www.gowonda.com/*
// @grant none
// ==/UserScript==
//   ____ _   _    _    _   _  ____ _____   _   _ ____  _____ ____     ___     ____   _    ____ ____
//  / ___| | | |  / \  | \ | |/ ___| ____| | | | / ___|| ____|  _ \   ( _ )   |  _ \ / \  / ___/ ___|
// | |   | |_| | / _ \ |  \| | |  _|  _|   | | | \___ \|  _| | |_) |  / _ \/\ | |_) / _ \ \___ \___ \
// | |___|  _  |/ ___ \| |\  | |_| | |___  | |_| |___) | |___|  _ <  | (_>  < |  __/ ___ \ ___) ___) |
//  \____|_| |_/_/   \_|_| \_|\____|_____|  \___/|____/|_____|_| \_\  \___/\/ |_| /_/   \_|____|____/

var username = 'Username';
var password = 'password';
$("a[onclick=\"window.open('http://gtop100.com/topsites/World-of-Warcraft/sitedetails/Heroes-WoW-5-0-5-and-3-3-5a-255-Level-85368?vote=1', '_newtab'); return true;\"").remove();
var total = 0;
var url = window.location.href; // Returns full URL
$("a[onclick=\"window.open('http://gtop100.com/topsites/World-of-Warcraft/sitedetails/Heroes-WoW-5-0-5-and-3-3-5a-255-Level-85368?vote=1', '_newtab'); return true;\"").remove();
$('a').each(function(index) {
    if ($(this).attr('href') == "javascript:void(0);") {
        total = total + 1;
    }
});
//total = total - 1
console.log(total);
if (url == "https://heroes-wow.com/wotlk/index.php?page=vote") {
    $("body").html($("body").html().replace(/_newtab/g, '_self'));
}
if (url == "https://heroes-wow.com/wotlk/index.php?page=login") {
    $("[name=username]").val(username);
    $("[name=password]").val(password);
    $("[class=label_check]").click();
    $("[type=submit]").click();
}
if (url == "https://heroes-wow.com/wotlk/index.php?page=account_setup") {
    document.location = "https://heroes-wow.com/wotlk";
}
if (total > 0) {
    $("p:contains('You can vote'):first").click();
}
var refreshTime = 30;
if ($('p:contains(hours):first').length) {
    refreshTime = formatTime($('p:contains(hours):first').html().replace(" until vote!", "").trim());
}
if (refreshTime > 1800) {
    refreshTime = refreshTime - 1800;
}
console.log(refreshTime);
setInterval(function() {
    document.location = "https://heroes-wow.com/wotlk/index.php?page=vote";
}, refreshTime * 1000);
if (url == "https://heroes-wow.com/" || url == "http://heroes-wow.com/") {
    var CoinURL = $('a.button.wotlk').attr('href');
    document.location = CoinURL;
}
if (url == "http://www.xtremetop100.com/in.php?site=1132349385") {
    document.write("<h1>Auto vote: 1/2</h1>");
    document.location = "http://www.xtremetop100.com";
}
if (url == "http://www.xtremetop100.com/") {
    document.write("<h1>Auto vote: 2/2</h1>");
    document.location = "http://www.xtremetop100.com/out.php?site=1132349385";
}
if (url == "http://www.top100arena.com/in.asp?id=44752") {
    document.write("<h1>Auto vote: 1/2</h1>");
    document.location = "http://www.top100arena.com/wow-private-server/";
}
if (url == "http://www.top100arena.com/wow-private-server/") {
    document.write("<h1>Auto vote: 2/2</h1>");
    document.location = "http://www.top100arena.com/out.asp?id=44752";
}
if (url == "http://www.openwow.com/vote=2125") {
    document.write("<h1>Auto vote: 1/2</h1>");
    document.location = "http://www.openwow.com/";
}
if (url == "http://www.openwow.com/") {
    document.write("<h1>Auto vote: 2/2</h1>");
    document.location = "http://www.openwow.com/visit=2125";
}
if (url == "http://www.rpg-paradize.com/?page=vote&vote=22237") {
    document.write("<h1>Auto vote: 1/2</h1>");
    document.location = "http://www.rpg-paradize.com/top-site-WoW-2";
}
if (url == "http://www.rpg-paradize.com/top-site-WoW-2") {
    document.write("<h1>Auto vote: 2/2</h1>");
    document.location = "http://www.rpg-paradize.com/out.php?num=22237";
}
if (url == "http://topg.org/wow-private-servers/in-347987") {
    document.write("<h1>Auto vote: 1/2</h1>");
    document.location = "http://topg.org/wow-private-servers/";
}
if (url == "http://topg.org/wow-private-servers/") {
    document.write("<h1>Auto vote: 2/2</h1>");
    document.location = "http://topg.org/visit-347987";
}
if (url == "http://www.wowstatus.net/?p=In&server=725206") {
    document.write("<h1>Auto vote: 1/2</h1>");
    document.location = "http://www.wowstatus.net/~wowstatus/serverlist/standard";
}
if (url == "http://www.wowstatus.net/~wowstatus/serverlist/standard") {
    document.write("<h1>Auto vote: 2/2</h1>");
    document.location = "http://www.wowstatus.net/~wowstatus/serverlist/out/id/725206/link/homepage";
}
if (url == "http://topwow.ru/index.php?do=votes&id=6970") {
    document.write("<h1>Auto vote: 1/2</h1>");
    document.location = "http://topwow.ru/";
}
if (url == "http://topwow.ru/") {
    document.write("<h1>Auto vote: 2/2</h1>");
    document.location = "http://topwow.ru/tracker.php?do=out&id=6970";
}
if (url == "http://www.topwowserver.de/in.php?id=12") {
    document.write("<h1>Auto vote: 1/2</h1>");
    document.location = "http://www.topwowserver.de/";
}
if (url == "http://www.topwowserver.de/") {
    document.write("<h1>Auto vote: 2/2</h1>");
    document.location = "https://heroes-wow.com/";
}
if (url == "http://www.wowtop.es/in.php?wid=102") {
    document.write("<h1>Auto vote: 1/2</h1>");
    document.location = "http://www.wowtop.es/index.php";
}
if (url == "http://www.wowtop.es/index.php") {
    document.write("<h1>Auto vote: 2/2</h1>");
    document.location = "http://www.wowtop.es/out.php?wid=102";
}
if (url == "http://www.gowonda.com/vote.php?server_id=4956") {
    document.write("<h1>Auto vote: 1/2</h1>");
    document.location = "http://www.gowonda.com/top-serveur-wow";
}
if (url == "http://www.gowonda.com/top-serveur-wow") {
    document.write("<h1>Auto vote: 2/2</h1>");
    document.location = "http://www.gowonda.com/out.php?server_id=4956";
}

function formatTime(waitTime) {
    if (waitTime.indexOf("hours") >= 0) {
        return waitTime.replace(/\D/g, '') * 3600;
    }
    if (waitTime.indexOf("minutes") >= 0) {
        return waitTime.replace(/\D/g, '') * 60;
    }
    if (waitTime.indexOf("seconds") >= 0) {
        return waitTime.replace(/\D/g, '');
    }
    return 30;
}