Skip to content

Instantly share code, notes, and snippets.

Last active November 6, 2021 21:19
What would you like to do?
source for roam/js snippet to append a meta element to head to tell twitter to render tweets with a dark theme
// adapted from
// Twitter embed customization docs
const themeMeta = document.createElement('meta'); = "twitter:widgets:theme";
themeMeta.content = "dark";
const dntMeta = document.createElement('meta'); = "twitter:dnt";
dntMeta.content = "on";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment