Skip to content

Commit 5f385c8

Browse files
slarsonclaude
andcommitted
Update Twitter/X embed to modern format without widget ID
- Removed deprecated data-widget-id attribute - Added modern data-height and data-chrome parameters - Updated both static HTML and dynamic PJAX loader - Widget ID system deprecated by Twitter/X (no longer required) Widget should now use simpler href-based timeline embed. Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
1 parent 6f04926 commit 5f385c8

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

index.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,13 @@ <h2>Latest news</h2>
408408
</div>
409409
<div class="span6">
410410
<div id="tweeter">
411-
<a class="twitter-timeline" href="https://twitter.com/OpenWorm" data-widget-id="293717776768569344">Tweets by @OpenWorm</a>
411+
<a class="twitter-timeline"
412+
href="https://twitter.com/OpenWorm"
413+
data-height="600"
414+
data-theme="light"
415+
data-chrome="noheader nofooter noborders">
416+
Tweets by @OpenWorm
417+
</a>
412418
</div>
413419
</div>
414420
</div>

js/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ $(document).on('pjax:popstate', function() {
4040
else if (loc === '/index.html' || loc === '/' || loc === '') {
4141
// Twitter widget
4242
$('#fb-root').html('');
43-
$('#tweeter').html('<a class="twitter-timeline" href="https://twitter.com/OpenWorm" data-widget-id="293717776768569344">Tweets by @OpenWorm</a>');
43+
$('#tweeter').html('<a class="twitter-timeline" href="https://twitter.com/OpenWorm" data-height="600" data-theme="light" data-chrome="noheader nofooter noborders">Tweets by @OpenWorm</a>');
4444
//$.pjax.reload('#pjax-content', {fragment:'#pjax-content'});
4545
reloadSocial();
4646
// setNavigation();

0 commit comments

Comments
 (0)