美文网首页
分享一个删微博的代码

分享一个删微博的代码

作者: 11Z7 | 来源:发表于2017-05-23 18:40 被阅读161次

谷歌浏览器,F12,sources找到watch。添加下面代码下去

// ==UserScript==

// @name Weibored.js

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

// @version 0.1

// @description 删除所有微博

// @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(){

for(var i=0;i<100;i++){

setTimeout(function(){

$('a[action-type="fl_menu"]')[0].click();

$('a[title="删除此条微博"]')[0].click();

$('a[action-type="ok"]')[0].click();

},1000*i);

}

}

document.head.appendChild(s);

相关文章

网友评论

      本文标题:分享一个删微博的代码

      本文链接:https://www.haomeiwen.com/subject/ktygxxtx.html