diff options
author | Luke Bratch <luke@bratch.co.uk> | 2025-01-07 10:48:01 +0000 |
---|---|---|
committer | Luke Bratch <luke@bratch.co.uk> | 2025-01-07 10:48:01 +0000 |
commit | 0e42cf98e908fdb67a9bf10d20e2a13277a295d8 (patch) | |
tree | 457051d30f94c268939e2ae98cb62bc2757c22fb | |
parent | 4a661879ffb04e0a00f3c7183e7e5b01f73101d7 (diff) |
-rwxr-xr-x | title.bash | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -34,18 +34,19 @@ # : add Twitter to quirks mode since Twitter no longer sends a <title> to even the latest Firefox user agent string # v1.7 : add support for Open Graph titles # v1.8 : add special extra quirks mode for Twitter because it doesn't seem to resemble a website in any way +# v1.8.1: don't bind to a specific interface/IP # Disable globbing set -f -OPTS='--interface 178.32.55.206 --location --insecure --silent --max-filesize 1048576 --max-time 10 -A "Mozilla/5.0 (X11; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0" -H "Accept-Encoding: gzip" -H "Accept: text/html" -H "Accept-Language: en-GB,en;q=0.5"' +OPTS='--location --insecure --silent --max-filesize 1048576 --max-time 10 -A "Mozilla/5.0 (X11; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0" -H "Accept-Encoding: gzip" -H "Accept: text/html" -H "Accept-Language: en-GB,en;q=0.5"' read url # Quirks # Claim to be cURL if echo "$url" | grep -Eq "^http(s|)://(m.|www.|)(youtube\.com|youtu\.be)/|^http(s|)://www\.ispreview\.co\.uk/|^http(s|)://(www.|)twitter\.com/" ; then - OPTS='--interface 192.168.122.10 --location --insecure --silent --max-filesize 1048576 --max-time 10 -H "Accept-Encoding: gzip" -H "Accept: text/html" -H "Accept-Language: en-GB,en;q=0.5"' + OPTS='--location --insecure --silent --max-filesize 1048576 --max-time 10 -H "Accept-Encoding: gzip" -H "Accept: text/html" -H "Accept-Language: en-GB,en;q=0.5"' fi # Use Twitter mobile site if echo "$url" | grep -Eq "^http(s|)://(www.|)twitter\.com/" ; then |