-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
7 lines (4 loc) · 640 Bytes
/
script.js
1
2
3
4
5
6
7
document.getElementById('stop').disabled = true;
var farmed = 0;
function start() {document.getElementById('btw').innerHTML = ' - the ecosia search count may not match this count'; document.getElementById('start').disabled = true; document.getElementById('stop').disabled = false; ecosia = window.open('https://www.ecosia.org/search?q=' + Math.floor(Math.random()*38947502983) + '&addon=' + Math.random().toString(36).replace(/[^a-z]+/g, '').substr(0, 5)); farmed = farmed + 1; document.getElementById('farmed').innerHTML = farmed; setTimeout(() => { ecosia.close(); start(); }, 15500); };
function stop() { window.location.reload(); };