💄 Optimize the download function to be compatible with chatgpt
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"windows": [
|
"windows": [
|
||||||
{
|
{
|
||||||
"url": "https://pre-chat.alibaba-inc.com/",
|
"url": "https://chat.openai.com",
|
||||||
"transparent": true,
|
"transparent": true,
|
||||||
"fullscreen": false,
|
"fullscreen": false,
|
||||||
"width": 1200,
|
"width": 1200,
|
||||||
|
|||||||
3
src-tauri/src/inject/event.js
vendored
3
src-tauri/src/inject/event.js
vendored
@@ -129,7 +129,8 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
|
|
||||||
let filename = anchorElement.download ? anchorElement.download : getFilenameFromUrl(absoluteUrl)
|
let filename = anchorElement.download ? anchorElement.download : getFilenameFromUrl(absoluteUrl)
|
||||||
// Process download links for Rust to handle.
|
// 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()
|
&& !externalDownLoadLink()
|
||||||
) {
|
) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|||||||
5
src-tauri/src/inject/style.js
vendored
5
src-tauri/src/inject/style.js
vendored
@@ -57,6 +57,11 @@ window.addEventListener('DOMContentLoaded', (_event) => {
|
|||||||
min-width: 260px;
|
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-light #app .chakra-heading,
|
||||||
.chakra-ui-dark #app .chakra-heading,
|
.chakra-ui-dark #app .chakra-heading,
|
||||||
.chakra-ui-light #app .chakra-stack,
|
.chakra-ui-light #app .chakra-stack,
|
||||||
|
|||||||
Reference in New Issue
Block a user