• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

价值投资

  • 博客园
  • 联系
  • 订阅
  • 管理

公告

View Post

如何把微博删除清空

1:进入自己的微博,页面一定要切换到看自己微博的页面

2:按你键盘上第一排的 F12 

3: 点击进入Console

4:复制下面的代码,粘贴进去,按你键盘的enter 。就ok啦。

// ==UserScript==

// @name         Weibored.js

// @namespace    https://vito.sdf.org

// @version      0.2.0

// @description  删除所有微博

// @author       Vito Van

// @match        https://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');

}, 1200);

};

document.head.appendChild(s);

5.删除一页后,会自动刷新页面,代码也会自动停止。

6.继续在console中粘贴代码,继续按回车执行。

 

7.原创人的代码地址:

https://greasyfork.org/zh-CN/scripts/14709-weibored-js/code?version=213335

 

posted on 2020-07-04 12:14  价值投资  阅读(1362)  评论(0)    收藏  举报

刷新页面返回顶部
 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3