3 ms·
Alas, that 12ft.io URL requires JS for redirection. Also, FT requires cookies to be enabled in the browser to remove the FT cookie banner, but the user cannot
by 1vuio0pswjnm7 4y ago
Alas, that 12ft.io URL requires JS for redirection.
Also, FT requires cookies to be enabled in the browser to remove the FT cookie banner, but the user cannot disable cookies on ft.com without enabling cookies in the browser and letting ft.com set a cookie.
A solution for user who disable Javascript and cookies
echo https://www.ft.com/content/328853e8-c493-4e87-b80f-cbc02be6510c \
1.sh > 1.htm
firefox ./1.htm
or
list-of-ft-urls < 1.sh > 1.htm
firefox ./1.htm
1.sh:
#!/bin/sh
sed -e '/www.ft.com\/content/s>.*>url=https://12ft.io/api/proxy?ref=\&q=&>' -e 's/:/%3A/2' -e:a -e 's>/>%2F>5;ta' \
|curl -K /dev/stdin -H "accept-encoding: gzip" -o /dev/stdout \
|gzip -dc \
|sed 's/div data-o-component=.o-cookie-message/!--&/'