Skip to content
This repository has been archived by the owner on Jun 2, 2020. It is now read-only.

Commit

Permalink
Fixed popup issue
Browse files Browse the repository at this point in the history
  • Loading branch information
zusorio committed Oct 4, 2019
1 parent 654ec9d commit 9a8153a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions background.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ function rewriteUserAgentHeader(e) {
e.requestHeaders.forEach(function (header) {
if (header.name.toLowerCase() === "user-agent") {
header.value = ua;
}else if (header.name.toLowerCase() ==="cookie") {
header.value = header.value.replace(/rweb_optin=.*?(; .*)?$/i, "rweb_optin=off$1");
}
});
return {requestHeaders: e.requestHeaders};
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Forces your browser to use old twitter.",
"manifest_version": 2,
"name": "GoodTwitter",
"version": "2.1",
"version": "2.2",

"permissions": [
"webRequest",
Expand Down

0 comments on commit 9a8153a

Please sign in to comment.