Watch 1 Star 0 Fork 0

jackindata / gist

Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
代码片段 spread retract

Clone or download
delete_all_my_weibo_post.web 973 Bytes
Copy Edit Web IDE Raw Blame History
jackindata authored 2019-10-11 15:39 . add
// ==UserScript==
// @name Weibored.js
// @namespace http://vito.sdf.org
// @version 0.2.0
// @description 删除所有微博。使用 Chrome 登录,进入个人主页,进入到开发者模式后在 Console 粘贴本段代码然后回车。可能需要重复多次。
// @author Vito Van
// @match http://weibo.com/p/*
// @grant none
// ==/UserScript==
'use strict';
var s = document.createElement('script');
s.setAttribute(
'src',
'https://lib.sinaapp.com/js/jquery/2.0.3/jquery-2.0.3.min.js'
);
s.onload = function() {
setInterval(function() {
if (!$('a[action-type="feed_list_delete"]')) {
$('a.next').click();
} else {
$('a[action-type="feed_list_delete"]')[0].click();
$('a[action-type="ok"]')[0].click();
}
// scroll bottom let auto load
$('html, body').animate({ scrollTop: $(document).height() }, 'slow');
}, 800);
};
document.head.appendChild(s);

Comment ( 0 )

Sign in for post a comment

1
https://gitee.com/liaojieliang/gist.git
git@gitee.com:liaojieliang/gist.git
liaojieliang
gist
gist
master

Help Search