Snippets
OUTDATED
The information on the following page is outdated for the upcoming v4.0.0 release of Schooltape.
Public Snippets
- Append your snippet to the bottom of
SNIPPET_INFOinsrc/utils/constants.tstsexport 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
snippetsinsrc/utils/storage.tstsexport const snippetSettings = storage.defineItem<Types.SnippetSettings>("local:snippetSettings", { // .. defaultValue: { // .. snippets: { hidePfp: { toggle: true, }, // .. <yourSnippetName>: { toggle: false, }, }, }, }); - Create a new file in
src/public/snippetswith the name<yourSnippetName>.css - Put in your CSS code and test it!
User Snippets
Snippets can also be added manually by the user. 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