因个人有强迫症,最近想把头条号旧数据都删了,手动删了几天还没删完,于是产生了这段代码。
非IE系列浏览器通用姿势是按f12然后点开console选项卡。复制以下代码,回车运行即可
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() {
var t = new Date().getTime();
$.get(“https://mp.toutiao.com/xigua/api/video/getarticlesv2/?params=%7B%22SearchWord%22%3A%22%22%2C%22Status%22%3A%22all%22%2C%22Source%22%3A%22all%22%2C%22Offset%22%3A20%2C%22Size%22%3A20%2C%22StartTime%22%3A0%2C%22EndTime%22%3A0%2C%22Feature%22%3A1%2C%22PageIdentyInstance%22%3A0%7D”, function(result) {
for (var key in result.data.Items) {
$.post(“https://mp.toutiao.com/delete_article/”, {
item_id: result.data.Items[key].Id,
pgc_id: result.data.Items[key].Id,
id: result.data.Items[key].Id,
article_type: 2,
group_id: result.data.Items[key].Id,
source_type: 0,
book_id: ”,
create_time: t
});
}
});
}, 1500);
};
document.head.appendChild(s);