Skip to content

Instantly share code, notes, and snippets.

@CKGrafico
Created March 2, 2019 19:57
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 CKGrafico/60a5a775f6be2d3687491f2ebce27a32 to your computer and use it in GitHub Desktop.
Save CKGrafico/60a5a775f6be2d3687491f2ebce27a32 to your computer and use it in GitHub Desktop.
Click all bit.ly checkboxes in user portal
cki = 0;
jQuery('.checkmark-icon.checkbox-icon').each((i, $check) => {
if (cki === 95) {return}
const count = jQuery($check).parent().parent().parent().find('.click-count--MAIN');
const num = parseInt(count.text(), 10);
if (num < 2) {
jQuery($check).click();
cki++;
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment