Compare commits

...

3 commits

Author SHA1 Message Date
Ell 3526aaf70c 2.4.7 2024-02-21 13:10:24 +01:00
Ell b0a325a04f fixed settings tab missing custom js 2024-02-21 13:08:46 +01:00
Afdzal Yunus df1ddd5c17
Improve preset styling for Google Keeps frame (#99)
* Improve preset styling for Google Keeps

* Remove pointer cursor from app logo

* Remove pointer cursor from app logo

---------

Co-authored-by: Ell <me@ellpeck.de>
2024-02-21 13:07:20 +01:00
7 changed files with 17 additions and 10 deletions

View file

@ -1,7 +1,7 @@
{ {
"id": "obsidian-custom-frames", "id": "obsidian-custom-frames",
"name": "Custom Frames", "name": "Custom Frames",
"version": "2.4.6", "version": "2.4.7",
"minAppVersion": "1.2.0", "minAppVersion": "1.2.0",
"description": "A plugin that turns web apps into panes using iframes with custom styling. Also comes with presets for Google Keep, Todoist and more.", "description": "A plugin that turns web apps into panes using iframes with custom styling. Also comes with presets for Google Keep, Todoist and more.",
"author": "Ellpeck", "author": "Ellpeck",

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{ {
"name": "obsidian-custom-frames", "name": "obsidian-custom-frames",
"version": "2.4.6", "version": "2.4.7",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "obsidian-custom-frames", "name": "obsidian-custom-frames",
"version": "2.4.6", "version": "2.4.7",
"license": "MIT", "license": "MIT",
"devDependencies": { "devDependencies": {
"@types/node": "^16.11.6", "@types/node": "^16.11.6",

View file

@ -1,6 +1,6 @@
{ {
"name": "obsidian-custom-frames", "name": "obsidian-custom-frames",
"version": "2.4.6", "version": "2.4.7",
"description": "An Obsidian plugin that turns web apps into panes using iframes with custom styling. Also comes with presets for Google Keep, Todoist and more.", "description": "An Obsidian plugin that turns web apps into panes using iframes with custom styling. Also comes with presets for Google Keep, Todoist and more.",
"main": "main.js", "main": "main.js",
"scripts": { "scripts": {

View file

@ -197,7 +197,8 @@ export class CustomFramesSettingTab extends PluginSettingTab {
openInCenter: false, openInCenter: false,
zoomLevel: 1, zoomLevel: 1,
forceIframe: false, forceIframe: false,
customCss: "" customCss: "",
customJs: ""
}); });
} else { } else {
this.plugin.settings.frames.push(presets[option]); this.plugin.settings.frames.push(presets[option]);

View file

@ -59,10 +59,15 @@ div[style*="min-width: 238px"] span[role*="heading"] {
openInCenter: false, openInCenter: false,
zoomLevel: 1, zoomLevel: 1,
forceIframe: false, forceIframe: false,
customCss: `/* hide the menu bar and the "Keep" text */ customCss: `/* hide the menu bar, the "Keep" text and the Google Apps button */
html > body > div:nth-child(2) > div:nth-child(2) > div:first-child, html > body > div:nth-child(2) > div:nth-child(2) > div:first-child,
html > body > div:first-child > header:first-child > div > div:first-child > div > div:first-child > a:first-child > span { html > body > div:first-child > header:first-child > div > div:first-child > div > div:first-child > a:first-child > span,
html > body > div:first-child > header:first-child > div:nth-child(2) > div:first-child > div:first-child,
html > body > div:first-child > header:first-child > div:nth-child(2) > div:nth-child(3) > div:first-child > div:first-child > div:first-child {
display: none !important; display: none !important;
}
html > body > div:first-child > header:first-child > div > div:first-child > div > div:first-child > a:first-child {
cursor: default;
}`, }`,
customJs: "" customJs: ""
}, },

View file

@ -20,7 +20,7 @@
"openInCenter": false, "openInCenter": false,
"zoomLevel": 1, "zoomLevel": 1,
"forceIframe": false, "forceIframe": false,
"customCss": "/* hide the menu bar and the \"Keep\" text */\nhtml > body > div:nth-child(2) > div:nth-child(2) > div:first-child, \nhtml > body > div:first-child > header:first-child > div > div:first-child > div > div:first-child > a:first-child > span { \n\tdisplay: none !important; \n}" "customCss": "/* hide the menu bar, the \"Keep\" text and the Google Apps button */\nhtml > body > div:nth-child(2) > div:nth-child(2) > div:first-child, \nhtml > body > div:first-child > header:first-child > div > div:first-child > div > div:first-child > a:first-child > span, \nhtml > body > div:first-child > header:first-child > div:nth-child(2) > div:first-child > div:first-child, \nhtml > body > div:first-child > header:first-child > div:nth-child(2) > div:nth-child(3) > div:first-child > div:first-child > div:first-child { \n\tdisplay: none !important; \n}\nhtml > body > div:first-child > header:first-child > div > div:first-child > div > div:first-child > a:first-child {\n\tcursor: default; \n}"
}, },
{ {
"url": "https://calendar.google.com/calendar", "url": "https://calendar.google.com/calendar",
@ -46,4 +46,4 @@
} }
], ],
"padding": 5 "padding": 5
} }

View file

@ -12,5 +12,6 @@
"2.4.3": "0.15.5", "2.4.3": "0.15.5",
"2.4.4": "0.16.0", "2.4.4": "0.16.0",
"2.4.5": "1.1.0", "2.4.5": "1.1.0",
"2.4.6": "1.2.0" "2.4.6": "1.2.0",
"2.4.7": "1.2.0"
} }