Fix HTML semantics in script run instructions

This commit corrects HTML semantic errors in browser instruction dialogs
displayed when a script is downloaded via browser.

Key changes:

- Fix HTML structure by removing `<ul>` and `<ol>` tags from `<p>`
  elements
- Replace `<code>` with `<kbd>` for keyboard inputs

Other supporting changes:

- Improve clarity readability of some instructions
- Add CSS styles for `<kbd>`
This commit is contained in:
undergroundwires
2024-10-17 14:42:15 +02:00
parent 9e8bad0084
commit 5db8c6b591
5 changed files with 99 additions and 56 deletions

View File

@@ -53,3 +53,17 @@ sup {
vertical-align: super; vertical-align: super;
font-size: $font-size-relative-smallest; font-size: $font-size-relative-smallest;
} }
kbd {
font-family: unset; // Reset the default browser styles
background-color: $color-primary-dark;
border: 1px solid $color-primary-darker;
border-radius: 0.2em;
box-shadow: inset 0 1px 0 0 $color-primary-dark, inset 0 -2px 0 0 $color-primary-darker;
font-family: $font-family-monospace;
font-size: $font-size-relative-smallest;
padding: $spacing-relative-x-small $spacing-relative-x-small;
text-align: center;
user-select: none;
white-space: nowrap;
}

View File

@@ -6,7 +6,7 @@
<article> <article>
<h3>1. The Easy Alternative</h3> <h3>1. The Easy Alternative</h3>
<p> <p>
Run your script without any manual steps by Run your script securely without any manual steps by
<a :href="downloadUrl">downloading desktop version</a> of {{ appName }} on the <a :href="downloadUrl">downloading desktop version</a> of {{ appName }} on the
{{ osName }} system you wish to configure, and then click on the Run button. This is {{ osName }} system you wish to configure, and then click on the Run button. This is
recommended for most users. recommended for most users.

View File

@@ -16,29 +16,29 @@
Open terminal. Open terminal.
<InfoTooltipInline> <InfoTooltipInline>
<p> <p>
Opening terminal changes based on the distro you run. Opening terminal changes based on the distribution you run.
</p> </p>
<p> <p>
You may search for "Terminal" in your application launcher to find it. You may search for "Terminal" in your application launcher to find it.
</p> </p>
<p> <p>
Alternatively use terminal shortcut for your distro if it has one by default: Alternatively use terminal shortcut for your distribution if it has one by default:
</p>
<ul> <ul>
<li> <li>
<code>Ctrl-Alt-T</code>: <kbd>Ctrl</kbd> + <kbd>Alt</kbd> + <kbd>T</kbd>:
Ubuntu, CentOS, Linux Mint, Elementary OS, ubermix, Kali Ubuntu, CentOS, Linux Mint, Elementary OS, ubermix, Kali
</li> </li>
<li> <li>
<code>Super-T</code>: Pop!_OS <kbd>Super</kbd> + <kbd>T</kbd>: Pop!_OS
</li> </li>
<li> <li>
<code>Alt-T</code>: Parrot OS <kbd>Alt</kbd> + <kbd>T</kbd>: Parrot OS
</li> </li>
<li> <li>
<code>Ctrl-Alt-Insert</code>: Bodhi Linux <kbd>Ctrl</kbd> + <kbd>Alt</kbd> + <kbd>Insert</kbd>: Bodhi Linux
</li> </li>
</ul> </ul>
</p>
</InfoTooltipInline> </InfoTooltipInline>
</InstructionStep> </InstructionStep>
<InstructionStep> <InstructionStep>
@@ -50,19 +50,22 @@
<CopyableCommand>cd ~/Downloads</CopyableCommand> <CopyableCommand>cd ~/Downloads</CopyableCommand>
<template #info> <template #info>
<p> <p>
Press on <code>enter/return</code> key after running the command. Press on <kbd>Enter</kbd> or <kbd>Return</kbd> key after running the command.
</p> </p>
<p> <p>
If the file is not downloaded on Downloads folder, If you didn't save the file in your <strong>Downloads</strong> folder:
change <code>Downloads</code> to path where the file is downloaded.
</p> </p>
<ol>
<li>Locate where you saved the file.</li>
<li>In the command, replace <code>Downloads</code> with the correct folder path.</li>
</ol>
<p> <p>
This command means: This command means:
</p>
<ul> <ul>
<li><code>cd</code> will change the current folder.</li> <li><code>cd</code> will change the current folder.</li>
<li><code>~</code> is the user home directory.</li> <li><code>~</code> is the user home directory.</li>
</ul> </ul>
</p>
</template> </template>
</InfoTooltipWrapper> </InfoTooltipWrapper>
</p> </p>
@@ -76,21 +79,23 @@
<CopyableCommand>chmod +x {{ filename }}</CopyableCommand> <CopyableCommand>chmod +x {{ filename }}</CopyableCommand>
<template #info> <template #info>
<p> <p>
Press on <code>enter/return</code> key after running the command. Press on <kbd>Enter</kbd> or <kbd>Return</kbd> key after running the command.
</p> </p>
<p> <p>
It will make the file executable. It will make the file executable.
</p> </p>
<p> <p>
If you use desktop environment you can alternatively (instead of running the command): Alternatively, if you're using a graphical desktop environment, you can do this
without the command line:
</p>
<ol> <ol>
<li>Locate the file using your file manager.</li> <li>Locate the file using your file manager.</li>
<li>Right click on the file, select "Properties".</li> <li>Right click on the file, select <strong>Properties</strong>.</li>
<li>Go to "Permissions" and check "Allow executing file as program".</li> <li>Go to <strong>Permissions</strong>.</li>
<li>Check <strong>Allow executing file as program</strong>.</li>
</ol> </ol>
</p>
<p> <p>
These GUI steps and name of options may change depending on your file manager.' These GUI steps and name of options may change depending on your file manager.
</p> </p>
</template> </template>
</InfoTooltipWrapper> </InfoTooltipWrapper>
@@ -110,7 +115,8 @@
</p> </p>
<ol> <ol>
<li>Locate the file using your file manager.</li> <li>Locate the file using your file manager.</li>
<li>Right click on the file, select "Run as program".</li> <li>Right click on the file.</li>
<li>Select <strong>Run as program</strong> or similar option.</li>
</ol> </ol>
</template> </template>
</InfoTooltipWrapper> </InfoTooltipWrapper>
@@ -124,10 +130,10 @@
registered, so keep typing. registered, so keep typing.
</p> </p>
<p> <p>
Press on <code>enter/return</code> key after typing your password. Press the <kbd>Enter</kbd> or <kbd>Return</kbd> key after typing your password.
</p> </p>
<p> <p>
Administrator privileges are required to configure OS. Administrator privileges are required for configurations.
</p> </p>
</InfoTooltipInline> </InfoTooltipInline>
</InstructionStep> </InstructionStep>

View File

@@ -13,9 +13,28 @@
</InfoTooltipInline> </InfoTooltipInline>
</InstructionStep> </InstructionStep>
<InstructionStep> <InstructionStep>
Open terminal. Open your terminal.
<InfoTooltipInline> <InfoTooltipInline>
Type Terminal into Spotlight or open it from the Applications -> Utilities folder. <p>There are two easy ways to open the default terminal on your Mac:</p>
<ol>
<li>
Using macOS search (<strong>Spotlight</strong>):
<ul>
<li>Press <kbd>Cmd</kbd> + <kbd>Space</kbd> to open <strong>Spotlight</strong>.</li>
<li>
Type <strong>Terminal</strong> and press <kbd>Enter</kbd> or <kbd>Return</kbd>.
</li>
</ul>
</li>
<li>
Using <strong>Finder</strong>:
<ul>
<li>Open <strong>Finder</strong>.</li>
<li>Go to <strong>Applications</strong> <strong>Utilities</strong>.</li>
<li>Double-click on <strong>Terminal</strong>.</li>
</ul>
</li>
</ol>
</InfoTooltipInline> </InfoTooltipInline>
</InstructionStep> </InstructionStep>
<InstructionStep> <InstructionStep>
@@ -27,19 +46,22 @@
<CopyableCommand>cd ~/Downloads</CopyableCommand> <CopyableCommand>cd ~/Downloads</CopyableCommand>
<template #info> <template #info>
<p> <p>
Press on <code>enter/return</code> key after running the command. Press on <kbd>Enter</kbd> or <kbd>Return</kbd> key after running the command.
</p> </p>
<p> <p>
If the file is not downloaded on Downloads folder, If you didn't save the file in your <strong>Downloads</strong> folder:
change <code>Downloads</code> to path where the file is downloaded.
</p> </p>
<ol>
<li>Locate where you saved the file.</li>
<li>In the command, replace <code>Downloads</code> with the correct folder path.</li>
</ol>
<p> <p>
This command means: This command means:
</p>
<ul> <ul>
<li><code>cd</code> will change the current folder.</li> <li><code>cd</code> will change the current folder.</li>
<li><code>~</code> is the user home directory.</li> <li><code>~</code> is the user home directory.</li>
</ul> </ul>
</p>
</template> </template>
</InfoTooltipWrapper> </InfoTooltipWrapper>
</p> </p>
@@ -53,7 +75,7 @@
<CopyableCommand>chmod +x {{ filename }}</CopyableCommand> <CopyableCommand>chmod +x {{ filename }}</CopyableCommand>
<template #info> <template #info>
<p> <p>
Press on <code>enter/return</code> key after running the command. Press on <kbd>Enter</kbd> or <kbd>Return</kbd> key after running the command.
</p> </p>
<p> <p>
It will make the file executable. It will make the file executable.
@@ -83,10 +105,10 @@
still registered, so keep typing. still registered, so keep typing.
</p> </p>
<p> <p>
Press on <code>enter/return</code> key after typing your password. Press the <kbd>Enter</kbd> or <kbd>Return</kbd> key after typing your password.
</p> </p>
<p> <p>
Administrator privileges are required to configure OS. Administrator privileges are required for configurations.
</p> </p>
</InfoTooltipInline> </InfoTooltipInline>
</InstructionStep> </InstructionStep>

View File

@@ -36,7 +36,7 @@
</InfoTooltipInline> </InfoTooltipInline>
</InstructionStep> </InstructionStep>
<InstructionStep> <InstructionStep>
If your antivirus (e.g., Defender) alerts you, address the warning. If your antivirus (e.g., <strong>Defender</strong>) alerts you, address the warning.
<InfoTooltipInline> <InfoTooltipInline>
<!-- <!--
Tests (15/01/2023): Tests (15/01/2023):
@@ -52,7 +52,7 @@
Don't worry; privacy.sexy is secure, transparent, and open-source. Don't worry; privacy.sexy is secure, transparent, and open-source.
</p> </p>
<p> <p>
To handle false warnings in Microsoft Defender: To handle false warnings in <strong>Defender</strong>:
</p> </p>
<ol> <ol>
<li> <li>
@@ -103,21 +103,22 @@
</InfoTooltipInline> </InfoTooltipInline>
</InstructionStep> </InstructionStep>
<InstructionStep> <InstructionStep>
If prompted, confirm SmartScreen warnings. If prompted, confirm <strong>SmartScreen</strong> warnings.
<InfoTooltipInline> <InfoTooltipInline>
<p> <p>
Windows SmartScreen might display a cautionary message. <strong>Defender SmartScreen</strong> may display a cautionary message.
</p> </p>
<p> <p>
This happens since privacy.sexy scripts are not recognized This happens since privacy.sexy scripts are not recognized
by Microsoft's certification process. by Microsoft's certification process.
</p> </p>
<p> <p>
If you see the warning, bypass it by following these steps:
</p>
<ol> <ol>
<li>Select <strong>More info</strong>.</li> <li>Select <strong>More info</strong>.</li>
<li>Select <strong>Run anyway</strong>.</li> <li>Select <strong>Run anyway</strong>.</li>
</ol> </ol>
</p>
</InfoTooltipInline> </InfoTooltipInline>
</InstructionStep> </InstructionStep>
<InstructionStep> <InstructionStep>