You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fregante edited this page Jun 1, 2026
·
2 revisions
Since the extension relies on GitHub's DOM structure, CSS variables, and UI conventions, any frontend change GitHub makes can break things. Silent failures let broken features go unnoticed for a long time. Loud failures surface problems during development, make them catchable in testing, and simplify debugging.
Note that "loud" generally means showing errors in the console, not causing disturbance to the user.
Since CSS variables cannot cause console errors, we default them to fuchsia or cyan so that when they go missing, people will notice and report the issue (example). This is visible but generally not obstructive.
The select-dom library is used instead of querySelector to throw specific errors in cases when the selector finds no element.
Optional chaining (?.) is blocked via lint rule because it will silently swallow any missing values, even if there's no reason for them to be missing. In its place, !. is preferred when the value is always expected to be present. If the value genuinely might be missing, a comment should explain under what scenario.