| 473 | |
| 474 | // handle unknowns in #command |
| 475 | function commandunknowns() { |
| 476 | document.querySelectorAll('#command span.unknown').forEach((el) => { |
| 477 | // add tooltips |
| 478 | if (el.classList.contains('simplecommandstart')) { |
| 479 | el.title = 'This man page seems to be missing...'; |
| 480 | |
| 481 | // only add the link to the missing man page issue if we haven't |
| 482 | // had any expansions in this group (since those might already contain |
| 483 | // links) |
| 484 | // if (!el.classList.contains('hasexpansion')) { |
| 485 | // const link = document.createElement('a'); |
| 486 | // link.textContent = el.textContent; |
| 487 | // link.href = 'https://github.com/idank/explainshell/issues/1'; |
| 488 | // el.replaceChildren(link); |
| 489 | // } |
| 490 | } else el.title = 'No matching help text found for this argument'; |
| 491 | }); |
| 492 | } |
| 493 | |
| 494 | function affixon() { |
| 495 | return document |