Hacker News new | ask | show | jobs
by potemkinhr 821 days ago
Good one, added it to my Powershell profile for the occasional giggle so I can invoke it on demand, feel free to reuse it

function Insult { (Invoke-WebRequest -Uri "https://cheswick.com/insults") .ParsedHtml.getElementsByTagName("p")[2].innerText } #Outputs a random quality insult!

Note: delete the space behind insults") Formatting ¯\_(ツ)_/¯