- // ==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');
- }, 800);
- };
- document.head.appendChild(s);
复制代码代码如上
不要慌,别看到代码就怂,很简单的,三步就能搞定,且往下看! 1. 进入自己的微博主页(网页端) 2. 按F12键(或者右键审查元素),会弹出以下页面 记住,是[ console ]目录 3. 将代码复制在 [ console ]目录 ,按回车键确定即可
PS:一旦你按下回车键,删除就会马上开始,所以要慎重!(世上没有后悔药)
|