mirror of
https://github.com/Ellpeck/ObsidianCustomFrames.git
synced 2024-11-22 09:43:30 +01:00
Feat: Add google calendar preset (#9)
* Feat: Add Google Calendar preset * Update README.md
This commit is contained in:
parent
2980c2cb5f
commit
9108b86a6f
2 changed files with 20 additions and 2 deletions
|
@ -17,6 +17,7 @@ Unfortunately, Obsidian Mobile does not run on [Electron](https://www.electronjs
|
|||
By default, Custom Frames comes with a few presets that allow you to get new panes for popular sites up and running quickly.
|
||||
- [Obsidian Forum](https://forum.obsidian.md/)
|
||||
- [Google Keep](https://keep.google.com), optimized for a narrow pane on the side
|
||||
- [Google Calendar](https://calendar.google.com/calendar/u/0/r/day), optimized by removing some buttons. Close side panel with top-left button.
|
||||
- [Notion](https://www.notion.so/) (it's recommended to close Notion's sidebar if used as a side pane)
|
||||
- [Twitter](https://twitter.com)
|
||||
|
||||
|
@ -33,4 +34,4 @@ Thanks to [lishid](https://github.com/lishid) for their help with making iframes
|
|||
|
||||
If you like this plugin and want to support its development, you can do so through my website by clicking this fancy image!
|
||||
|
||||
[![Support me (if you want), via Patreon, Ko-fi or GitHub Sponsors](https://ellpeck.de/res/generalsupport.png)](https://ellpeck.de/support)
|
||||
[![Support me (if you want), via Patreon, Ko-fi or GitHub Sponsors](https://ellpeck.de/res/generalsupport.png)](https://ellpeck.de/support)
|
||||
|
|
|
@ -10,6 +10,23 @@ export const presets: Record<string, CustomFrame> = {
|
|||
hideOnMobile: true,
|
||||
minimumWidth: 367,
|
||||
customCss: ""
|
||||
},
|
||||
"calendar": {
|
||||
url: "https://calendar.google.com/calendar/u/0/r/day",
|
||||
displayName: "Google Calendar",
|
||||
icon: "calendar",
|
||||
hideOnMobile: true,
|
||||
minimumWidth: 490,
|
||||
customCss: `/* hide right-side menu, and some buttons */
|
||||
div.d6McF,
|
||||
div.pw6cBb,
|
||||
div.gb_Td.gb_Va.gb_Id,
|
||||
div.Kk7lMc-QWPxkf-LgbsSe-haAclf,
|
||||
div.h8Aqhb,
|
||||
div.gboEAb,
|
||||
div.dwlvNd {
|
||||
display: none !important;
|
||||
}`
|
||||
},
|
||||
"keep": {
|
||||
url: "https://keep.google.com",
|
||||
|
@ -52,4 +69,4 @@ export interface CustomFrame {
|
|||
hideOnMobile: boolean;
|
||||
minimumWidth: number;
|
||||
customCss: string;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue