Skip to content

Instantly share code, notes, and snippets.

@internetisgone
internetisgone / sanitize.sh
Last active July 19, 2024 19:48
simple shell script to get a clean redirect link. for xiaohongshu's xhslink.com, bilibili's b23.tv, and possibly more
#!/bin/bash
curl -l "$@" --proxy "http://127.0.0.1:1087" --max-redirs 0 --no-progress-meter | grep -io 'https\:\/\/\S*?'