Developer test fixture
Run your installed Overly Detailed userscript through a
deliberately challenging gauntlet of <details> use cases.
Expected result
Auto-open ON: Every test section should be open by the time the page settles.
Auto-open OFF + reload: Only the intentionally pre-opened section should start open.
Quick check: Reload with Auto-open ON. If any test stays closed, something's up. 🧐
When opening this page as a local file, your userscript manager may need
permission to access file:// URLs.
Nothing unusual. This is the case the original v1 script handled: one accordion, no funny business.
Two in a row, so a partial sweep can't leave one behind. We believe in the buddy system.
Already open before the script runs. It should remain that way. No closing what was already revealed.
Opening the parent should not be the only thing that happens.
Yo dawg, I heard you like details, so I put details in your details!
If this is open too, nesting is handled properly, and you have reached Enlightenment*.
*NOTE: Enlightenment not guaranteed.
One section appears on a timer, well after the script has finished its first pass. Arriving in 2 seconds.
The real test of the watcher. The first button appends a bare
<details> element. The second appends an ordinary
wrapper containing nested sections. Everything should open by itself.
Close the section below by hand, then use either button above.
It should stay closed. A script watching the open attribute
would reopen it instead.
Still closed? Good. This script respects boundaries.
These checks use the commands available from your userscript manager's menu.
Native <details name> grouping
permits only one section to remain open at a time.
If all-details mode works, I should remain visible.
I normally close Section 1 when opened.
All three should be visible when Overly Detailed overrides the accordion.
Restore check: Choose Close all details on this page, then open Section 1 followed by Section 2. Section 1 should close automatically, confirming that the original exclusive grouping was restored.
Both advertised features at once. The group arrives inside a wrapper after the page has settled, so the watcher is handed the wrapper rather than the sections and has to free each one on the way down. All three should turn up open.
Each press builds a separate group, so a second press is also a check that two neutralized accordions don't collapse into one.
Restore check: The same as TEST 07, on a group that was never in the original markup. After Close all details on this page, each added group should go back to opening one section at a time, independently of the others.