This script will not automate free coins collection on
YoBit. It just clears already received coins.
var table = document.getElementById("freecoins_table");
for (var i = 1, row; row = table.rows[i]; i++) {
string = document.getElementById("freecoins_table").rows[i].cells.item(2).innerHTML;
if (string.search("countdown green") > 1 ) {
currency = document.getElementById("freecoins_table").rows[i].cells.item(0).innerHTML;
console.log('found one!');
} else {
document.getElementById("freecoins_table").deleteRow(i);
}
}
If you want to filter list to specific coins, use this script. Specify currencies in "currs" array.
var currs = ["BTC", "LTC", "RUR", "USD", "OPAL", "NMC", "PAC", "PWR", "ASAFE", "ETH", "ZEC", "DOGE", "CANN", "LSK"];
var foundCurrency = false;
var table = document.getElementById("freecoins_table");
for (var i = 1, row; row = table.rows[i]; i++) {
string = document.getElementById("freecoins_table").rows[i].cells.item(2).innerHTML;
if (string.search("countdown green") > 1 ) {
currency = document.getElementById("freecoins_table").rows[i].cells.item(0).innerHTML;
foundCurrency = false;
for (var j = 0; j < currs.length ; j++) {
if (currency.search(currs[j]) > 1 ) {
foundCurrency = true;
}
}
if (!foundCurrency) {
document.getElementById("freecoins_table").deleteRow(i);
}
console.log('found one!');
} else {
document.getElementById("freecoins_table").deleteRow(i);
}
}
Комментариев нет:
Отправить комментарий