Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 21 days 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 (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-06-03T09:45:26.000Z (over 3 years ago)
- Last Synced: 2024-12-12T16:48:49.623Z (22 days 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: 0
- Watchers: 3
- 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.
![page action screenshot](screenshots/page-action.png)
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.
![highlight screenshot](screenshots/highlight.png)
## 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)