Last active
May 30, 2018 12:42
-
-
Save johnsonlee/f22234c59748ae2e42bb1ba658659a61 to your computer and use it in GitHub Desktop.
微博批量取消关注
This file contains 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
(function() { | |
// 批量管理 | |
Array.prototype.forEach.call(document.getElementsByClassName('btn_link'), function(btn) { | |
if (btn.getAttribute('action-type') == 'batselect') { | |
btn.click(); | |
} | |
}); | |
// 批量选择 | |
Array.prototype.forEach.call(document.getElementsByClassName('member_li'), function(li) { | |
li.click(); | |
}); | |
// 点击“取消关注” | |
Array.prototype.forEach.call(document.getElementsByClassName('W_btn_a'), function(btn) { | |
if (btn.getAttribute('node-type') == 'cancelFollowBtn') { | |
btn.click(); | |
} | |
}); | |
// 点击“确定” | |
Array.prototype.forEach.call(document.getElementsByClassName('W_btn_a'), function(btn) { | |
if (btn.getAttribute('node-type') == 'ok') { | |
btn.click(); | |
} | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment