新浪微博批量取消关注

转载请注明来源:https://www.cnblogs.com/hookjc/

修改以下内容中的XX,在谷歌浏览器书签栏上添加网页,将其复制到网址一栏

javascript:void(function(d){if(typeof jQuery=='undefined'){var head=document.getElementsByTagName('head')[0];var script=document.createElement('script');script.type='text/javascript';script.src='http://code.jquery.com/jquery-2.1.4.min.js';head.appendChild(script);}var val=window.setInterval(function(){if(typeof jQuery!='undefined'){window.clearInterval(val);var li_size=$('.member_li').size();uid_str='';for(i=0;i<li_size;i++){o_l=$('.member_li').get(i);text=$(o_l).text();if(text.indexOf('VeryCD电驴共享')>-1){if(uid_str.length>0)uid_str+=',';uid=$(o_l).attr('action-data');uid=uid.split('&')[0];uid_str+=uid.split('=')[1];$(o_l).html('<h1>'+uid+'</h1>');}}if(uid_str.length>0){var timestamp=(new Date()).valueOf();$.ajax({type:'POST',url:'http://weibo.com/aj/f/unfollow?ajwvr=6&__rnd='+timestamp,data:'uid='+uid_str+'refer_flag=unfollow&_t=0',success:function(ret){window.location=window.location.href;},});}}},500);}(document));

1. 打开你的新浪微博
2. 点开到关注的页面, 等待页面加载完成
3. 点击刚才添加的书签,将对XX的博友取消关注
4. 循环3操作,直到无XX类博友

来源:python脚本自动迁移

posted @ 2020-06-23 18:18  jiangcheng_15  阅读(260)  评论(0编辑  收藏  举报