Skip to content

Instantly share code, notes, and snippets.

@rbrahul
Last active March 30, 2018 20:19
Show Gist options
  • Select an option

  • Save rbrahul/3e479b0ec3a7dbbc6196f9b35a5f6a4f to your computer and use it in GitHub Desktop.

Select an option

Save rbrahul/3e479b0ec3a7dbbc6196f9b35a5f6a4f to your computer and use it in GitHub Desktop.
Run this script in your browser console while visiting profile page of any linked user then it will automatically endorse skills :)
var endorsPlusButtons = document.querySelectorAll(".endorsable");
var index = 0;
if (endorsPlusButtons.length) {
var interval = setInterval(() => {
if (index < (endorsPlusButtons.length)) {
setTimeout((indx) => {
endorsPlusButtons[indx].querySelector(".endorse-plus").click();
}, parseInt(Math.random() * 11) * 400, index);
} else {
clearInterval(interval);
}
index++;
}, 700);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment