Skip to content

Instantly share code, notes, and snippets.

@Nuptial
Last active October 30, 2017 19:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nuptial/71b274db1902134eca369cbba7f9ebdd to your computer and use it in GitHub Desktop.
Save Nuptial/71b274db1902134eca369cbba7f9ebdd to your computer and use it in GitHub Desktop.
CSGO Lounge Auto Refresh and Auto Bump script
// 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