Commit Graph
5 Commits
Author SHA1 Message Date
yusufipek 3e70662ef8 Score cards and the watch panel again after the player endpoint closed
YouTube now answers the InnerTube `player` endpoint with LOGIN_REQUIRED for
requests that carry no session, and the extension deliberately sends none.
`videoDetails` therefore returned nothing for almost every video, which broke
two things at once: cards on channel pages, where YouTube omits the channel
link because you are already on the channel, and the watch page panel, which
starts every render with that same call.

`next` returns the channel id and the exact view count without a session, so
videoDetails reads from there instead. A live stream reports "watching now" in
the same field, so that text is filtered out rather than read as a view count.

Channel pages no longer need the fallback at all: the cards belong to the
channel in the address bar, so pageChannel() reads it from the URL. That also
drops one request per card.

The panel took the video length from the player response to tell Shorts apart;
`next` does not carry it, so it comes from the page's own player element.

test/check.js probed videoDetails with dQw4w9WgXcQ, which keeps answering even
on the broken endpoint and kept the suite green through all of this. It now
probes a current video from the channel it just listed, and asserts the view
count as well as the channel id.
2026-08-22 15:20:40 +03:00
yusufipek e58bd2ec42 Keep the chart tooltip inside the chart at both edges
The tooltip was clamped to a fixed 90px margin while it can grow to 260px,
so bars near the left edge pushed it outside the panel and cut the title and
view count. It now clamps against its measured width and rests against the
chart edge instead of staying centred.
2026-08-16 13:45:34 +03:00
yusufipek a07558c371 Drop the panel's caveat line and chart hint 2026-08-15 10:48:55 +03:00
yusufipek 66e6fec778 Make the distribution chart readable
Bars are HTML now instead of SVG: the SVG <title> tooltip barely showed up in
Firefox and thin bars were hard to hit. Each bar sits in a full-height hover
target, hovering shows the video's title, views and age, clicking opens it. A
legend explains the median line and the highlighted bar, and baselines now
cache titles for those tooltips.
2026-08-15 10:45:30 +03:00
yusufipek 0d5a232f08 Outlier score badge on YouTube thumbnails
Scores every card against the median views of its own channel's last N
videos, badging the thumbnail above the duration stamp. Shorts and regular
videos are scored in separate pools, live streams in none. Baselines come
from YouTube's InnerTube endpoint, one request per channel, cached a day.
Interface in English and Turkish.
2026-08-15 10:32:29 +03:00