Press Back on the GitHub feed and land exactly where you left off, no more re-clicking More.
On the GitHub home feed you scroll, click More several times, open a repo, then press Back. The feed resets and you have to click More again to find where you were.
- Remembers how far down the feed you were (page height + scroll position)
- On Back, automatically clicks More until the feed is as long as before
- Restores your scroll position
- Resets on a fresh visit, so it never interferes with normal browsing
- No tracking, no network requests, no extra permissions
- Download or clone this repo:
git clone https://github.com/MohammadMosavat/github-feed-restore.git
- Open
chrome://extensions(oredge://extensions,brave://extensions). - Enable Developer mode.
- Click Load unpacked and select the project folder.
Nothing to configure:
- Open your GitHub feed.
- Scroll and click More a few times.
- Open a repo.
- Press Back. The feed reloads to the same length and scroll position.
github-feed-restore/
├── manifest.json
├── content.js
├── icons/
│ ├── icon16.png
│ ├── icon32.png
│ ├── icon48.png
│ ├── icon128.png
│ └── make_icons.py
└── README.md
content.js runs on github.com:
- Listens to GitHub's Turbo navigation events.
- Before leaving the feed, saves
scrollHeightandscrollYinsessionStorage. - On a back navigation, clicks the More button in a loop until the page reaches the saved height.
- Scrolls to the saved position.
If it doesn't click More, GitHub's markup may have changed. Update the selector in findMore() in content.js to match the button's current text or attributes.
pip install pillow
python icons/make_icons.pyRun it from the project root so the PNGs land in icons/.
Issues and pull requests are welcome.
MIT