Skip to content

Instantly share code, notes, and snippets.

@DaveAuld
Created October 14, 2017 11:04
Show Gist options
  • Save DaveAuld/068465f82cd87ba052987b7138580404 to your computer and use it in GitHub Desktop.
Save DaveAuld/068465f82cd87ba052987b7138580404 to your computer and use it in GitHub Desktop.
Yobit Freecoin Filter
/* This will filter the table of coins to the ones that are 'ready' and have a
value greater than or equal to the value of threshold.
After the freecoins page has fully loaded, open the browser console, and copy and paste.
The filtered will be applied.
Next just manually click the collection button, as automation is stricly prohibited by the site.
*/
$('#freecoins_table > tbody > tr').each(
function (tr_index) {
// Set the value of the threshold to filter - Set this to the limit you want
var threshold = 0.0001;
//Read the coin symbol
var symbol = $(this).children(":nth-child(1)").text();
//Read the value of the freecoin from the correct column
var amount = parseFloat($(this).children(":nth-child(2)").text());
//Check if the coin is ready to be collected
var ready = $(this).children(":nth-child(3)").text();
//Test value is ok or the coin is not ready
if ((amount <= threshold) || (ready != "ready"))
{
//hide the rows that you are not interested in
//console.log('Binned...' + symbol + '...' + amount); //uncomment this line if you wish to see this in the output.
$(this).hide();
}
else {
console.log('Found a good one...' + symbol + '...' + amount);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment