This repository builds a Chrome/Firefox WebExtension that adds operator, otag:, and color-query suggestions plus a visual search builder to Scryfall search pages.
- Color dropdowns
- Operator dropdowns
- OTag dropdowns
- Visual search builder
- Saved search-builder favorites synced through browser extension sync storage
Build the docs site only:
npm run build:docsBuild both extension targets and refresh docs/:
npm run buildWatch both targets:
npm run build:watchnpm run build emits:
dist/chrome/manifest.jsondist/chrome/content-script.jsdist/chrome/content.cssdist/chrome-<version>.zipdist/firefox/manifest.jsondist/firefox/content-script.jsdist/firefox/content.cssdist/firefox-<version>.zipdocs/index.htmldocs/privacy.htmldocs/styles.css
The zip archives place manifest.json, content-script.js, and content.css at the root of the archive.
The GitHub Pages files in docs/ are generated by scripts/build-docs.js using source HTML and CSS in src/docs/. docs/privacy.html is rendered from PRIVACY.md at build time.
- Run
npm run build. - Open
chrome://extensions. - Enable
Developer mode. - Click
Load unpacked. - Select
dist/chrome.
- Run
npm run build. - Open
about:debugging#/runtime/this-firefox. - Click
Load Temporary Add-on.... - Select
dist/firefox/manifest.json.
https://scryfall.com/*: runs the content script on Scryfall pages.storage: stores extension settings and saved search-builder favorites in browser extension storage.