您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
修改了Fofa.so 搜索结果页面“使用API”界面,对原有api增加了size和filed参数,并增加了powershell下载命令。
// ==UserScript== // @name Fofa.so 搜索结果页面“使用API”优化 // @namespace http://tampermonkey.net/ // @version 0.1 // @description 修改了Fofa.so 搜索结果页面“使用API”界面,对原有api增加了size和filed参数,并增加了powershell下载命令。 // @author mark0smith // @match https://fofa.so/result?* // @grant none // ==/UserScript== (function() { 'use strict'; var selector = "#apiInfoModal > div > div > div.modal-body > div:nth-child(1)"; var original_api = document.querySelector(selector).innerText.trim(); var replace_text = "" replace_text += "原始api为:\n" replace_text += original_api + "\n\n"; replace_text += "修改后api为:\n" var new_api = original_api + "&size=10000&fields=ip" replace_text += new_api + "\n\n"; replace_text += "使用PowerShell下载数据:\n" var output_filename = Date.now().toString() + ".json" var powershell_download_command = 'Invoke-WebRequest -Uri "'+ new_api +'" -OutFile ' + output_filename; replace_text += powershell_download_command + "\n" document.querySelector(selector).innerText = replace_text })();