Don't offload assets from Twitter

some browsers think it has trackers and block it
This commit is contained in:
James Shiffer 2020-06-06 15:34:17 -07:00
parent 0a3a457539
commit c6ed7f85af
5 changed files with 6 additions and 2 deletions

View File

@ -19,6 +19,10 @@
.replace(/@([a-zA-Z0-9_]{1,15})/g, `<a href=${link} class="PrettyLink profile customisable h-card" dir="ltr"><span class="PrettyLink-prefix">@</span><span class="PrettyLink-value">$1</span></a>`);
</script>
<style>
@import '/tweet.css';
</style>
<div class="SandboxRoot env-bp-350">
<div class="EmbeddedTweet EmbeddedTweet--cta js-clickToOpenTarget" id="twitter-widget-0" lang="en">

View File

@ -105,7 +105,7 @@
</div>
</a>
{:else}
<FakeTweet message="No articles found. SAD!" author="Donald J. Trump" verified likes=1488 replies=6969 handle="realDonaldTrump" avatar="https://pbs.twimg.com/profile_images/874276197357596672/kUuht00m_400x400.jpg" />
<FakeTweet message="No articles found. SAD!" author="Donald J. Trump" verified likes=1488 replies=6969 handle="realDonaldTrump" avatar="/realDonaldTrump.jpg" />
{/each}
</div>
</div>

View File

@ -8,7 +8,6 @@
<link rel='stylesheet' href='global.css'>
<link rel='icon' type='image/png' href='favicon.png'>
%sapper.styles%
<link type='text/css' rel='stylesheet' href='https://platform.twitter.com/css/tweet.d41c1d7e4bac44f4658ca45d09564e79.light.ltr.css'>
%sapper.head%
</head>
<body>

BIN
static/realDonaldTrump.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

1
static/tweet.css Normal file

File diff suppressed because one or more lines are too long