diff --git a/README.md b/README.md index 188d4df..34854a6 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ during installation/removal, make sure no notion processes are running! (check y **win10, macOS** 1. [install node.js](https://nodejs.org/en/download/) (_a computer restart may be required here._) -2. execute `npm i -g notion-enhancer` in the terminal/command prompt as a root/admin user. +2. execute `npm i -g notion-enhancer` in the terminal/command prompt. **debian/ubuntu, chromeOS, WSL (to modify the win10 app)** @@ -107,17 +107,52 @@ these include: **author**: [dragonwocky](https://github.com/dragonwocky/) -| option | type | default | -| ---------------------------- | --------------------------------------------------------------------------------------------- | -------------------------- | -| hide app on open | toggle | no | -| auto-maximise windows | toggle | no | -| close window to the tray | toggle | yes | -| integrated titlebar | toggle | yes | -| height of frameless dragarea | number input | `15` | -| integrated scrollbars | toggle | yes | -| window display hotkey | [accelerator](https://github.com/electron/electron/blob/master/docs/api/accelerator.md) input | `CommandOrControl+Shift+A` | +| option | type | default | +| ----------------------------- | --------------------------------------------------------------------------------------------- | -------------------------- | +| hide app on open | toggle | no | +| auto-maximise windows | toggle | no | +| close window to the tray | toggle | yes | +| integrated titlebar | toggle | yes | +| height of frameless dragarea | number input | `15` | +| tiling window manager mode | toggle | no | +| integrated scrollbars | toggle | yes | +| window display hotkey | [accelerator](https://github.com/electron/electron/blob/master/docs/api/accelerator.md) input | `CommandOrControl+Shift+A` | +| open enhancements menu hotkey | [accelerator](https://github.com/electron/electron/blob/master/docs/api/accelerator.md) input | `Alt+E` | -![](https://user-images.githubusercontent.com/16874139/90519171-094e3900-e1ab-11ea-8c5d-529ca15c6d95.png) +![](https://user-images.githubusercontent.com/16874139/93667628-c98cb100-faca-11ea-85e2-5fdca2a93a36.png) + +### always on top + +**tags:** #extension + +**description:** add an arrow/button to show the notion window +on top of other windows even if it's not focused. + +**author**: [dragonwocky](https://github.com/dragonwocky/) + +### bracketed links + +**tags:** #extension + +**description:** render links surrounded with \[\[brackets]] instead of underlined. + +**author**: [arecsu](https://github.com/arecsu/) + +### bypass preview + +**tags:** #extension + +**description:** go straight to the normal full view when opening a page. + +**author:** [dragonwocky](https://github.com/dragonwocky/) + +### calendar scroll + +**tags:** #extension + +**description:** add a button to scroll down to the current week in fullpage/infinite-scroll calendars. + +**author:** [dragonwocky](https://github.com/dragonwocky/) ### custom inserts @@ -127,18 +162,10 @@ these include: **author**: [dragonwocky](https://github.com/dragonwocky/) -| option | type | default | -| --------------------- | ---- | ------- | -| css insert | file | none | -| client-side js insert | file | none | - -### bracketed links - -**tags:** #extension - -**description:** render links surrounded with \[\[brackets]] instead of underlined. - -**author**: [arecsu](https://github.com/arecsu/) +| option | type | +| --------------------- | ---- | +| css insert | file | +| client-side js insert | file | ### dark+ @@ -152,7 +179,7 @@ these include: | -------------- | ----- | ------------------ | | primary colour | color | `rgb(177, 24, 24)` | -![](https://user-images.githubusercontent.com/16874139/90520312-85954c00-e1ac-11ea-8c45-3894c13b9b71.png) +![](https://user-images.githubusercontent.com/16874139/93667588-84687f00-faca-11ea-86c9-7d05325a22a1.png) ### emoji sets @@ -162,6 +189,10 @@ these include: **author:** [dragonwocky](https://github.com/dragonwocky/) +| option | type | values | +| ------ | ------ | -------------------------------------------------------------------------------------------------------------------------- | +| style | select | twitter, apple, google, microsoft, samsung, whatsapp, facebook, joypixels, openmoji, emojidex, messenger, lg, htc, mozilla | + ![](https://user-images.githubusercontent.com/16874139/90520622-f0df1e00-e1ac-11ea-8791-12922a037234.png) ### focus mode @@ -174,6 +205,22 @@ these include: ![](https://user-images.githubusercontent.com/16874139/90521792-49fb8180-e1ae-11ea-8764-cb4309cec464.png) +### font chooser + +**tags:** #extension + +**description:** customize fonts. for each option, type in the name of +the font you would like to use, or leave it blank to not change anything. + +**author:** [torchatlas](https://github.com/torchatlas) + +| option | type | +| -------------------- | ---------- | +| sans-serif (inc. ui) | text input | +| serif | text input | +| monospace | text input | +| code | text input | + ### gameish **tags:** #theme #dark @@ -182,7 +229,7 @@ these include: **author:** [LVL100ShrekCultist](https://reddit.com/user/LVL100ShrekCultist/) -![](https://user-images.githubusercontent.com/16874139/90522144-b6768080-e1ae-11ea-8150-527c1f70f0e7.png) +![](https://user-images.githubusercontent.com/16874139/93667677-1bcdd200-facb-11ea-89a2-f2a674d70d6c.png) ### hide help @@ -192,6 +239,26 @@ these include: **author**: [coryzibell](https://github.com/coryzibell/) +### littlepig dark + +**tags:** #theme #dark + +**description:** a purple monospaced theme using emojis and colourful text. + +**author:** [Lizishan](https://www.reddit.com/user/Lizishan/) + +![](https://user-images.githubusercontent.com/16874139/93667715-55064200-facb-11ea-949e-3f7494dfa498.png) + +### littlepig light + +**tags:** #theme #light + +**description:** a bright monospaced theme using emojis and colourful text. + +**author:** [Lizishan](https://www.reddit.com/user/Lizishan/) + +![](https://user-images.githubusercontent.com/16874139/93667767-af9f9e00-facb-11ea-9e5d-3c437f5c3026.png) + ### neutral **tags:** #theme #dark @@ -200,7 +267,7 @@ these include: **author:** [arecsu](https://github.com/arecsu/) -![](https://user-images.githubusercontent.com/16874139/90522373-f9d0ef00-e1ae-11ea-9dba-b29431609210.png) +![](https://user-images.githubusercontent.com/16874139/93667840-394f6b80-facc-11ea-8966-4ab3ecf38803.png) ### night shift @@ -218,7 +285,7 @@ these include: **author:** [zenith_illinois](https://reddit.com/user/zenith_illinois/) -![](https://user-images.githubusercontent.com/16874139/90522660-5502e180-e1af-11ea-8885-073ad20d65b3.png) +![](https://user-images.githubusercontent.com/16874139/93667825-05744600-facc-11ea-9394-6f3807b5e28e.png) ### property layout @@ -236,7 +303,7 @@ these include: **author:** [obahareth](https://github.com/obahareth/) -![](https://user-images.githubusercontent.com/16874139/90522872-95faf600-e1af-11ea-807c-11ac1591217e.png) +![](https://user-images.githubusercontent.com/16874139/93655955-1ab88880-fa6a-11ea-832f-7125ff0887da.png) ### weekly view @@ -248,6 +315,14 @@ these include: ![](https://user-images.githubusercontent.com/16874139/90523679-86c87800-e1b0-11ea-8cc0-25f6825c6d49.png) +### word counter + +**tags:** #extension + +**description:** add page details: word/character/sentence/block count & speaking/reading times. + +**author:** [dragonwocky](https://github.com/dragonwocky/) + ## contributors [@TarasokUA](https://github.com/TarasokUA/) wrote the first versions of this in python, in early 2020. diff --git a/mods/calendar-scroll/mod.js b/mods/calendar-scroll/mod.js index 0e296d9..9925117 100644 --- a/mods/calendar-scroll/mod.js +++ b/mods/calendar-scroll/mod.js @@ -13,7 +13,7 @@ module.exports = { tags: ['extension'], name: 'calendar scroll', desc: - 'add a button to scroll down to the current week in fullpage/infinite-scroll calendars', + 'add a button to scroll down to the current week in fullpage/infinite-scroll calendars.', version: '0.1.0', author: 'dragonwocky', hacks: { diff --git a/mods/core/buttons.js b/mods/core/buttons.js index 376f1b4..b32f84c 100644 --- a/mods/core/buttons.js +++ b/mods/core/buttons.js @@ -15,7 +15,7 @@ module.exports = (store) => { buttons = { element: helpers.createElement('
'), insert: [ - ...((store('mods')['72886371-dada-49a7-9afc-9f275ecf29d3'] || {}) + ...((store('mods', {})['72886371-dada-49a7-9afc-9f275ecf29d3'] || {}) .enabled ? ['alwaysontop'] : []), diff --git a/mods/core/css/theme.css b/mods/core/css/theme.css index ff53d7a..ff38b69 100644 --- a/mods/core/css/theme.css +++ b/mods/core/css/theme.css @@ -39,7 +39,8 @@ [style*='pointer-events:'][style*='max-width: 100%; width: 900px'] { width: var(--theme--page_normal-width) !important; } -.notion-page-content [style*='max-width: 696px'] { + +.notion-page-content [data-block-id][style*='max-width'] { max-width: 100% !important; } .notion-frame @@ -51,12 +52,18 @@ [style*='pointer-events:'][style*='max-width: 100%; width: 100%'] { width: var(--theme--page_full-width) !important; } +.notion-text-block [style*='padding-left: 1.5em'], .notion-frame .notion-scroller [style*='padding-left: 136.5px;'] { padding-left: 0 !important; } .notion-frame .notion-scroller [style*='padding-right: 136.5px;'] { padding-right: 0 !important; } +.notion-collection_view-block > :first-child, +.notion-collection_view-block .notion-scroller > :first-child { + padding-left: 0 !important; + padding-right: 0 !important; +} .notion-peek-renderer .notion-scroller.vertical diff --git a/mods/right-to-left/mod.js b/mods/right-to-left/mod.js index a9592fe..270669a 100644 --- a/mods/right-to-left/mod.js +++ b/mods/right-to-left/mod.js @@ -48,7 +48,7 @@ module.exports = { function autoAlignPageContent() { document .querySelectorAll( - '.notion-page-content > div[data-block-id]:not([dir])' + '.notion-page-content > div[data-block-id]:not([dir]), [placeholder="Untitled"]:not([dir])' ) .forEach((block) => block.setAttribute('dir', 'auto')); document diff --git a/mods/word-counter/styles.css b/mods/word-counter/styles.css index 434642e..c7b7700 100644 --- a/mods/word-counter/styles.css +++ b/mods/word-counter/styles.css @@ -15,6 +15,7 @@ } #word-counter-details > div > p { margin: 0.5em; + cursor: pointer; font-size: var(--theme--font_label-size); color: var(--theme--text); border-radius: 3px;