aboutsummaryrefslogtreecommitdiffstats
path: root/COPYING
diff options
context:
space:
mode:
authorTeddy Wing2018-08-06 01:48:35 +0200
committerTeddy Wing2018-08-06 01:48:35 +0200
commita587ea1004b4fd57635c987fd4dafed4b178e5c0 (patch)
treeea20b9ae4b71352d96f7baca1c2469d52673dd9b /COPYING
downloadnpr-text-mode-redirect-a587ea1004b4fd57635c987fd4dafed4b178e5c0.tar.bz2
User script to redirect to NPR's text version
Since the site doesn't provide a function to do this, make a mechanism to do it automatically. The text mode version is light and doesn't track visitors. In order to redirect to the text version of the article, we pull out the article's ID and use it in the text mode URL. Thanks to these MDN docs explaining how to parse query string arguments: - https://developer.mozilla.org/en-US/docs/Web/API/URL/searchParams#Example - https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/get#Example
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions