Skip to content

Commit

Permalink
Merge pull request #1481 from Kiradien/AddFilter-Cookies
Browse files Browse the repository at this point in the history
Reduce http header cookie clutter
  • Loading branch information
dteviot committed Sep 13, 2024
2 parents 8babd1c + 0c064d8 commit 07c3f21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions plugin/js/HttpClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ class HttpClient {
}else{
cookies = await browser.cookies.getAll({domain: urlparts[urlparts.length-2]+"."+urlparts[urlparts.length-1],partitionKey: {}});
}
cookies = cookies.filter(item => item.partitionKey != undefined);
//create new cookies for the site without the partitionKey
//cookies without the partitionKey get sent with fetch
cookies.forEach(element => chrome.cookies.set({
Expand Down
1 change: 1 addition & 0 deletions plugin/js/parsers/SpacebattlesParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class SpacebattlesParser extends Parser{
constructor() {
super();
this.cache = new FetchCache();
this.minimumThrottle = 50; //182 at 20
}

clampSimultanousFetchSize() {
Expand Down

0 comments on commit 07c3f21

Please sign in to comment.