Commit Graph
288 Commits
Author SHA1 Message Date
Brent Simmons 5fc54daa6a Skip a Substack cover image when the body has its own top image, since it’s often a separate upload of the same picture. 2026-11-16 09:24:07 -08:00
Brent Simmons f28c08c451 Deal with some special cases for enclosures in the article view. 2026-11-15 21:55:31 -08:00
Brent Simmons 9c787187b6 Make the enclosures audio filename a link. Underline that link in Default, Gray, Plum, and Verdana Revival themes. 2026-11-15 21:09:04 -08:00
Brent Simmons d404cf18a3 Log thumbnail downloading always (not just on error). Include feed name in log entries. 2026-11-15 20:59:37 -08:00
Brent Simmons 798c6fc580 Make small tweaks to the default theme. 2026-11-10 19:54:01 -08:00
Brent Simmons 409c55b39e Handle Engadget’s weird duplicate-image issue. 2026-11-09 08:46:55 -08:00
Brent Simmons d3a3aa16da Load iframes, such as embedded YouTube video, where the real URL is in Optimole's data-opt-src attribute. Fixes #5545. 2026-11-09 08:31:41 -08:00
Brent Simmons 898c44f961 Skip primary images for microblog (Mastodon etc.) style posts (no title, short or short-ish). They can still have video or audio for [[primary_media]] but all attached images will be in [[enclosures]]. 2026-11-08 22:02:02 -08:00
Brent Simmons d8417db7d5 Skip enclosure images that are the same as the feed image (as with Letters from an American), so they don’t become redundant timeline thumbnails or primary images. 2026-11-08 21:56:55 -08:00
Brent Simmons 2631c157ae Change from [[primary_image]] to [[primary_media]] and include video and audio. Revert microblog handling — treat each article type the same with regard to primary_media. 2026-11-08 21:23:47 -08:00
Brent Simmons 9aea5204a1 Use media:thumbnail as fallback when there are no other images (as with Wired). Put all images at bottom for microblog-style articles. 2026-11-08 20:59:47 -08:00
Brent Simmons bdcca49c0e Disable JavaScript for blog.rust-lang.org articles and unwrap noscript sections (which would otherwise get hidden, even in this situation). 2026-11-08 20:12:03 -08:00
Brent Simmons 1d8ae6abec Add [[primary_image]] tag to article renderer. Replaced with div containing best guess at primary image from feed that is not otherwise included in the article HTML. (Comes from Media RSS, for instance.) 2026-11-08 18:05:06 -08:00
Brent Simmons b989d771a3 Remove footnote popover styles that only restated the defaults. 2026-11-05 11:36:47 -08:00
Brent Simmons dd85da6ef1 Remove footnote popover CSS that the inline positioning overrides. 2026-11-05 11:05:21 -08:00
Brent Simmons 3733376d6a Call reposition directly on resize so the footnote popover always matches the final window width. 2026-11-05 11:03:21 -08:00
Brent Simmons 469f722da2 Skip containers when picking scroll anchor. Restore the place within it. 2026-11-04 10:50:19 -08:00
Brent Simmons 0bd3841c48 Move scroll anchor JavaScript script from WebViewController to main.js. 2026-11-04 10:42:17 -08:00
Brent Simmons 7c7219455e Merge pull request #5514 from stuartbreckenridge/fix/duo-popovers
Fix popover positioning
2026-11-04 09:48:59 -08:00
Brent Simmons d49c25abf9 Pass article base URL to image attribute inserter as URL, matching HTMLImageParser. 2026-11-03 16:04:05 -08:00
Brent Simmons 9bc39f5172 Split ThumbnailDownloader out from ArticleThumbnailFinder. 2026-11-03 13:40:27 -08:00
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
Stuart Breckenridge e3f2adce0f make sure the popovers attach correctly at the edge 2026-10-25 15:13:28 +08:00
Stuart Breckenridge 02d1407040 Fix popover positioning 2026-10-25 14:57:04 +08: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