From 0fe2027bc15e3aa435fcba00f2c44ec94f42506e Mon Sep 17 00:00:00 2001 From: Chloe Carver-Brown Date: Thu, 19 May 2022 13:00:36 +0100 Subject: [PATCH] big fix for mp4 (I think) Signed-off-by: Chloe Carver-Brown --- static/main.js | 6 +++--- static/style.css | 2 +- templates/image.html | 6 +++--- templates/inline.html | 4 ++-- templates/latest.html | 19 +++++++++---------- templates/stats.html | 2 +- templates/text.html | 6 +++--- twitfix.py | 10 +++++----- 8 files changed, 27 insertions(+), 28 deletions(-) diff --git a/static/main.js b/static/main.js index 5610a90..570bd97 100644 --- a/static/main.js +++ b/static/main.js @@ -70,7 +70,7 @@ function forNow() { function fetchNApply(page) { try { loading = true; - fetch(`https://fxtwitter.com/api/latest/?tweets=10&page=${page}`) + fetch(`https://twxtter.com/api/latest/?tweets=10&page=${page}`) .then(response => response.json()) .then(data => { data.forEach(e => createTweet(e)); @@ -265,7 +265,7 @@ function createTweet(json) { const rts = createEl("div", "cont", { inner: `${json["rts"]} Retweets` }); const lks = createEl("div", "cont", { inner: `${json["likes"]} Likes` }); - const share = createEl("img", "share", { src: "https://fxtwitter.com/copy.svg" }); + const share = createEl("img", "share", { src: "https://twxtter.com/copy.svg" }); meta.appendChild(rts); meta.appendChild(lks); @@ -277,7 +277,7 @@ function createTweet(json) { imgPrev(img); }); share.addEventListener("click", () => - navigator.clipboard.writeText(json["tweet"].replace("https://t", "https://fxt")) + navigator.clipboard.writeText(json["tweet"].replace("https://twi", "https://twx")) ); tweetCount++; diff --git a/static/style.css b/static/style.css index 581659b..ef24ab8 100644 --- a/static/style.css +++ b/static/style.css @@ -1,7 +1,7 @@ @font-face { font-family: NotoColorEmojiLimited; unicode-range: U+1F1E6-1F1FF; - src: url("https://fxtwitter.com/font.ttf"); + src: url("https://twxtter.com/font.ttf"); } :root { diff --git a/templates/image.html b/templates/image.html index d75a01d..f83ca0c 100644 --- a/templates/image.html +++ b/templates/image.html @@ -1,13 +1,13 @@ {% extends 'base.html' %}