Skip to content

Instantly share code, notes, and snippets.

@bKNN
Created January 10, 2020 08:48
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 bKNN/2c7561dd4d58e9da8d72c64db4c952e2 to your computer and use it in GitHub Desktop.
Save bKNN/2c7561dd4d58e9da8d72c64db4c952e2 to your computer and use it in GitHub Desktop.
SCRIPT - Medium 50 claps
javascript:(()=>{const a=new MouseEvent("mouseup",{bubbles:!0}),b=new MouseEvent("mousedown",{bubbles:!0}),c=document.querySelector(`.js-postActionsFooter button[data-action="multivote"]`);let d=0;const e=window.setInterval(()=>{const f=document.querySelector(".js-floatingMultirecommendCount"),g=parseInt(f&&f.textContent||-1,10);(50===g||100<d)&&(c.dispatchEvent(a),window.clearInterval(e)),d++},500);c.dispatchEvent(b)})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment