Skip to content

Commit

Permalink
Follow FB 10/27 breaking change
Browse files Browse the repository at this point in the history
Found the function broken (still refresh) on 10/27.

Upon observation, there were 2 additional properties added to our target
module. After some experiments, found it can be fixed by also modify
`FEED_VISIBILITY_TIMEOUT`, now change it from `600000` (10 minutes).

Another new property is `FEED_MAX_QUERY_AGE_IN_SEC`, leave it unchanged.
  • Loading branch information
bootleq committed Oct 28, 2024
1 parent c8bdc63 commit 770ca79
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions facebook-no-refresh.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ const delayFeedStale = () => {

const oldValue = JSON.stringify(m);
m.FEED_STALE_TIMEOUT = gFeedStaleTimeout;
m.FEED_VISIBILITY_TIMEOUT = gFeedStaleTimeout;
// m.FEED_MAX_QUERY_AGE_IN_SEC = gFeedStaleTimeout;
m.BADGE_STALE_TIMEOUT = gFeedStaleTimeout;
log(`CometFeedStalenessConstants updated:\n ${oldValue} =>\n ${JSON.stringify(m)}.`);
} catch (error) {
Expand Down
4 changes: 4 additions & 0 deletions facebook-no-refresh.user.js.CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
CHANGES
=======

## 1.1.0 (2024-10-28)

* 跟進臉書 10/27 變動,再多處理一個屬性,否則功能會失效

## 1.0.1 (2024-06-21)

* 修正由首頁以外的頁面開始瀏覽時,沒有生效的問題
Expand Down

0 comments on commit 770ca79

Please sign in to comment.