https://github.com/kissaki/itch-scrollto-buy-button
A Firefox extension that adds a page action on itch.io that jumps to and highlights buy/claim buttons
https://github.com/kissaki/itch-scrollto-buy-button
firefox-addon firefox-extension firefox-webextension
Last synced: 2 months ago
JSON representation
A Firefox extension that adds a page action on itch.io that jumps to and highlights buy/claim buttons
- Host: GitHub
- URL: https://github.com/kissaki/itch-scrollto-buy-button
- Owner: Kissaki
- License: gpl-3.0
- Created: 2021-06-03T09:12:53.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-06-03T09:45:26.000Z (about 4 years ago)
- Last Synced: 2025-03-28T20:40:38.195Z (2 months ago)
- Topics: firefox-addon, firefox-extension, firefox-webextension
- Language: JavaScript
- Homepage: https://addons.mozilla.org/en-US/firefox/addon/itch-io-scroll-to-buy-button/
- Size: 31.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Itch.io Scroll To Buy/Claim Button
Adds a page action to itch.io to scroll to the buy/claim button.

Click the button to jump to the next buy/claim button. Clicking multiple times cycles through the buttons (e.g. Contribute Now, then top buy/claim button, then bottom buy/claim botton).
The button is [scrolled into view](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView) which means to the top of the window (if the page has neough vertical followup space). The button is highlighted with a red, dashed outline.

## Developer References
* [manifest.json/page_action](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/page_action)
* [JS pageAction](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/pageAction)