Snippets
INFO
Please read the contribution instructions before contributing.
Public Snippets
- Append your snippet to the bottom of
SNIPPET_INFO
insrc/utils/constants.ts
tsexport const SNIPPET_INFO: Record<string, SnippetInfo> = { hidePfp: { name: "Hide PFP", description: "Hide your profile picture across Schoolbox.", order: 0, }, // .. <yourSnippetName>: { name: "<Your Snippet Name>", description: "<Your Snippet Description>", order: "<Next Order Number>", }, };
- Append your snippet to the bottom of
snippets
insrc/utils/storage.ts
tsexport const snippetSettings = storage.defineItem<Types.SnippetSettings>("local:snippetSettings", { // .. defaultValue: { // .. snippets: { hidePfp: { toggle: true, }, // .. <yourSnippetName>: { toggle: false, }, }, }, });
- Create a new file in
src/public/snippets
with the name<yourSnippetName>.css
- Put in your CSS code and test it!
User Snippets
Snippets can also be added manually by the user, allowing users to add them on a per-Schoolbox basis. Create a snippet, following this format and then share it with your friends! These snippets are able to be removed by the user after installation.
Make sure to include the css
comments
- Do not use quotation marks
- Make sure it is spelt correctly
- Leave a trailing newline character
css
/* name: Hide PFP */
/* description: Hide your profile picture across Schoolbox */
FAQ
Q: How do I install my user snippet?
A: Copy the gist URL into the input box (Schooltape popup
> Snippets
> User Snippets
> Gist URL
)
You can find and share snippets in the Schooltape Discord