Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save LauLaman/fe3c340b65dade454421361eb83374b1 to your computer and use it in GitHub Desktop.
Save LauLaman/fe3c340b65dade454421361eb83374b1 to your computer and use it in GitHub Desktop.
vakantieveilingen.nl auto bidding script

This script will wait untill the last 2 sec of a vakantieveilingen.nl auction and place a bid as soon as you ar no longer the highest bidder. This while keeping the max value in to account. It will check the bidding every 0,2 sec.

  1. Open a auction on vakantieveilingen.nl
  2. Change the maxBid to the value you want to maximum spend. (whole euro's only)
  3. Open the developer console in your browser (how do i do this?)
  4. Paste the code in the console and hit enter
//-- Change this value to the maximum value that you want to pay
let maxBid = 20;
let lastPlacedBid = -1;
let bidBot = setInterval(function(){
let countdown = document.getElementsByClassName('timer-countdown-label');
let currentBid = parseInt(document.getElementById('jsMainLotCurrentBid').innerText);
let nextBid = currentBid +1;
if (nextBid <= maxBid && currentBid != lastPlacedBid) {
if (countdown.length == 0 || parseInt(countdown[0].innerText) > 3) {
console.log('πŸ•° waiting for last 2 sec to place bid');
return;
}
console.log('πŸ’° Placing new bid of €'+nextBid);
document.getElementById('jsActiveBidInput').value =nextBid;
document.getElementById('jsActiveBidButton').click();
lastPlacedBid = nextBid;
} else if (nextBid > maxBid) {
console.log('πŸ™…β€β™‚οΈ Current bid €'+currentBid+' exceeds your maxBid value (€'+maxBid+') you can update the max by `maxBid = 20;`');
} else {
console.log('πŸŽ‰ We are the higest with €'+currentBid);
}
if (document.getElementById('jsActiveBidInput') == null) {
if (currentBid == lastPlacedBid) {
console.log('πŸŽ‰ We won with €'+currentBid +'πŸŽ‰πŸŽ‰πŸŽ‰πŸŽ‰πŸŽ‰');
} else {
console.log('πŸ™…β€β™‚οΈ We lost the bidding 😑😑😑😑😑');
setInterval(function(){location.reload()}, 3500);
}
clearInterval(bidBot);
}
}, 200);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment