Created
July 24, 2020 14:05
-
-
Save alwqx/84d0d563c6b27f47a02f0b141b07d63f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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