Skip to content

Instantly share code, notes, and snippets.

@jtcressy
Last active November 26, 2022 03:45
Show Gist options
  • Save jtcressy/7704a0cbc174a693dcd66ac205bc36cb to your computer and use it in GitHub Desktop.
Save jtcressy/7704a0cbc174a693dcd66ac205bc36cb to your computer and use it in GitHub Desktop.
Automatic Imgur HypeVote Machine

AUTO HYPE VOTE

Steps to activate:

  1. Copy the entire contents of autohypevote.js below into your browser's JS console (hit F12 then go to Console)
  2. In the same console, type autohypevote(10) to give 50 hype votes to the next 10 posts automatically (adjust numbers as needed)
  3. If you need to get off this hype train, type stopthehype() at any time to regain control of your browser

Usage:

autohypevote(n):

  • automatically scroll the front page and give 50 hype votes to every post up to N posts

stopthehype():

  • stop the hype train (and regain control of your browser)

***Only works on imgur.com during the hype vote event on April 1st 2021

var upvotebtn = $('.btn-upvote')
var nextbtn = $('.Navigation-next')
var stop = false
var hypevote50 = async function () {
for (var i = 0; i < 51; i++) {
upvotebtn.click()
}
}
var autohypevote = async function (n) {
for (var i = 0; i < n; i++) {
console.log("NEXT POST!");
nextbtn.click();
console.log("wait...");
await new Promise(r => setTimeout(r, 1000));
console.log("INJECTING HYPE VOTES...")
hypevote50();
await new Promise(r => setTimeout(r, 6000));
console.log("POST HYPED!!!!")
if (stop) {
console.log("NO MORE HYPE.")
break;
}
}
}
var stopthehype = function() { stop = true }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment