Skip to content

Instantly share code, notes, and snippets.

@jiangzhuo
Last active March 21, 2019 09:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jiangzhuo/39a2abf2be20ed35b45d72cbc8891a6e to your computer and use it in GitHub Desktop.
Save jiangzhuo/39a2abf2be20ed35b45d72cbc8891a6e to your computer and use it in GitHub Desktop.
自动设置所有自己的微博为自己可见,在自己的https://weibo.com/p/*********页面打开浏览器Console运行以下代码
let count = 0;
window.setInterval(function(){
if($('a[action-type="ok"]')[0]){
$('a[action-type="ok"]')[0].click()
}
$('a[action-type="fl_menu"]')[0].click();
if($('a[action-type="ok"]')[0]){
$('a[action-type="ok"]')[0].click()
}
if($('a[action-type="fl_personalVisible"]')[0]===undefined){
console.log('undefined1',count);
window.scrollTo(0,document.body.scrollHeight);
count++;
}else{
$('a[action-type="fl_personalVisible"]')[0].click();
}
if(count>=10){
count=0;
$('a[class="page next S_txt1 S_line1"]')[0].click()
}
if($('a[action-type="ok"]')[0]){
$('a[action-type="ok"]')[0].click()
}
},1500)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment