Repository navigation
Sieve 1.5.1: version bump, release notes, and a readable notice on dark pages - #34
Merged
Merged
Conversation
"regexes past the cap are counted as skipped, not validated" asserted exactly 200 regexes accepted. KeywordPattern times each regex against a 10 ms budget, so with the whole suite running in parallel (several headless Chromes) a good regex was occasionally refused and the test failed. It now checks what it is about: the validator is called 200 times and no more, and every line is either a rule or counted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On DuckDuckGo's dark theme "Sieve hid 8 results · Show them · By site" came out dark grey on near-black. The notice inherits the results list's text colour, and DuckDuckGo colours each piece of its own text rather than the list, so the notice got the browser's default black. It still takes the page's colour, which blends in almost everywhere, but now checks its contrast against the first solid background behind it and, below 4.5:1 (it is also drawn at 80% opacity), takes an off-white or near-black of its own. Checked on every update, since a page can change theme without reloading. The SERP test adds a dark DuckDuckGo page as it really is (dark page, no colour on the list: fails on the old script) and a dark page that does colour its text (keeps it), and every light page asserts the notice keeps the page's own colour. Confirmed by eye on live dark DuckDuckGo. Every-page injection: 161,320 of the 165,000 budget. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Seventeen notes for what has shipped since 1.5.0: the Doomscroll Stopper counting time on the site rather than scrolling, its countdown, the user-added sites' pause screen, DuckDuckGo's Images and Videos tabs, subscribed lists, Hide the count, By site, the readable notice on dark pages, and YouTube's Restricted Mode. Each change was tested by hand in a browser before this. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sieve 1.5.1: the version bump and release notes, plus two small fixes found while testing the release by hand.
In this PR
aaffd0a1.5.1: version 1.5.1 in both manifests andpackage.json, and 17 release notes incommon/changelog.js(they show in Settings → What's new as Current).cf72945Readable notice on dark pages: on DuckDuckGo's dark theme, "Sieve hid N results · Show them · By site" came out dark grey on near-black. The notice inherits the results list's text colour, and DuckDuckGo colours each piece of its own text rather than the list. It now checks its contrast against the background behind it and, below 4.5:1, takes an off-white or near-black of its own. Every light page keeps the page's colour, and the SERP test covers both dark cases. Confirmed by eye on live dark DuckDuckGo.9141076Test fix: the parser's regex-cap test counted accepted regexes, whichKeywordPattern's 10 ms timing check made flaky under a busy suite. It now counts validator calls.What 1.5.1 ships (already on
main)Tested
Every change was tested by hand in Chrome, loaded unpacked from this branch: the YouTube time limit and countdown, DuckDuckGo search results, list subscriptions (including Super SEO Spam Suppressor), Restricted Mode, What's new, and the lock on each new setting. That's how the dark-page notice was found.
The full suite passes (762). The every-page injection is 161,320 bytes, within the 165,000 budget.