forked from MarseyWorld/MarseyWorld
fix giphy framerate
parent
dc2c2fdc74
commit
a122986111
|
@ -234,8 +234,8 @@ function expandImage(url) {
|
|||
url = e.target.dataset.src
|
||||
if (!url) url = e.target.src
|
||||
}
|
||||
document.getElementById("desktop-expanded-image").src = url.replace("200w_d.webp", "giphy.webp");
|
||||
document.getElementById("desktop-expanded-image-wrap-link").href = url.replace("200w_d.webp", "giphy.webp");
|
||||
document.getElementById("desktop-expanded-image").src = url.replace("200w.webp", "giphy.webp");
|
||||
document.getElementById("desktop-expanded-image-wrap-link").href = url.replace("200w.webp", "giphy.webp");
|
||||
|
||||
bootstrap.Modal.getOrCreateInstance(document.getElementById('expandImageModal')).show();
|
||||
};
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -472,8 +472,8 @@ def normalize_url(url):
|
|||
.replace("https://nitter.net/", "https://twitter.com/") \
|
||||
.replace("https://nitter.42l.fr/", "https://twitter.com/") \
|
||||
.replace("https://nitter.lacontrevoie.fr/", "https://twitter.com/") \
|
||||
.replace("/giphy.gif", "/200w_d.webp") \
|
||||
.replace("/giphy.webp", "/200w_d.webp") \
|
||||
.replace("/giphy.gif", "/200w.webp") \
|
||||
.replace("/giphy.webp", "/200w.webp") \
|
||||
|
||||
url = imgur_regex.sub(r'\1_d.webp?maxwidth=9999&fidelity=grand', url)
|
||||
url = giphy_regex.sub(r'\1.webp', url)
|
||||
|
|
Loading…
Reference in New Issue