This commit restructures the categorization of network security-related scripts to improve clarity and align with user expectations. It involves renaming and reorganizing categories to more accurately reflect their functions beyond just IIS configurations. This reorganization helps users find and utilize network security scripts more efficiently and ensures that the categorization accurately reflects the broader application of the scripts beyond server configurations. Changes: - Merge network security enhancements under a single category. - Rename categories for simplicity and increased technical accuracy. - Flatten nested categories to streamline navigation and enhance clarity. - Update documentation to match the new category structures. - Revise script recommendations to encourage broader use. - Fix revert codes of some related scripts to reflect default OS settings.
2.8 KiB
2.8 KiB
privacy.sexy Script Guidelines
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.
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:
DisableoverTurn off,Stop,PreventConfigureoverSet upClearoverErase,CleanMinimizeoverLimit,ReduceMaximizeoverExtend,Delay,Postpone,ProlongRemoveoverUninstallImproveoverIncrease
- Structure your phrases for clarity, examples:
- Prefer
Disable XX telemetryoverDisable telemetry in XX - Prefer
Clear XX dataoverClear data from XX, orClear data of XX.
- Prefer
- Use sentence case rather than Title Case.
Documentation
- 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.
Shared functions
Use existing shared functions when possible, like DisableService for disabling services,.
- 📖 Learn about templates in templating.md.
- 📖 For syntax, see collection-files.md.
Code
- 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.