Skip to content

Commit

Permalink
Merge pull request #1114 from Kiradien/patch-1
Browse files Browse the repository at this point in the history
Fix #1112 - Fixed QQ image redirect issue
  • Loading branch information
dteviot authored Nov 14, 2023
2 parents 764ec99 + 279560c commit 2770f49
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugin/js/parsers/QuestionableQuestingParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ class QuestionableQuestingParser extends Parser{
if (i.src !== dataUrl ) {
i.src = dataUrl;
}

if (i.src.indexOf("/threads/") < 40) //Simple check to see if early proxy link is misdirected through thread uri.
{
i.src = i.src.replace(/https:\/\/questionablequesting\.com\/threads\/[\w\-\d.]+?\/proxy\.php\?/i, "https://questionablequesting.com/proxy.php?");
}
}
}

Expand Down

0 comments on commit 2770f49

Please sign in to comment.