Skip to content

Commit

Permalink
Fixed QQ image redirect issue
Browse files Browse the repository at this point in the history
Replaced full thread path with basic path to QQ proxy.
  • Loading branch information
Kiradien authored Nov 13, 2023
1 parent 764ec99 commit 172a0cd
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 172a0cd

Please sign in to comment.