Created
September 10, 2023 16:21
-
-
Save moshekaplan/5f88707a1b0086bf32ffa60d52fca2fd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local function search_google(...) | |
local fields = {...}; | |
for i, field in ipairs( fields ) do | |
if (field.name == 'http.host') then | |
browser_open_url("https://www.google.com/search?q=" .. field.value) | |
break | |
end | |
end | |
end | |
register_packet_menu("HTTP/Search host in Google", search_google, "http.host"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment