Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)