summaryrefslogtreecommitdiff
path: root/title.bash
diff options
context:
space:
mode:
Diffstat (limited to 'title.bash')
-rwxr-xr-xtitle.bash5
1 files changed, 3 insertions, 2 deletions
diff --git a/title.bash b/title.bash
index 1929173..1606822 100755
--- a/title.bash
+++ b/title.bash
@@ -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