💄 Optimize the download function to be compatible with chatgpt

This commit is contained in:
Tw93
2023-06-04 11:01:15 +08:00
parent 91f51b9fd0
commit c1c862f29f
3 changed files with 8 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
{
"windows": [
{
"url": "https://pre-chat.alibaba-inc.com/",
"url": "https://chat.openai.com",
"transparent": true,
"fullscreen": false,
"width": 1200,

View File

@@ -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();

View File

@@ -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,