15 Commits

Author SHA1 Message Date
ranger 5510cebde1 feat(v0.5.0-prep): light mode support across all three surfaces
Implements the v0.4.0-plan-noted light mode using `@media
(prefers-color-scheme: light)` blocks that override the :root CSS
variables. The extension now auto-follows the user's OS theme —
no toggle, no setting, no preference UI required (Phase 2 toggle
deferred to a later release if anyone asks for it).

Light-mode palette preserves brand identity:
  --bg          #f6f4ed   cream-leaning off-white
  --bg-soft     #ece5d2   header / footer bars
  --bg-row      #ddd6c0   hover backgrounds
  --bg-row-hi   #c8c0a8   active rows
  --fg          #2a2f28   dark forest-green-leaning text
  --fg-muted    #6a7064   secondary text
  --accent      #2a7d3e   darker brand green (primary on light)
  --accent-dim  #6dbf7a   lighter brand green (secondary)
  --cream       #b8861a   darker amber — readable on light bg
  --danger      #b53a2b   darker red — readable on light bg

Every existing CSS rule using var(--*) tokens carries over unchanged.
The only surface-specific overrides are:

- State pills (popup + newtab) — text colour flips to white when
  the background becomes solid accent/cream/danger
- Primary play button (pressed state) — text colour flips
- Helmet watermark on NewTab — opacity bumped 0.025 → 0.04 via a
  new --watermark-opacity var since the helmet contrasts differently
  against the lighter background
- Toast (Options) — text colour flips to white on solid bg
- Danger button hover (Options) — text colour flips to white

Total: 3 files, +98 lines, 1 line modified.

Bundled with the v0.4.1-prep back-link fix already merged into this
branch. Together: a complete UX polish release (first-run hint shipped
in v0.4.0 plus back-link plus light mode = v0.5.0).
2026-06-09 23:54:09 +01:00
ranger eb6901f722 Merge v0.4.1-prep — Options page back-link to Tuner UI 2026-06-09 23:51:11 +01:00
ranger 41f42f1048 feat(v0.4.1-prep): back link from Options page to Tuner main UI
David flagged 2026-06-09 night: 'when i click the settings button i
go to settings but we have no back link to radio'. Real UX gap —
Options was a one-way trip. The popup auto-closes on launch and the
NewTab is in a different tab, so there was no obvious way back.

Fix: the existing brand header (helmet + 'RangerHQ Tuner — Options'
title) is now a single anchor pointing at newtab.html. Adds a small ←
glyph to the left of the helmet that hover-shifts left + colour-shifts
to accent green for a clear back-affordance.

Same-tab navigation (just an href, no chrome.tabs.create) so the user
doesn't accumulate Tuner tabs. They came IN via Options, they go OUT
into the player UI in the same tab.

Aria: the ← is hidden from screen readers (decorative); the title
attribute on the anchor gives the accessible label.

2 files, +24 lines, 4 lines modified in existing .opt-brand block.

Branch: v0.4.1-prep — not for immediate ship since v0.4.0 is still
in Web Store re-review. Bundle this with light-mode + other polish
into v0.5.0 OR ship as quick v0.4.1 patch after v0.4.0 clears.
2026-06-09 23:42:42 +01:00
ranger f796fe8223 chore: v0.4.0 — bump version + CHANGELOG entry
manifest.json version 0.3.0 → 0.4.0. CHANGELOG.md entry for v0.4.0
documents the first-run UX hint feature (merged in b82f14e via
v0.4.0-prep branch). Zero new permissions, zero new dependencies,
zero behaviour change for existing users.

Shipped the same day v0.3.0 went LIVE on Chrome Web Store
(~15.5h after submission). Same-account update review window is
~24-48h per the reference_chrome_web_store_rules memory.
2026-06-09 22:15:17 +01:00
ranger afaff271a4 Merge v0.4.0-prep — first-run UX hint 2026-06-09 22:14:15 +01:00
ranger b82f14ee7b feat(v0.4.0-prep): first-run UX hint — pulse + bouncing arrow
The 'pick a station to begin' state was too subtle on first install
(David's own 30-second panic moment when he uninstalled the dev build
and reinstalled from the Web Store, 2026-06-09 evening).

Two layered cues, both pure CSS driven by a body.is-first-run class:

1. Subtle accent-green glow pulses around:
   - popup: the station list section
   - newtab: the Quick Stations chip row
   (rgba alpha 0.18-0.25, 2.4s ease-in-out infinite — visible but not noisy)

2. Bouncing ↓ arrow appended to the 'Pick a station to begin' text in
   both surfaces (after-pseudo with translateY animation).

The is-first-run class is toggled in popup.js + newtab.js via a new
reflectFirstRunHint() function called from:
  - init() once stations + currentStation are resolved
  - onPickStation() the moment a user picks
  - the chrome.storage.onChanged listener when another surface picks
    (so the hint disappears on both surfaces simultaneously)

Existing users with stored currentStationId never see either cue —
the class only attaches when currentStation is null.

Working on branch v0.4.0-prep so the live main (= what shipped to
Web Store v0.3.0) is unchanged. Merge to main when ready to bump the
manifest version + readme.txt + CHANGELOG.md for v0.4.0 release.
2026-06-09 22:05:55 +01:00
ranger 9695d9d341 🎉 RangerHQ Tuner v0.3.0 LIVE on Chrome Web Store
Approved + published 2026-06-09 ~17:08 Dublin, ~15.5 hours after
submission. Extension ID bmdmepddehnpbdffkblbjofgkllmpkgp. Install URL:
https://chromewebstore.google.com/detail/bmdmepddehnpbdffkblbjofgkllmpkgp

- Replaced static 'in review' badge with three LIVE auto-updating
  Chrome Web Store badges (version, users count, rating)
- Added install-link callout above the description
2026-06-09 17:14:32 +01:00
ranger 3259ece909 docs(readme): add shields.io badge row (v0.3.0 + Manifest V3 + last-commit + license + no-telemetry + Dublin) 2026-06-09 02:36:29 +01:00
ranger 24cbfbe746 chore: remove WEB_STORE_SUBMISSION.md from public repo
Internal submission notes — paste copy for the Chrome Web Store
Dashboard plus reviewer-targeted permission justifications. No
reason for random repo visitors to read it.

Local file stays on disk for quick-reference during future
updates; .gitignore prevents accidental re-add.
2026-06-09 01:22:38 +01:00
ranger 6f06ea73d1 docs: 1000-char Single Purpose + permission justifications
David's first-pass through the Dashboard revealed that the
Single Purpose field, and each permission justification field,
have a 1000-char cap (not the much smaller cap I had assumed
from looking at older Web Store docs). Rewrote each to use
roughly 900 chars of the budget — gives reviewers the technical
detail they need to verify the code matches the claims.

- Single Purpose (970 chars) — 3 numbered things the extension does,
  what it explicitly does not do (no SDK, no analytics, no remote).
- offscreen (976 chars) — why MV3 needs offscreen for audio, with
  the developer.chrome.com pointer for the reviewer to verify.
- storage (867 chars) — per-key inventory + Options-page wipe path
  + privacy policy URL for cross-reference.
- somafm.com host (910 chars) — exact endpoints listed, what we
  do NOT send with the requests, SomaFM's community-friendly stance.
- Added: 'I am not using remote code' note for the cert checkbox.
2026-06-09 01:15:28 +01:00
ranger f56649073d docs(store): add 128x128 store-listing icon
Dedicated Web Store listing icon, separate from the manifest icons
in the .zip. Same source helmet (src/assets/img/ranger.png) but
resized tighter to 116x116 with 6px breathing room on a #1a221c
square — reads better at listing thumbnail size than the toolbar
icon's heavier padding.
2026-06-09 01:05:31 +01:00
ranger 484191a974 fix: trim manifest description to 124 chars (Chrome Web Store 132 cap)
The Chrome Web Store enforces a 132-character limit on the manifest
description field. The v0.3.0 description was 195 chars and got
rejected on upload. Trimmed to the same wording as the listing short
description in WEB_STORE_SUBMISSION.md §2.

The longer 1500-char marketing description still lives in §3 of the
submission notes and goes in the Dashboard's 'Detailed description'
field at listing time.
2026-06-09 00:53:55 +01:00
ranger db71abe525 docs(store): add promo tile (440x280) and marquee (1400x560)
Both generated from the RangerHQ helmet logo + Arial typography on the
extension's own #0f1411 dark palette so the Dashboard preview blends
naturally with the screenshots.

- promo-tile-440x280.png: helmet anchor left, "RangerHQ Tuner" cream
  bold + "Indie radio in your toolbar" accent green + "SomaFM · No
  telemetry · GPL v2+" muted footer. Web Store requires this size for
  search/browse listing tile.
- marquee-1400x560.png: same idea scaled up. Optional asset; Google
  promotes extensions with marquees more often.

ImageMagick recipe documented in store/screenshots/README.md.
2026-06-09 00:51:18 +01:00
ranger c3e5060199 docs(store): add Chrome Web Store screenshots (4× 1280×800 PNG)
Web Store-spec screenshots for Dashboard upload, generated from
David's screen grabs taken on the live v0.3.0 build.

Screenshots (1280×800 PNG, the Chrome Web Store required size):
  1. Stations tab — DEF CON Radio + quick chips + browse list
  2. History tab — the headline 4-button-search feature with 4
     tracks already logged (Spotify / YouTube / Apple / Bandcamp)
  3. Favourites tab — starred-track persistence demo
  4. Toolbar popup — composed on a dark canvas, helmet icon
     visible in the Chrome address bar above

ImageMagick recipe:
  - NTP shots: crop bottom Chrome chrome (1378x950+0+0), resize
    to width 1280, north-anchored extent to 1280x800
  - Popup: resize to height 740, center on 1280x800 canvas
    with palette-matching #0f1411 background

Source originals archived under store/source/ for regeneration.

No code changes — extension behaviour unchanged.
2026-06-09 00:46:08 +01:00
ranger baaa5e527d docs: add LICENSE (GPL v2), PRIVACY.md, and WEB_STORE_SUBMISSION.md
Prep for Chrome Web Store first submission. No code changes — v0.3.0
behaviour unchanged.

- LICENSE — full GPL v2 text, matches RangerHQ WP family.
- PRIVACY.md — canonical privacy policy. "Collects nothing, stores
  everything locally" using Google's data-category vocabulary so the
  Dashboard Privacy Practices tab can be ticked uniformly "does not
  collect" across all 9 categories.
- WEB_STORE_SUBMISSION.md — paste-ready Dashboard copy: single-purpose
  statement, 132-char short + 1500-char detailed description, permission
  justifications for offscreen + storage + somafm.com host, build ZIP
  command, screenshot brief, post-approval update workflow.

The public version of the privacy policy will live at
davidtkeane.com/rangerhq-tuner/privacy (HTML mirror of PRIVACY.md).
2026-06-09 00:32:44 +01:00
24 changed files with 776 additions and 11 deletions
+6
View File
@@ -7,3 +7,9 @@ dist/
# so it lives outside git and gets backed up separately. # so it lives outside git and gets backed up separately.
*.crx *.crx
*.pem *.pem
# Internal submission notes — paste copy for the Chrome Web Store
# Dashboard. Lives locally so we can quick-reference it during
# updates, but not for the public repo (random visitors don't need
# to see internal listing copy or reviewer-targeted justifications).
WEB_STORE_SUBMISSION.md
+54 -5
View File
@@ -7,11 +7,60 @@ Format: [Keep a Changelog 1.1.0](https://keepachangelog.com/en/1.1.0/) — versi
## [Unreleased] ## [Unreleased]
### Planned — Tier 3 (Chrome Web Store submission) ### Planned — Tier 2 polish (next)
- Listing assets: 1280x800 screenshots, 440x280 promo tile - Light mode support (`prefers-color-scheme` + flipped palette across popup / NewTab / Options)
- Privacy policy URL published at `davidtkeane.com/rangerhq-tuner/privacy` - `.m3u` parser alongside `.pls` to widen future-adapter compatibility
- 2-Step Verification on Google account - Station artwork lazy-load + fallback to family helmet
- $5 dev fee + submission - Better error UI for failed streams ("Stream unavailable, try another")
- `.crx` packaging instructions in README for sideload users
---
## [0.4.0] — 2026-06-09 — First-run UX hint
First post-launch update, shipped the same day v0.3.0 went LIVE on the Chrome Web Store. Pure UX polish — zero new permissions, zero new code dependencies, zero behaviour change for existing users.
### Added — Discoverable "pick a station to begin" affordance
Triggered by David's own 30-second panic on first Web Store install (uninstalled the dev build, installed from the Web Store fresh, hit Play, got nothing, then realised "ah, I need to pick a station first"). The product worked correctly — the dev build had a seeded station from hours of testing, the fresh install does not — but the 30-second panic exposed a real first-run-UX gap.
**Two layered cues, both pure CSS driven by a `body.is-first-run` class:**
1. **Subtle accent-green glow pulses** around the station list (popup) and the Quick Stations chip row (NewTab). Uses a 2.4-second `box-shadow` keyframe at low alpha (0.18-0.25) — visible but not noisy.
2. **Bouncing ↓ arrow** appended to the "Pick a station to begin" text in both surfaces. Uses an `::after` pseudo-element with a 1.8-second `translateY` keyframe.
The `is-first-run` class is toggled by a tiny `reflectFirstRunHint()` function called from:
- `init()` once stations + `currentStation` are resolved
- `onPickStation()` the moment a user picks
- the `chrome.storage.onChanged` listener when another surface picks (so the hint disappears on both surfaces simultaneously via cross-surface sync)
Existing users with a stored `tuner.currentStationId` never see either cue — the class only attaches when `currentStation` is null.
### Files touched
- `src/popup/popup.css` (+35 lines — keyframes + `.is-first-run` rules)
- `src/popup/popup.js` (+11 lines — `reflectFirstRunHint()` + 3 call sites)
- `src/newtab/newtab.css` (+36 lines — same idea, NewTab-namespaced)
- `src/newtab/newtab.js` (+10 lines — same pattern)
Total: 4 files, +92 lines, 0 deletions.
### Not changed
- No new permissions
- No new host_permissions
- No new external libraries
- No change to `manifest.json` beyond the version bump and CHANGELOG-referenced URL
- No data migration required (no storage shape change)
### Same-day context
This update ships the same day:
- v0.3.0 went LIVE on the Chrome Web Store (~17:08 Dublin, ~15.5h after submission)
- RangerHQ Radio v1.0.0 stability milestone went LIVE on WordPress.org (~21:51 Dublin)
- David received a PhD-prep signal from his Research in Computing lecturer at NCI Dublin
A solid day.
--- ---
+338
View File
@@ -0,0 +1,338 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
<https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Moe Ghoul>, 1 April 1989
Moe Ghoul, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.
+121
View File
@@ -0,0 +1,121 @@
# Privacy Policy — RangerHQ Tuner
**Effective date:** 2026-06-09
**Maintainer:** David Keane — <david@davidtkeane.com>
**Extension homepage:** https://davidtkeane.com/rangerhq-tuner
**Source code:** https://git.davidtkeane.com/ranger/rangerhq-tuner
---
## TL;DR
**RangerHQ Tuner collects no personal data. Nothing leaves your device.**
The extension stores a small amount of data in your browser's local storage on your own computer — your track history, your favourites, your last-played station, your volume preference, and a cached copy of the SomaFM station catalogue. That data never leaves your machine and is never sent to David Keane, RangerHQ, Anthropic, Google, or anyone else.
---
## Data we do not collect
Using the Chrome Web Store's standard data category vocabulary, RangerHQ Tuner does **not** collect any of the following:
| Category | Collected? |
|---|---|
| Personally identifiable information | ❌ No |
| Health information | ❌ No |
| Financial and payment information | ❌ No |
| Authentication information | ❌ No |
| Personal communications | ❌ No |
| Location | ❌ No |
| Web history | ❌ No |
| User activity | ❌ No |
| Website content | ❌ No |
No account is required. No login. No telemetry. No analytics. No third-party tracking scripts. No advertising network code.
---
## Data stored locally on your device
RangerHQ Tuner uses Chrome's `chrome.storage.local` API to persist a small amount of state across browser sessions. **All of this lives on your computer only.** It is never transmitted to any server. You can wipe it at any time from the extension's Options page.
| Key | What it holds | Why |
|---|---|---|
| `tuner.stationsCache` | A cached copy of SomaFM's public channel list | So the popup opens instantly instead of fetching the catalogue every time |
| `tuner.cachedAt` | Timestamp of the cache | To expire the cache after 6 hours |
| `tuner.currentStationId` | ID of the station you last picked | So you can resume where you left off |
| `tuner.volume` | Your last-set volume (0.01.0) | So volume persists across sessions |
| `tuner.isPlaying` | Whether playback was active | UI state sync |
| `tuner.history` | A capped log of artist + title pairs heard while playing | The History tab on the New Tab Page |
| `tuner.favourites` | Track entries you have starred | The Favourites tab |
| `tuner.historyCap` | Your chosen history-cap value (default 500) | Configurable on the Options page |
The history and favourites entries contain: artist name, track title, station display name, station ID, and a local timestamp. **They are stored in your browser only.** They are never sent to the extension author or any third party.
You can clear any of this data at any time:
- **Options page** → "Clear history", "Clear favourites", or "Clear EVERYTHING" (wipes all `tuner.*` keys).
- Or: Chrome → `chrome://extensions` → RangerHQ Tuner → Remove. Removing the extension wipes its local storage.
---
## Outbound network requests
RangerHQ Tuner contacts only one external network — **SomaFM (somafm.com)** — and only for the following purposes:
| Endpoint | Purpose | Frequency |
|---|---|---|
| `https://somafm.com/channels.json` | Fetch the public list of SomaFM stations | At most once every 6 hours |
| `https://somafm.com/{...}.pls` | Resolve the streaming URL for the station you picked | Once per station change |
| Direct stream URLs (e.g. `https://ice1.somafm.com/groovesalad-128-mp3`) | The actual audio stream | Continuous while playing |
| `https://somafm.com/songs/{id}.json` | Read the public "now playing" track for the current station | Every 25 seconds while playing |
These requests are made by your browser the same way it makes any other web request. SomaFM may log your IP address as part of routine HTTP serving — that is between you and SomaFM, the same as visiting their website. RangerHQ Tuner does not add tracking parameters, identifiers, or authentication tokens to these requests.
SomaFM is a listener-supported independent radio network. Their content policies are theirs alone: <https://somafm.com>.
---
## "Search this track" link-outs
The History and Favourites tabs offer four buttons next to each track: **Spotify**, **YouTube**, **Apple Music**, **Bandcamp**. Each is a plain HTML link (`<a href>` with `target="_blank" rel="noopener noreferrer"`) that opens the corresponding service's public search results page in a new browser tab.
RangerHQ Tuner does **not** embed any third-party SDK, player, tracker, or analytics code. The extension does not communicate with Spotify, YouTube, Apple Music, or Bandcamp servers in any way. When you click one of the buttons, you are simply navigating to a public search URL. Anything that happens after that is between you, your browser, and the destination site.
---
## Permissions and why we ask for them
| Permission | Why RangerHQ Tuner needs it |
|---|---|
| `offscreen` | Manifest V3 service workers cannot host an `<audio>` element. The `chrome.offscreen` API lets us create a hidden DOM document that holds the audio player. No user data is collected through this. |
| `storage` | Persist your settings, last station, volume, history, and favourites in `chrome.storage.local` on your own device. |
| Host: `https://somafm.com/*` and `https://*.somafm.com/*` | Fetch the public station catalogue, playlist files, stream URLs, and now-playing metadata from SomaFM. No authentication is used, no user data is sent. |
We do not request `tabs`, `activeTab`, `<all_urls>`, `webRequest`, `cookies`, or any other broad permission.
---
## Children's privacy
RangerHQ Tuner is a general-purpose audio player and does not knowingly process data of children under 13. It collects nothing about anyone of any age.
---
## Changes to this policy
If this policy ever changes in a material way, the effective date at the top will be updated and the change will be reflected in `CHANGELOG.md` in the project's public repository (linked above). Because RangerHQ Tuner does not collect personal data, material privacy changes would generally only happen if the architecture itself changes — which is unlikely.
---
## Contact
For questions about this policy or the extension's data handling:
- **Email:** <david@davidtkeane.com>
- **Issues / source:** <https://git.davidtkeane.com/ranger/rangerhq-tuner>
- **Author:** David Keane, Dublin, Ireland
---
*This policy is published under GPL v2 or later, the same licence as the extension itself. Verbatim copies and adaptations are permitted.*
+11
View File
@@ -1,5 +1,16 @@
# RangerHQ Tuner # RangerHQ Tuner
[![Chrome Web Store version](https://img.shields.io/chrome-web-store/v/bmdmepddehnpbdffkblbjofgkllmpkgp?style=flat-square&logo=googlechrome&logoColor=white&color=6dbf7a&label=chrome%20web%20store)](https://chromewebstore.google.com/detail/bmdmepddehnpbdffkblbjofgkllmpkgp)
[![users](https://img.shields.io/chrome-web-store/users/bmdmepddehnpbdffkblbjofgkllmpkgp?style=flat-square&logo=googlechrome&logoColor=white&color=2a7d3e)](https://chromewebstore.google.com/detail/bmdmepddehnpbdffkblbjofgkllmpkgp)
[![rating](https://img.shields.io/chrome-web-store/rating/bmdmepddehnpbdffkblbjofgkllmpkgp?style=flat-square&color=6dbf7a)](https://chromewebstore.google.com/detail/bmdmepddehnpbdffkblbjofgkllmpkgp/reviews)
[![license](https://img.shields.io/badge/license-GPL%20v2%2B-2a7d3e?style=flat-square)](LICENSE)
[![manifest V3](https://img.shields.io/badge/manifest-V3-orange?style=flat-square&logo=googlechrome&logoColor=white)](manifest.json)
[![last commit](https://img.shields.io/gitea/last-commit/ranger/rangerhq-tuner?gitea_url=https%3A%2F%2Fgit.davidtkeane.com&style=flat-square&color=6dbf7a)](https://git.davidtkeane.com/ranger/rangerhq-tuner/commits/branch/main)
[![no telemetry](https://img.shields.io/badge/telemetry-none-6dbf7a?style=flat-square)](PRIVACY.md)
[![made in Dublin](https://img.shields.io/badge/made%20in-Dublin%2C%20Ireland-2a7d3e?style=flat-square)](https://davidtkeane.com)
**🎉 [Install from the Chrome Web Store →](https://chromewebstore.google.com/detail/bmdmepddehnpbdffkblbjofgkllmpkgp)**
Lightweight indie internet radio player for Chrome. Plays SomaFM in any browser tab. Manifest V3, vanilla JS, no telemetry. Lightweight indie internet radio player for Chrome. Plays SomaFM in any browser tab. Manifest V3, vanilla JS, no telemetry.
Sibling to [rangerhq-radio](https://git.davidtkeane.com/ranger/rangerhq-radio) (the WordPress version). Sibling to [rangerhq-radio](https://git.davidtkeane.com/ranger/rangerhq-radio) (the WordPress version).
+2 -2
View File
@@ -1,8 +1,8 @@
{ {
"manifest_version": 3, "manifest_version": 3,
"name": "RangerHQ Tuner", "name": "RangerHQ Tuner",
"version": "0.3.0", "version": "0.4.0",
"description": "Lightweight indie internet radio player. Plays SomaFM in your toolbar, logs the tracks you hear, and gives you one-click search links to Spotify, YouTube, Apple Music, and Bandcamp. No telemetry.", "description": "Lightweight SomaFM radio player. Logs what plays. One-click search to Spotify, YouTube, Apple Music, Bandcamp. No telemetry.",
"author": "David Keane", "author": "David Keane",
"homepage_url": "https://davidtkeane.com/rangerhq-tuner", "homepage_url": "https://davidtkeane.com/rangerhq-tuner",
"icons": { "icons": {
+66 -1
View File
@@ -17,6 +17,35 @@
--danger: #c9685b; --danger: #c9685b;
--radius: 8px; --radius: 8px;
--maxw: 760px; --maxw: 760px;
--watermark-opacity: 0.025;
}
/* ──────────────────────────────────────────────────────────────────────
Light mode (v0.5.0) — auto-follows OS theme. Same approach as popup:
override :root vars so every existing rule using var(--*) keeps
working unchanged. Watermark opacity bumped slightly since the
helmet contrasts more against light bg.
────────────────────────────────────────────────────────────────────── */
@media (prefers-color-scheme: light) {
:root {
--bg: #f6f4ed;
--bg-soft: #ece5d2;
--bg-row: #ddd6c0;
--bg-row-hi: #c8c0a8;
--fg: #2a2f28;
--fg-muted: #6a7064;
--accent: #2a7d3e;
--accent-dim: #6dbf7a;
--cream: #b8861a;
--danger: #b53a2b;
--watermark-opacity: 0.04;
}
/* State pills — keep them readable when their background is solid */
.nt-state-pill[data-state="playing"] { color: #fff; }
.nt-state-pill[data-state="buffering"] { color: #fff; }
.nt-state-pill[data-state="error"] { color: #fff; }
.nt-btn--primary[aria-pressed="true"] { color: #fff; }
} }
* { box-sizing: border-box; } * { box-sizing: border-box; }
@@ -40,7 +69,7 @@ body::before {
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center; background-position: center;
background-size: min(60vh, 600px); background-size: min(60vh, 600px);
opacity: 0.025; opacity: var(--watermark-opacity);
pointer-events: none; pointer-events: none;
z-index: 0; z-index: 0;
} }
@@ -585,3 +614,39 @@ body::before {
.nt-station { font-size: 22px; } .nt-station { font-size: 22px; }
.nt-station-list { max-height: 220px; } .nt-station-list { max-height: 220px; }
} }
/* ──────────────────────────────────────────────────────────────────────
First-run UX hint (v0.4.0)
Subtle accent-green pulse around the Quick Stations row + a bouncing
↓ arrow on the now-playing area. Both disappear the moment a station
is picked. Existing users never see them.
────────────────────────────────────────────────────────────────────── */
@keyframes nt-pulse-glow {
0%, 100% { box-shadow: 0 0 0 0 rgba(109, 191, 122, 0); }
50% { box-shadow: 0 0 0 6px rgba(109, 191, 122, 0.18); }
}
@keyframes nt-bounce {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(4px); }
}
body.is-first-run .nt-quick {
animation: nt-pulse-glow 2.4s ease-in-out infinite;
border-radius: var(--radius);
padding: 14px;
margin: 0 -14px;
}
body.is-first-run .nt-track {
color: var(--accent);
font-weight: 500;
}
body.is-first-run .nt-track::after {
content: " ↓";
display: inline-block;
animation: nt-bounce 1.8s ease-in-out infinite;
margin-left: 6px;
}
+10
View File
@@ -108,6 +108,7 @@ async function init() {
const currentId = stored[STORAGE_KEYS.currentId]; const currentId = stored[STORAGE_KEYS.currentId];
currentStation = stations.find(s => s.id === currentId) || null; currentStation = stations.find(s => s.id === currentId) || null;
reflectFirstRunHint();
renderNow(); renderNow();
renderQuick(); renderQuick();
renderList(); renderList();
@@ -184,6 +185,7 @@ async function init() {
const newId = changes[STORAGE_KEYS.currentId].newValue; const newId = changes[STORAGE_KEYS.currentId].newValue;
currentStation = stations.find(s => s.id === newId) || null; currentStation = stations.find(s => s.id === newId) || null;
els.play.disabled = !currentStation; els.play.disabled = !currentStation;
reflectFirstRunHint();
renderNow(); renderNow();
renderQuick(); renderQuick();
renderList(); renderList();
@@ -317,6 +319,7 @@ function renderList() {
async function onPickStation(station) { async function onPickStation(station) {
currentStation = station; currentStation = station;
els.play.disabled = false; els.play.disabled = false;
reflectFirstRunHint();
await chrome.storage.local.set({ [STORAGE_KEYS.currentId]: station.id }); await chrome.storage.local.set({ [STORAGE_KEYS.currentId]: station.id });
renderNow(); renderNow();
renderQuick(); renderQuick();
@@ -364,6 +367,13 @@ async function onVolume() {
/* ---------- Helpers ---------- */ /* ---------- Helpers ---------- */
// v0.4.0 first-run UX hint — body class drives the pulse + arrow CSS in
// newtab.css. Active when no station has been picked yet; cleared the
// moment one is selected (here or via cross-surface storage sync).
function reflectFirstRunHint() {
document.body.classList.toggle('is-first-run', !currentStation);
}
function reflectPlayButton() { function reflectPlayButton() {
els.play.setAttribute('aria-pressed', playing ? 'true' : 'false'); els.play.setAttribute('aria-pressed', playing ? 'true' : 'false');
els.play.textContent = playing ? '❚❚ Pause' : '▶ Play'; els.play.textContent = playing ? '❚❚ Pause' : '▶ Play';
+51 -1
View File
@@ -16,6 +16,34 @@
--radius: 6px; --radius: 6px;
} }
/* ──────────────────────────────────────────────────────────────────────
Light mode (v0.5.0) — auto-follows OS theme. Same approach as popup
+ newtab: flip the :root vars only. Existing rules using var(--*)
carry over unchanged. Toast text + danger-button hover adjusted for
light-bg readability.
────────────────────────────────────────────────────────────────────── */
@media (prefers-color-scheme: light) {
:root {
--bg: #f6f4ed;
--bg-soft: #ece5d2;
--bg-row: #ddd6c0;
--bg-row-hi: #c8c0a8;
--fg: #2a2f28;
--fg-muted: #6a7064;
--accent: #2a7d3e;
--accent-dim: #6dbf7a;
--cream: #b8861a;
--danger: #b53a2b;
}
/* Toast — keep readable when its background is solid accent / danger */
.opt-toast { color: #fff; }
.opt-toast[data-tone="error"] { color: #fff; }
/* Danger button hover — text flips to white when bg goes red */
.opt-btn--danger:hover { color: #fff; }
}
* { box-sizing: border-box; } * { box-sizing: border-box; }
html, body { html, body {
@@ -40,7 +68,29 @@ html, body {
.opt-brand { .opt-brand {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 12px; gap: 10px;
text-decoration: none;
color: inherit;
padding: 4px 8px;
margin: -4px -8px;
border-radius: var(--radius);
}
.opt-brand:hover {
background: var(--bg-row);
}
.opt-brand:hover .opt-back {
color: var(--accent);
transform: translateX(-2px);
}
.opt-back {
font-size: 18px;
color: var(--fg-muted);
line-height: 1;
font-weight: 400;
transition: color 120ms ease-out, transform 120ms ease-out;
} }
.opt-helmet { .opt-helmet {
+3 -2
View File
@@ -9,10 +9,11 @@
<body> <body>
<header class="opt-header"> <header class="opt-header">
<div class="opt-brand"> <a href="../newtab/newtab.html" class="opt-brand" title="Back to RangerHQ Tuner">
<span class="opt-back" aria-hidden="true"></span>
<img src="../assets/img/ranger.png" alt="" class="opt-helmet"> <img src="../assets/img/ranger.png" alt="" class="opt-helmet">
<h1>RangerHQ Tuner — Options</h1> <h1>RangerHQ Tuner — Options</h1>
</div> </a>
<span class="opt-version" id="opt-version">v—</span> <span class="opt-version" id="opt-version">v—</span>
</header> </header>
+67
View File
@@ -14,6 +14,38 @@
--cream: #f4e9b7; --cream: #f4e9b7;
--danger: #c9685b; --danger: #c9685b;
--radius: 6px; --radius: 6px;
/* First-run hint pulse colour (RGB tuple — alpha applied in keyframes). */
--pulse-rgb: 109, 191, 122;
}
/* ──────────────────────────────────────────────────────────────────────
Light mode (v0.5.0) — auto-follows OS theme via prefers-color-scheme.
Flips backgrounds + foregrounds to a cream-leaning palette while
preserving the brand green as the accent. Every existing rule that
uses the var(--*) tokens keeps working unchanged.
────────────────────────────────────────────────────────────────────── */
@media (prefers-color-scheme: light) {
:root {
--bg: #f6f4ed; /* cream-leaning off-white */
--bg-soft: #ece5d2; /* slightly darker for header bars */
--bg-row: #ddd6c0; /* hover background */
--bg-row-hi: #c8c0a8; /* active row background */
--fg: #2a2f28; /* dark forest-green-leaning text */
--fg-muted: #6a7064; /* muted secondary text */
--accent: #2a7d3e; /* darker brand green for primary contrast */
--accent-dim: #6dbf7a; /* lighter brand green for fills */
--cream: #b8861a; /* darker amber — readable on light bg */
--danger: #b53a2b; /* darker red — readable on light bg */
}
/* State pills — light-mode adjustments so playing/buffering states
stay readable. The "playing" green stays bright but text flips white;
"buffering" cream gets dark text since the cream is now amber. */
.tuner-state[data-state="playing"] { color: #fff; }
.tuner-state[data-state="buffering"] { color: #fff; }
.tuner-state[data-state="error"] { color: #fff; }
.btn-primary[aria-pressed="true"] { color: #fff; }
} }
* { box-sizing: border-box; } * { box-sizing: border-box; }
@@ -310,3 +342,38 @@ html, body {
.station-list::-webkit-scrollbar-track { .station-list::-webkit-scrollbar-track {
background: transparent; background: transparent;
} }
/* ──────────────────────────────────────────────────────────────────────
First-run UX hint (v0.4.0)
When body.is-first-run is set (no station picked), the station list
subtly pulses with an accent-green glow and the now-playing area gets
a bouncing ↓ arrow pointing the user at the list. Both removed the
moment a station is picked, so existing users never see them again.
────────────────────────────────────────────────────────────────────── */
@keyframes tuner-pulse-glow {
0%, 100% { box-shadow: 0 0 0 0 rgba(109, 191, 122, 0); }
50% { box-shadow: 0 0 0 4px rgba(109, 191, 122, 0.25); }
}
@keyframes tuner-bounce {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(3px); }
}
body.is-first-run .stations {
animation: tuner-pulse-glow 2.4s ease-in-out infinite;
border-radius: 6px;
}
body.is-first-run .np-track {
color: var(--accent);
font-weight: 500;
}
body.is-first-run .np-track::after {
content: " ↓";
display: inline-block;
animation: tuner-bounce 1.8s ease-in-out infinite;
margin-left: 4px;
}
+11
View File
@@ -69,6 +69,7 @@ async function init() {
// 3. Restore current station selection. // 3. Restore current station selection.
const currentId = stored[STORAGE_KEYS.currentId]; const currentId = stored[STORAGE_KEYS.currentId];
currentStation = stations.find(s => s.id === currentId) || null; currentStation = stations.find(s => s.id === currentId) || null;
reflectFirstRunHint();
renderNowPlaying(); renderNowPlaying();
// 4. Render station list. // 4. Render station list.
@@ -121,6 +122,7 @@ async function init() {
const newId = changes[STORAGE_KEYS.currentId].newValue; const newId = changes[STORAGE_KEYS.currentId].newValue;
currentStation = stations.find(s => s.id === newId) || null; currentStation = stations.find(s => s.id === newId) || null;
els.btnPlay.disabled = !currentStation; els.btnPlay.disabled = !currentStation;
reflectFirstRunHint();
renderNowPlaying(); renderNowPlaying();
renderStations(); renderStations();
} }
@@ -202,6 +204,7 @@ function renderNowPlaying() {
async function onPickStation(station) { async function onPickStation(station) {
currentStation = station; currentStation = station;
els.btnPlay.disabled = false; els.btnPlay.disabled = false;
reflectFirstRunHint();
await chrome.storage.local.set({ [STORAGE_KEYS.currentId]: station.id }); await chrome.storage.local.set({ [STORAGE_KEYS.currentId]: station.id });
renderNowPlaying(); renderNowPlaying();
renderStations(); renderStations();
@@ -256,6 +259,14 @@ function reflectPlayButton() {
els.btnPlay.textContent = playing ? '❚❚ Pause' : '▶ Play'; els.btnPlay.textContent = playing ? '❚❚ Pause' : '▶ Play';
} }
// v0.4.0 first-run UX hint — body class drives the pulse + arrow CSS in
// popup.css. Active when no station has been picked yet; cleared the
// moment a station is selected (here or in another surface via storage
// sync).
function reflectFirstRunHint() {
document.body.classList.toggle('is-first-run', !currentStation);
}
function setState(state) { function setState(state) {
els.statePill.dataset.state = state; els.statePill.dataset.state = state;
els.statePill.textContent = state; els.statePill.textContent = state;
Binary file not shown.

After

Width:  |  Height:  |  Size: 326 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

+36
View File
@@ -0,0 +1,36 @@
# Chrome Web Store screenshots — RangerHQ Tuner v0.3.0
Upload these in order at:
**Dashboard → RangerHQ Tuner → Store listing → Screenshots**
Spec met: **1280×800 PNG**, ≤ 5 images (Chrome Web Store requirement).
| # | File | What it shows | Why it earns the slot |
|---|---|---|---|
| 1 | `screenshot-1-stations.png` | The full New Tab Page on the Stations tab — clock top-right (real-time), DEF CON Radio queued, Play button, eight quick-station chips, searchable browse list of SomaFM channels. | First impression. Shows the core product immediately. |
| 2 | `screenshot-2-history.png` | The same New Tab Page on the **History** tab — 4 tracks logged with the **Spotify / YouTube / Apple / Bandcamp** search buttons per row clearly visible. | The headline feature — the single-purpose statement comes alive here. |
| 3 | `screenshot-3-favourites.png` | The **Favourites** tab with a single starred track. | Demonstrates the star-toggle persistence and the per-user favourites surface. |
| 4 | `screenshot-4-popup.png` | The **toolbar popup** in context (with the helmet icon visible in the Chrome address bar) showing the bottom nav row: **Open in tab / History / Settings**. | Anchors "where the extension lives" — the Chrome toolbar. |
## Source files
The original screen grabs (13761378 × 1155 PNGs) are archived at `../source/` and were processed with ImageMagick:
```bash
# NTP shots (1378×1156 → 1280×800)
magick main-stations.png -crop 1378x950+0+0 -resize 1280x \
-gravity north -background "#0f1411" -extent 1280x800 screenshot-1-stations.png
# Popup (367×590 → composed on 1280×800 dark canvas)
magick extension.png -resize x740 \
-gravity center -background "#0f1411" -extent 1280x800 screenshot-4-popup.png
```
Same dark base colour `#0f1411` as the popup palette, so the Dashboard preview blends naturally with the extension's own visuals.
## Optional follow-on assets (deferred)
- **Promo tile** (440×280 PNG) — required by the Web Store for the listing tile in search/browse results. Not yet produced.
- **Marquee tile** (1400×560 PNG) — optional but Google promotes extensions with marquee assets more often. Not yet produced.
Both can be generated from `../source/` plus the helmet logo at `../../src/assets/img/ranger.png` whenever ready.
Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB