Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var price = 3;
- var timeout = 5;
- var notification = new Audio('https://www.pathofexile.com/audio/trade/gong.mp3');
- var interval = null;
- var _new = document.querySelector(".clear-btn").cloneNode(true);_new.firstChild.textContent = "Snipe";document.querySelector(".clear-btn").parentNode.replaceChild(_new,document.querySelector(".clear-btn"));
- function meme(){document.querySelector(".search-btn").click();document.querySelectorAll(".per-want").forEach(function(f){
- if(parseFloat(f.lastElementChild.textContent)<price){notification.play();clearInterval(interval);}
- else{f.parentNode.parentNode.parentNode.remove()}});}
- function snipe(){clearInterval(interval);interval=setInterval(meme, timeout*1000);}
- _new.addEventListener("click", snipe);snipe();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement