分享一個刪微博的代碼

谷歌瀏覽器,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);

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容