FOI News — Less the JavaScript

I want to view the Friends of Israel news feed regularly, but I also block JavaScript, and going to https://www.foi.org/news only gives me a blank page and buckets full of JavaScript I don't want to load.

I started combing through the JavaScript, trying to see if I could make JSON requests directly or something like that, to pull the news entries. But the solution is much simpler, thankfully. It turns out that the actual news entries are available in daily digests, which are available in plain HTML. Each day is available through a URL like so:

FOI news digest for 1/31/24

As you can see, it would not be too difficult to manually adjust the date each day. But of course, why do that, when you can run an Emacs function instead?

So insert that into your init.el, and then M-x open-foi-news-digest will open today's feed. I use helm, so running that command is only a few keystrokes. But of course you could pick a shorter name or assign a keyboard shortcut.

This work © 2024 by Christopher Howard is licensed under Attribution-ShareAlike 4.0 International.

CC BY-SA 4.0 Deed

Proxied content from gemini://gem.librehacker.com/gemlog/starlog/20240131-0.gmi

Gemini request details:

Original URL
gemini://gem.librehacker.com/gemlog/starlog/20240131-0.gmi
Status code
Success
Meta
text/gemini
Proxied by
kineto

Be advised that no attempt was made to verify the remote SSL certificate.