Create a script for privacy.sexy by submitting a PR or creating an issue (details in Extend Scripts). As scripts are central to privacy.sexy and reach a global audience, their design is critical.
Key attributes of a good script:
- ✅ Well-referenced documentation.
- ✅ Utilizes shared functions.
- ✅ Has a simple name.
- Choose a title that is easy to understand for all users, regardless of technical skill, yet remains technically accurate.
- Focus on privacy implications, avoiding complex or overly technical jargon.
- Maintain consistency in naming, avoiding linguistic variations.
- Use action-oriented language for clarity and directness. Use an instruction format like "do this, do that" for clear, direct guidance.
- Respect the official casing of brand names.
- Choose clear and uncomplicated language.
- It should start with an imperative noun.
- Start with action verbs like
Clear
,Disable
,Remove
,Configure
,Minimize
,Maximize
. While exceptions exist, these prefixes help maintain naming consistency. - The scripts that modify hosts file should start with
Block ..
. - Favor the terms:
Disable
overTurn off
,Stop
,Prevent
Configure
overSet up
Clear
overErase
,Clean
Minimize
overLimit
,Reduce
Maximize
overExtend
,Delay
,Postpone
,Prolong
Remove
overUninstall
Improve
overIncrease
- Structure your phrases for clarity, examples:
- Prefer
Disable XX telemetry
overDisable telemetry in XX
- Prefer
Clear XX data
overClear data from XX
, orClear data of XX
.
- Prefer
- Use sentence case rather than Title Case.
- Use credible and reputable sources for references.
- Use archived links by using archive.org or archive.ph.
- Format archive.today links fully, for example:
https://archive.ph/YYYYMMDDhhmmss/https://privacy.sexy
.
- Format archive.today links fully, for example:
- Explain the default behavior if the script is not executed.
Use existing shared functions when possible, like DisableService
for disabling services,.
- 📖 Learn about templates in templating.md.
- 📖 For syntax, see collection-files.md.
- Prefer shared functions; avoid custom code unless necessary.
- Keep code simple and compatible with older systems.
- Focus on reliability, ensuring the script is error-resistant, works on different locales and handles unexpected situations.
- Language selection:
- Windows: Use batch when simpler, otherwise PowerShell.
- macOS/Linux: Use bash when simpler, otherwise Python.
- Provide revert code to restore original/default settings when applicable.