Skip to content

Instantly share code, notes, and snippets.

@VincentSit
Created January 7, 2019 09:27
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 VincentSit/c3c55b2514e8b76e2106c6910e434255 to your computer and use it in GitHub Desktop.
Save VincentSit/c3c55b2514e8b76e2106c6910e434255 to your computer and use it in GitHub Desktop.
v2ex 批量点赞
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