XHDA

XSS Hunter, One-Key delete all data.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         XHDA
// @description  XSS Hunter, One-Key delete all data.
// @author       LzSkyline
// @match        https://xsshunter.com/app
// @grant        none
// @version 0.0.1.20181108062953
// @namespace https://greasyfork.org/users/152259
// ==/UserScript==

(function() {
    'use strict';
    function del_all_item(){
        console.log("Working...");
        api_request( "GET", "/api/payloadfires", {"offset": 0, "limit": 500}, function( items ) {
            items.results.forEach(function(item, index){
                console.log("Deleting: "+item.id);
                setTimeout(100);
                api_request( "DELETE", "/api/delete_injection", {"id": item.id}, function( response ) {
                    delete_injection( item.id );
                });
            })
        })
    }
    $(".panel-heading").append('<button type="button" class="delete_all btn btn-xs btn-danger pull-right"><span class="glyphicon glyphicon-trash"></span> Delete All</button>')
    $(".delete_all").on('click', del_all_item);
    //reload
    $("a[href='#home1']").css("cursor","pointer");
    $("a[href='#home1']").on('click', function(){location.reload();});
})();