Skip to content

Instantly share code, notes, and snippets.

@moshekaplan
Created September 10, 2023 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moshekaplan/5f88707a1b0086bf32ffa60d52fca2fd to your computer and use it in GitHub Desktop.
Save moshekaplan/5f88707a1b0086bf32ffa60d52fca2fd to your computer and use it in GitHub Desktop.
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