Skip to content

Instantly share code, notes, and snippets.

@alwqx
Created July 24, 2020 14:05
Show Gist options
  • Save alwqx/84d0d563c6b27f47a02f0b141b07d63f to your computer and use it in GitHub Desktop.
Save alwqx/84d0d563c6b27f47a02f0b141b07d63f to your computer and use it in GitHub Desktop.
const s = document.createElement('script');
s.setAttribute(
'src',
'https://lib.sinaapp.com/js/jquery/2.0.3/jquery-2.0.3.min.js'
);
document.head.appendChild(s);
const sall = () => {
try {
$('a[action-type="batselect"]')[0].click();
} catch (error) {
return;
}
const items = $('li[action-type="user_item"]');
for (let i = 0; i< items.length; i ++) {
items[i].click();
}
$('a[action-type="cancel_follow_all"]')[0].click();
$('a[action-type="ok"]')[0].click();
}
sall()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment