
Alternative Tweet Embeds
Embed tweets without compromising your users' privacy and your site's performance.
Learn more on stefanbohacek.com and in the project's source code. Also available as a WordPress plugin.
How to use
See detailed instructions in the project's README file. After you remix this app, below you will find the code you will need to add to the page where you're embedding tweets.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link href="https://alternative-twitter-embeds.glitch.me/css/styles-bs.css" rel="stylesheet" type="text/css">
</head>
<body>
<TWEET CODE>
<script src="https://alternative-twitter-embeds.glitch.me/js/tweets.js"></script>
</body>
</html>
If you're using Bootstrap v4 on your site, you can load an alternative slimmed down stylesheet.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link href="https://alternative-twitter-embeds.glitch.me/css/styles.css" rel="stylesheet" type="text/css">
</head>
<body>
<TWEET CODE>
<script src="https://alternative-twitter-embeds.glitch.me/js/tweets.js"></script>
</body>
</html>
Be sure to remove any script
tags from the embed code that Twitter gives you.
Examples
I wrote a short exploration of the Civilian Complaints Against NYPD Officers dataset released by @propublica to demo a WordPress #dataviz plugin I've been working on.https://t.co/AXNhHNDmZ0
— Stefan Bohacek (@stefanbohacek) August 20, 2020
I love this — The Verge covers @stefanbohacek’s brilliant generative image placeholders, a @Glitch app that makes one of the most mundane parts of the web more beautiful. (And there are thought-provoking implications about art being made by code.) https://t.co/vKl9gLFj0h
— Anil Dash (@anildash) January 25, 2020
Happy International Women's Day!
— Austin DSA (@austin_DSA) March 8, 2021
(photo of striking textile workers during the 1912 Bread and Roses Strike). pic.twitter.com/hBibKUlbAa
— rain.gif (@raindotgifbot) March 22, 2020
— rain.gif (@raindotgifbot) March 22, 2020
*record scratch*
— Freeze Frame Bot (@freezeframebot) December 6, 2019
*freeze frame*
Yup, that's me. You're probably wondering how I ended up in this situation. pic.twitter.com/5m8AdJ4oIA
What are your favorite bots to follow?
— Botwiki 🤖💾🎨 (@botwikidotorg) October 26, 2020
— EMOJI POLLS! (@emoji__polls) April 12, 2016
Original project created by @stefanbohacek View source More projects