Skip to content

Instantly share code, notes, and snippets.

@imjared
Created February 4, 2021 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imjared/745fa70ee6188312a50a5f012cbcae3f to your computer and use it in GitHub Desktop.
Save imjared/745fa70ee6188312a50a5f012cbcae3f to your computer and use it in GitHub Desktop.
Adds a pinned table of contents when viewing Notion. Relies on uBlock Origin filters
## Add to U
! add notion
notion.so##.notion-table_of_contents-block>div:style(overflow: scroll; overflow-x: hidden; background-color: white; position: fixed !important; top: 4rem; left: 1rem; width: 350px !important; padding: 2rem; border: 1px solid #eee; border-radius: 5px; max-height: calc(100vh - 5rem) !important; overflow: scroll;)
@imjared
Copy link
Author

imjared commented Feb 4, 2021

  1. install uBlock Origin
  2. Edit settings while on a Notion page with a table of contents (https://share.getcloudapp.com/p9u85G5Z)
  3. Add the above and save changes
  4. Refresh the Notion page

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment