- Главная
- Плагины
- Улучшения UI
- dsh-ig5-badge-hider
dsh-ig5-badge-hider
laurence8023/dsh-ig5-badge-hider
Hides the Infinite Gen 5 composer badge with one CSS rule, so another dock widget can take that place.
Установка
dsh plugin --profile web add github:laurence8023/dsh-ig5-badge-hiderREADME
dsh-ig5-badge-hider
Hides the composer badge that the Infinite Gen 5 plugin (dsh-infinite-gen-5) pins above the chat input box, using a single CSS rule.
The badge leaves the layout. No plugin is modified, patched, or reconfigured — this package only adds one <style> element to the page and removes it again on unload.
.ig5-badge-wrap { display: none !important; }
When this does anything
This plugin only has a visible effect when dsh-infinite-gen-5 is installed and enabled. It works by hiding that plugin's badge container, so with the upstream plugin absent there is nothing to hide.
| Your setup | What you get |
|---|---|
| Infinite Gen 5 installed | The composer badge disappears |
| Infinite Gen 5 not installed | Nothing happens, and nothing breaks — the rule simply matches no element |
| Infinite Gen 5 later uninstalled | The rule keeps matching nothing; no cleanup needed |
There is no error, no warning, and no fallback UI when the badge is absent. That is intentional: this plugin is a cosmetic rule, not a feature that needs to report its own health.
Why hide it at all
Two reasons people ask for this:
- It takes vertical space. The badge occupies a full row above the input box at all times, whether or not you use the workbench it opens.
- Some companion plugins read that row as "the input has something stacked above it." A UI plugin that shrinks or moves itself when the composer area is crowded will react to the badge permanently, because the badge is registered permanently. Hiding the badge releases that slot again.
The second case is a real and common one, but it is a side effect of how such plugins measure the layout — not something this package has any knowledge of or dependency on.
What you lose
The badge is also a shortcut that opens the Infinite Gen 5 workbench. Once the badge is hidden, that particular click target is gone.
The workbench itself is unaffected and stays reachable through whatever other entry points the upstream plugin provides — for example a sidebar panel or a conversation view tab, depending on the upstream version. If the badge is how you normally get in, check those entry points before installing.
Other things that can occupy the same row
The composer dock is a shared slot, and any plugin may register an entry in it. This package hides exactly one element — the Infinite Gen 5 badge — and nothing else. If some other plugin also puts content above the input box, that content keeps showing and your layout will still look crowded. That is expected behaviour, not a failure of this plugin.
For the same reason, a companion plugin that reacts to "something is above the input" may still react to those other registrations after you install this one.
Scope and safety
- Injects one
<style>element intodocument.head; removes it on dispose. - Uses no network, no storage, no timers, and no host-side logic — the server half is an empty
apply(). - Does not read, write, or reconfigure any other plugin's settings or state.
- No build step, no runtime dependencies, no
postinstallscript.
Uninstalling
Disable the plugin in the plugin manager and the style element is removed at once — the badge reappears without a reload. If you uninstall the package itself, restart or reload so the client bundle is no longer served.
Limitations
The rule matches a class name, .ig5-badge-wrap. If a future release of the upstream plugin renames that class, the rule stops matching and the badge silently reappears — the plugin will not warn you. If you upgrade dsh-infinite-gen-5 and the badge is back, check the class name in the current release.
The element itself is still in the DOM; only its box is gone. Because the rule uses display: none, standard CSS semantics also take it out of the accessibility tree, so screen readers do not announce it. The package relies on nothing beyond that rule.
How it works
Implementation notes — the selector, why display: none, and what the plugin deliberately does not do.
Source
Source repository: laurence8023/dsh-ig5-badge-hider.
The published package is the complete source. There is no build step and no transpilation, so client.js and index.js inside the tarball are byte-for-byte what runs in the browser and in the host process. Reading them takes a couple of minutes:
client.js— onewindow.__ModuleLoader__.load()call that injects a<style>element and removes it on dispose.index.js— an emptyapply().
See CHANGELOG.md for version history, and docs/RELEASING.md if you fork this and want to publish your own build — it notes one npm pitfall that is easy to hit.
License
Похожие плагины
dsh-web (dsh-task-board)
zhu1090093659/dsh-web
dsh-web (dsh-web-all)
zhu1090093659/dsh-web
dsh-TUI
ccch1mneyyy/dsh-tui
dsh-web-ui (dsh-task-board)
zhu1090093659/dsh-web-ui