-
-
Save jiangzhuo/39a2abf2be20ed35b45d72cbc8891a6e to your computer and use it in GitHub Desktop.
自动设置所有自己的微博为自己可见,在自己的https://weibo.com/p/*********页面打开浏览器Console运行以下代码
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
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