zoukankan      html  css  js  c++  java
  • 批量删除微博的js代码

    清空微博,网上找了一段js代码,试了下,还行。

    var fileref=document.createElement('script')
    fileref.setAttribute("type","text/javascript")
    fileref.setAttribute("src", 'http://ajax.microsoft.com/ajax/jquery/jquery-1.4.min.js')
    document.getElementsByTagName("head")[0].appendChild(fileref);
    
    function AutoDelWeiBo()
    {
    
    var list = $("a[title='删除此条微博']");
    for(var i =0;i<list.length;i++){
    list[i].click();
    }
    var dels = $("a[node-type='ok']");
    for(var i =0 ;i<dels.length;i++){
    dels[i].click();
    }
    
    window.location.reload();
    };
    window.setInterval("AutoDelWeiBo()",1500);
    

      或者试试这段脚本

    // ==UserScript==
    // @name                新浪微博一键清空
    // @namespace           https://crane-yuan.github.io
    // @version             0.4
    // @description         清空您发过的所有微博
    // @author              crane-yuan
    // @match               http://weibo.com/p/*
    // @require             http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.7.2.js
    // @grant               none
    // @compatible         firefox 测试通过
    // @compatible         chrome 测试通过
    // @compatible         opera 未测试
    // @compatible         safari 未测试
    // ==/UserScript==
    
    window.setInterval(function(){
        $('a[action-type="fl_menu"]')[0].click();
        $('a[title="删除此条微博"]')[0].click();
        $('a[action-type="ok"]')[0].click();
    },500)
    View Code
  • 相关阅读:
    uni-app拒绝授权后再次授权
    vue触底操作
    vue滚动条滚到到底部触发的方法
    pagination插件使用例子
    修改后台返回数据的字段
    v-cloak指令的作用
    修改checkbox样式
    获取selected的值
    前端工程师必备的几个实用网站
    html发展史简介(摘抄)
  • 原文地址:https://www.cnblogs.com/feedback/p/6355353.html
Copyright © 2011-2022 走看看