Skip to content

Commit

Permalink
fix not loading
Browse files Browse the repository at this point in the history
  • Loading branch information
dimdenGD committed Nov 19, 2024
1 parent f96b136 commit 1306a04
Show file tree
Hide file tree
Showing 2 changed files with 8 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.3",
"version": "4.0.4",
"manifest_version": 3,
"homepage_url": "https://github.com/dimdenGD/OldTweetDeck",
"permissions": [
Expand Down
7 changes: 7 additions & 0 deletions src/interception.js
Original file line number Diff line number Diff line change
Expand Up @@ -1823,6 +1823,13 @@ const proxyRoutes = [
{
path: "/1.1/account/verify_credentials.json",
method: "GET",
beforeSendHeaders: (xhr) => {
xhr.modReqHeaders["Content-Type"] = "application/json";
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"];
},
afterRequest: (xhr) => {
try {
let data = JSON.parse(xhr.responseText);
Expand Down

0 comments on commit 1306a04

Please sign in to comment.