Skip to content

Instantly share code, notes, and snippets.

@cshijiel
Created November 18, 2019 01:13
Show Gist options
  • Save cshijiel/de5be143d96c6d285d1a465e4398e0e7 to your computer and use it in GitHub Desktop.
Save cshijiel/de5be143d96c6d285d1a465e4398e0e7 to your computer and use it in GitHub Desktop.
雪球 批量取关
// https://xueqiu.com/center/#/friends
const rm = function () {
try {
$('.followed')[0].click();
} catch (e) {
let $timelineTabTags = $('.timeline__tab__tags a');
$timelineTabTags[4].click();
$timelineTabTags[5].click();
}
setTimeout(function () {
console.log(1);
$('.dimmer.js-shown .modal__confirm .modal__confirm__submit:visible')[0].click();
}, 100)
};
setInterval(function () {
rm();
}, 100);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment