Created
January 7, 2019 09:27
-
-
Save VincentSit/c3c55b2514e8b76e2106c6910e434255 to your computer and use it in GitHub Desktop.
v2ex 批量点赞
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
var arr = new Array(); | |
$('.thank').each(function() { | |
var str = $(this).attr('onclick'); | |
if (str.indexOf("铜币") >= 0) { | |
var substr = str.match(/thankReply.*;/); | |
arr.push(substr.toString()); | |
} | |
}); | |
for (i = 0; i < arr.length; i++) { | |
eval(arr[i]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment