Last active
October 30, 2017 19:13
-
-
Save Nuptial/71b274db1902134eca369cbba7f9ebdd to your computer and use it in GitHub Desktop.
CSGO Lounge Auto Refresh and Auto Bump script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// You need to install custom javascript extension for this | |
// Refresh page every 10 seconds. | |
setInterval(function() { | |
window.location.reload(); | |
}, 10000); | |
// After page load Find bump buttons and click them | |
$(document).ready(function(){ | |
var buttons = document.getElementsByClassName('buttonright'); | |
if(buttons.length != 1){ | |
for(var i = 0; i <= buttons.length; i++) | |
buttons[i].click(); | |
} | |
else{ | |
console.log('No bump buttons active'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment