Created
January 10, 2020 08:48
-
-
Save bKNN/2c7561dd4d58e9da8d72c64db4c952e2 to your computer and use it in GitHub Desktop.
SCRIPT - Medium 50 claps
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
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