chrome扩展里面 批量UNFOLLOW twitter的代码,求大佬给写个中文的注释

你只是看起来很努力 2018-06-28 09:18:55
var confirmation = confirm("Are you sure you want to unfollow all users on Twitter?");
if (confirmation) {

alert("Refresh the page when you want to stop!");
alert("It is advised that you do not unfollow large quantities of users in one day, according to the twitter guidelines. Use with caution. Cheers!");



setInterval(function() {

var inputs = document.getElementsByClassName('button-text unfollow-text');

for (var i = 0; i < inputs.length; i++) {
inputs[i].click();
//Change the class name avoid double clicking
inputs[i].className = "Degisti"
}

window.scrollTo(document.body.scrollWidth, document.body.scrollHeight);

}, 1500);


}
...全文
169 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
<button type="button" class="
EdgeButton
EdgeButton--danger
EdgeButton--small

button-text
unfollow-text">
<span aria-hidden="true">Unfollow</span>
<span class="u-hiddenVisually">Unfollow <span class="username u-dir u-textTruncate" dir="ltr">@<b>WenhuanWu</b></span></span>
</button>

87,993

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧