Greasy Fork

Greasy Fork is available in English.

【微博】自动批量删除微博

批量删除微博

目前为 2019-09-02 提交的版本。查看 最新版本

// ==UserScript==
// @name         【微博】自动批量删除微博
// @namespace    http://tuite.fun
// @version      1.2
// @description  批量删除微博
// @author       tuite
// @match        https://weibo.com/*/profile*
// @grant        none
// ==/UserScript==
(function() {
    'use strict';

    // Your code here...
    var intervalInt;
    initDel();
})();
 
function initDel() {
    //1.5秒执行一次删除
    intervalInt = self.setInterval(function(){
            if (document.querySelector('a[action-type="feed_list_delete"]')) {
                document.querySelector('a[action-type="feed_list_delete"]').click();
                document.querySelector('a[node-type="ok"]').click();
            } else {
                window.clearInterval(intervalInt)
            }
         }, 2000);
}