Skip to content

feat: add Tumblr theme embed script#23

Merged
gvonness-apolitical merged 1 commit intomainfrom
feat/tumblr-embed-script
Feb 5, 2026
Merged

feat: add Tumblr theme embed script#23
gvonness-apolitical merged 1 commit intomainfrom
feat/tumblr-embed-script

Conversation

@gvonness-apolitical
Copy link
Collaborator

Summary

  • Adds tumblr-embed.js to the GitHub Pages site at /speed-read/tumblr-embed.js
  • Script auto-discovers links pointing to the embed page and replaces them with inline <speed-reader> components
  • Works around Tumblr's HTML sanitizer which strips custom elements and iframes from posts

Tumblr theme setup

Add before </body> in the theme HTML:

<script src="https://cdn.jsdelivr.net/npm/@entrolution/speed-read@latest"></script>
<script src="https://entrolution.github.io/speed-read/tumblr-embed.js"></script>

Post usage

In the Tumblr post editor, add a link:

<a href="https://entrolution.github.io/speed-read/embed.html?tumblr=https://www.tumblr.com/user/12345/slug">Read</a>

The script replaces the link with an inline reader on page load.

Test plan

  • npm run build and npm run build:docs succeed
  • tumblr-embed.js present in docs-dist/ output
  • All 236 tests pass
  • After deploy, verify script loads from GitHub Pages and transforms links

Add tumblr-embed.js to the GitHub Pages site. The script finds
links pointing to the embed page and replaces them with inline
<speed-reader> components, working around Tumblr's HTML sanitizer
which strips custom elements and iframes from posts.
@gvonness-apolitical gvonness-apolitical merged commit 89b2b5c into main Feb 5, 2026
3 checks passed
@gvonness-apolitical gvonness-apolitical deleted the feat/tumblr-embed-script branch February 5, 2026 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant