Fix Twitter image URL matching
This commit is contained in:
parent
d8f4a2fa44
commit
8cbbf0f9f2
|
@ -103,7 +103,7 @@ function getBetterUrl(url) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function cleanExtension(url) {
|
function cleanExtension(url) {
|
||||||
var trailingStrings = ["?", ":orig"];
|
var trailingStrings = ["?", ":orig", ":large", ":small", ":thumb", ":medium"];
|
||||||
|
|
||||||
for(trailingString of trailingStrings) {
|
for(trailingString of trailingStrings) {
|
||||||
if(url.indexOf(trailingString) != -1) {
|
if(url.indexOf(trailingString) != -1) {
|
||||||
|
|
Loading…
Reference in New Issue