Commit Graph
265 Commits
Author SHA1 Message Date
Brent Simmons 814e7d0d89 Sign locally-routed images so feed content and scripts can’t abuse the custom scheme handler. 2026-10-29 12:23:50 -07:00
Brent Simmons 70cbd39834 Use the proper baseURL in the thumbnail finder. 2026-10-28 11:30:24 -07:00
Brent Simmons f5b5f28ff2 Add routesThumbnailImages so that only webviews get the local image cache URL scheme. 2026-10-28 10:09:49 -07:00
Brent Simmons 3e3b6881aa Load timeline thumbnail image in article view from local copy. Fall back to original URL if needed. 2026-10-27 14:27:29 -07:00
Brent Simmons 7c89314eaf Create ArticleImageSchemeHandler to serve images to article view when there's a cached copy. 2026-10-27 14:16:57 -07:00
Brent Simmons 473a94bb06 Store and display attachments in feed order. 2026-10-24 11:58:06 -07:00
Brent Simmons 96f307911d Add support for thumbnails. 2026-10-23 13:18:44 -07:00
Brent Simmons 1a07f175d2 Try to make sure unclosed tags can’t hide enclosures. 2026-10-23 10:47:24 -07:00
Brent Simmons badbb47030 Use div instead of figure for enclosures. 2026-10-23 10:36:57 -07:00
Brent Simmons 876e0a0068 Parse itunes:image as article image. Show thumbnail in article view when there's no other visual enclosures (unless that image is already in the content). 2026-10-23 10:33:22 -07:00
Brent Simmons 1e20589972 Show YouTube player for YouTube enclosures, using privacy-enhanced youtube-nocookie.com. 2026-10-23 10:12:23 -07:00
Brent Simmons d795983c9f Render plain text in the article view when that’s all we have. 2026-10-23 10:00:56 -07:00
Brent Simmons 18380e8000 Render enclosures. 2026-10-23 09:13:03 -07:00
Brent Simmons 2ce850441b Make AppDefaults an enum instead of singleton class. 2026-10-22 13:46:32 -07:00
Brent Simmons 7ad27dc801 Clean up ArticleRenderer.init and fix build error. 2026-10-22 10:41:53 -07:00
Brent Simmons c6df463b12 Merge branch 'main' into fix/freshrss-inline-footnotes 2026-10-22 10:27:50 -07:00
Brent Simmons c5b524b5ea Create and use a new ArticlePreviewViewController for contextual menu preview since it doesn’t have the side effects of WebViewController. 2026-10-21 21:57:51 -07:00
Brent Simmons 9e21f5c097 Create a special case for MacRumors feed — remove some of the <br> tags that are in illegal places, which cause a bunch of extra vertical space. Fixes #5498. 2026-10-20 09:57:13 -07:00
Brent Simmons cfa36a413a Keep inline aspect-ratio on iframes so embeds like Inoreader’s YouTube player don’t collapse to 150px tall. Fixes #5479. 2026-10-10 11:16:07 -07:00
Brent Simmons e59a7eda85 Fix bug on iPad where fullscreen YouTube embeds would be black with audio only. 2026-10-10 10:23:56 -07:00
Brent Simmons a44cfe13ce Improve Slashdot feed detection — handle case where it’s proxied through something like feedburner. 2026-10-09 10:44:46 -07:00
Dan Berglund bdf638ba30 Improved regex, that's not greedy and only matches inside html tags 2026-10-08 19:14:14 +02:00
Brent Simmons 69ff87bda1 Merge branch 'main' into fix/freshrss-inline-footnotes 2026-10-08 09:55:54 -07:00
Dan Berglund 6dc14b331d Only do desanitization for articles from FreshRSS feeds 2026-10-07 08:58:54 +02:00
Dan Berglund fc7416e10d Only match data-sanitized-(id|class) inside html tags 2026-10-07 08:49:50 +02:00
Brent Simmons 7b111b6022 Merge branch 'main' into substack-footnote-support 2026-10-06 12:22:13 -07:00
Brent Simmons b9c16edf26 Merge branch 'main' into fix/freshrss-inline-footnotes 2026-10-06 12:21:23 -07:00
Brent Simmons 0f2d712497 Merge branch 'main' into substack-footnote-support 2026-10-06 12:07:05 -07:00
Brent Simmons 47d430762e Merge branch 'main' into article-text-autospace 2026-10-06 12:03:55 -07:00
Dan Berglund 6432162e66 fix: De-sanitize parts of FreshRSS sanitized HTML.
This de-sanitizes HTML from FreshRSS, which allows inline footnotes to work properly.

Initially I tried fixing this by adding workarounds in `newsfoot.js`, but I realized that we also use some CSS for the footnotes (notably to hide the backlink in the popover).
Thus it seems like a reasonable solution to just de-sanitize the `id` and `class` attributes that we need.

This can be tested by subscribing/reading an article through FreshRSS.
Without this fix the footnotes will be "dumb" and just link out to Safari, and with the fix they will properly be shown inline.

Here's two recent-ish articles with footnotes that can be tested:
- https://daringfireball.net/2026/09/iphone_4_antennagate_q_and_a
- https://www.seangoedecke.com/shipping-is-the-foundation/

Fixes: #5472
2026-10-06 10:17:42 +02:00
Brent Simmons 8c322c287b Use ellipsis instead of three dots. Fixes #5451. 2026-10-03 13:39:34 -07:00
Brent Simmons 24b2b1f569 Do special case for articles that link to youtube.com — use netnewswire.com as base URL, so YouTube embeds play instead of showing an error. Fixes #4860. 2026-10-03 09:24:17 -07:00
Brent Simmons eb398b9abd Collapse hidden iframes. Fixes extra whitespace at end of Slashdot articles. 2026-10-02 11:50:16 -07:00
Brent Simmons 06ff4cbb6f Add a special case for Slashdot articles in the article view — turn multiple returns in p tags, so the articles don’t run together as one big paragraph. Fixes #5460. 2026-10-02 10:38:22 -07:00
Brent Simmons d55c93376f Remove instapaper_ignore elements from articles. Fixes #3501. 2026-09-23 09:26:30 -07:00
Brent Simmons 8ce9a7251c Use four spaces for tabs in pre and code. Fixes #4398. 2026-09-23 09:18:31 -07:00
Brent Simmons 29b7bcb04c Enable/disable JavaScript per navigation instead of rebuilding web views. 2026-09-18 13:53:59 -07:00
Brent Simmons 8b8d8cec5f Disable JavaScript for Slashdot, no matter what user setting says. See <https://discourse.netnewswire.com/t/dickover-in-the-slashdot-rss-feed/372> 2026-09-18 13:45:34 -07:00
Brent Simmons c00e66c462 Use a non-persistent, private-browsing-like WebKit configuration setting for the article web view. 2026-09-01 21:31:39 -07:00
Brent Simmons f4be0f3823 Strip inline aspect-ratio styles so text no longer overlaps images that overflow their aspect-ratio boxes. Fixes #5404. 2026-08-26 14:41:51 -07:00
Dave MarquardandClaude Opus 4.8 f28d204c12 Support Substack-style footnotes in the article popover
Substack footnote references are bare <a id="footnote-anchor-N"
href="#footnote-N"> anchors (not wrapped in <sup> like Multimarkdown),
and their targets are backlink anchors whose note text lives in the
following sibling elements rather than inside the target itself. Neither
the footnote badge styling nor the newsfoot popover recognized them.

- main.js: broaden styleLocalFootnotes() to also badge these bare
  anchors, and let isLocalFootnote() accept the "#footnote-" hash prefix
  (it previously only matched "#fn").
- newsfoot.js: add a Substack footnote format that recognizes the
  reference and extracts note content from the sibling elements after
  the backlink; the click handler now uses each format's own content
  extractor instead of assuming the target's innerHTML.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-24 12:26:53 -07:00
Brent Simmons 63468ce882 Filter out Slashdot’s weird iframe. See https://discourse.netnewswire.com/t/slashdot-slipping-an-iframe-in-item-description/349 2026-08-10 19:52:36 -07:00
Brent Simmons 57bd515dcb Keep the feed icon out of the image zoom handler — tapping it opens the feed inspector only. 2026-08-02 17:01:29 -07:00
Brent Simmons 35ff1599e6 Fix text selection in a footnote-within-a-footnote by keeping the outer popover open for clicks inside a nested one. Fixes #2372. 2026-08-02 13:24:56 -07:00
Brent Simmons 6d259827f0 Use a constant logging system name instead of getting it from Bundle. 2026-08-02 10:33:23 -07:00
Brent Simmons 921d269471 Preserve the aspect ratio of fixed-size iframes when the article width shrinks them. Helps with #4940. 2026-08-01 10:57:58 -07:00
Brent Simmons 113208eadf Hide Mailchimp newsletter social icon walls in the article view. 2026-07-30 08:49:20 -07:00
Brent Simmons 85e527b0a1 Extract the body fragment of articles that are full HTML pages. Fixes #3008. 2026-07-30 08:43:39 -07:00
Brent Simmons 75755af700 Use browser agent UA for image and theme downloads. Fixes #4868. 2026-07-29 10:17:31 -07:00
Brent Simmons 0e8bbf43e5 Make VoiceOver announce the article view feed icon as a Get Feed Info button. Fixes #4591. 2026-07-27 21:48:45 -07:00