Skip to content

Commit

Permalink
fix profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
dimdenGD committed Aug 26, 2024
1 parent 2b64220 commit a81a108
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "OldTweetDeck",
"description": "Returns old TweetDeck, for free!",
"version": "4.0.2",
"version": "4.0.3",
"manifest_version": 3,
"homepage_url": "/~https://github.com/dimdenGD/OldTweetDeck",
"permissions": [
Expand Down
11 changes: 11 additions & 0 deletions src/interception.js
Original file line number Diff line number Diff line change
Expand Up @@ -991,6 +991,17 @@ const proxyRoutes = [
delete xhr.modReqHeaders["X-Twitter-Client-Version"];
},
},
// User profile
{
path: "/1.1/users/show.json",
method: "GET",
beforeSendHeaders: (xhr) => {
xhr.modReqHeaders["X-Twitter-Active-User"] = "yes";
xhr.modReqHeaders["X-Twitter-Client-Language"] = "en";
xhr.modReqHeaders["Authorization"] = PUBLIC_TOKENS[1];
delete xhr.modReqHeaders["X-Twitter-Client-Version"];
},
},
// Search
{
path: "/1.1/search/universal.json",
Expand Down

0 comments on commit a81a108

Please sign in to comment.