您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
删除所有微博
- // ==UserScript==
- // @name Weibored.js
- // @namespace http://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);