Skip to content

About

Chrome extension that restores your place on the GitHub feed: after you open a repo and press Back, it auto-clicks "More" and restores your scroll position.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Feed: Restore More on Back

Press Back on the GitHub feed and land exactly where you left off, no more re-clicking More.

Manifest V3 License

The problem

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.

What it does

  • 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

Install (unpacked)

  1. Download or clone this repo:
    git clone https://github.com/MohammadMosavat/github-feed-restore.git
  2. Open chrome://extensions (or edge://extensions, brave://extensions).
  3. Enable Developer mode.
  4. Click Load unpacked and select the project folder.

Usage

Nothing to configure:

  1. Open your GitHub feed.
  2. Scroll and click More a few times.
  3. Open a repo.
  4. Press Back. The feed reloads to the same length and scroll position.

Project structure

github-feed-restore/
├── manifest.json
├── content.js
├── icons/
│   ├── icon16.png
│   ├── icon32.png
│   ├── icon48.png
│   ├── icon128.png
│   └── make_icons.py
└── README.md

How it works

content.js runs on github.com:

  1. Listens to GitHub's Turbo navigation events.
  2. Before leaving the feed, saves scrollHeight and scrollY in sessionStorage.
  3. On a back navigation, clicks the More button in a loop until the page reaches the saved height.
  4. Scrolls to the saved position.

Troubleshooting

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.

Regenerate icons

pip install pillow
python icons/make_icons.py

Run it from the project root so the PNGs land in icons/.

Contributing

Issues and pull requests are welcome.

License

MIT

About

Chrome extension that restores your place on the GitHub feed: after you open a repo and press Back, it auto-clicks "More" and restores your scroll position.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages