diff --git a/src-tauri/pake.json b/src-tauri/pake.json index 55a0796..344e2f5 100644 --- a/src-tauri/pake.json +++ b/src-tauri/pake.json @@ -1,7 +1,7 @@ { "windows": [ { - "url": "https://pre-chat.alibaba-inc.com/", + "url": "https://chat.openai.com", "transparent": true, "fullscreen": false, "width": 1200, diff --git a/src-tauri/src/inject/event.js b/src-tauri/src/inject/event.js index 3ef7317..826bd23 100644 --- a/src-tauri/src/inject/event.js +++ b/src-tauri/src/inject/event.js @@ -129,7 +129,8 @@ document.addEventListener('DOMContentLoaded', () => { let filename = anchorElement.download ? anchorElement.download : getFilenameFromUrl(absoluteUrl) // Process download links for Rust to handle. - if ((anchorElement.download /* download attribute */ || e.metaKey /* Click anchor with meta key pressed could download any kind of resource. */) + // If the download attribute is set, the download attribute is used as the file name. + if ((anchorElement.download || e.metaKey || e.ctrlKey) && !externalDownLoadLink() ) { e.preventDefault(); diff --git a/src-tauri/src/inject/style.js b/src-tauri/src/inject/style.js index 44e421c..421f360 100644 --- a/src-tauri/src/inject/style.js +++ b/src-tauri/src/inject/style.js @@ -57,6 +57,11 @@ window.addEventListener('DOMContentLoaded', (_event) => { min-width: 260px; } + #__next > div.overflow-hidden.w-full.h-full.relative.flex.z-0 > div.relative.flex.h-full.max-w-full.flex-1.overflow-hidden > div > main > div.absolute.left-2.top-2.z-10.hidden.md\\:inline-block{ + margin-top:20px; + margin-left: 10px; + } + .chakra-ui-light #app .chakra-heading, .chakra-ui-dark #app .chakra-heading, .chakra-ui-light #app .chakra-stack,