Comments (5)
晚上我会装上你图片里的脚本进行测试,查看是否存在冲突问题。
早上在检查另一个问题时已经测试了多个浏览器,包括低内核版本以及chrome的beta版本,一切正常。
你可以通过F12打开浏览器控制台,并将控制台中输出的信息展示出来吗,看看是否有红色或黄色的输出信息。
from eh-view-enhance.
from eh-view-enhance.
这是GPT给的解释
这段代码中的错误信息是指在执行一个名为 E-HENTAI-VIEW-ENHANCE.user.js
的用户脚本时遇到了一个问题。具体来说,这个错误消息指出在脚本的第 6720 行尝试调用一个名为 saveAs
的函数时,发现该函数未被定义。
错误信息解释如下:
-
Uncaught (in promise) ReferenceError: saveAs is not defined
:这意味着在执行异步操作(promise)期间,尝试访问一个名为saveAs
的变量或函数,但是这个变量或函数没有在当前作用域或全局作用域下定义。ReferenceError
是JavaScript中表示引用错误的错误类型之一,出现这种错误通常是因为尝试访问一个未声明的变量。 -
at Proxy.<anonymous>
和后续的几个调用栈信息提供了错误发生的上下文,包含了出错的文件名(E-HENTAI-VIEW-ENHANCE.user.js
),以及一个唯一的标识符(id=f9d21232-2fb9-4f1b-b895-507982766912
),还有出错的行数(6720行)。
针对这个错误,可能的解决方法包括:
-
检查
saveAs
函数是否已经定义:确保你的脚本中或者你的环境中包含了saveAs
函数的定义。saveAs
函数通常用于触发浏览器下载操作,它可能是一个第三方库提供的功能(如FileSaver.js)。 -
引入缺失的库:如果
saveAs
函数来源于某个库(如FileSaver.js),请确保这个库已经被正确引入到你的项目中。 -
检查作用域:如果
saveAs
函数是由你自己定义的,确认它的定义位置是否能被当前的执行环境所访问。 -
异步代码处理:由于错误发生在一个promise中,如果
saveAs
的定义是异步加载的,需要确保在尝试调用saveAs
之前,其定义已经加载完成。 -
调试和日志记录:在尝试调用
saveAs
函数之前,可以添加日志记录来确认其是否已经定义。这可以通过简单地在调用前打印出saveAs
的值来实现(例如,使用console.log(saveAs)
)。
解决这类问题通常需要详细检查代码,确认所有需要的依赖都已正确加载,并确保没有作用域等基本的JavaScript错误。
from eh-view-enhance.
看起来像是引用的三个js库因为网络原因没有加载出来,https://cdn.jsdelivr.net 这个站点你访问不了了,代理开全局或为这个站点添加代理规则试试
from eh-view-enhance.
好的解决完了,机场的原因自动屏蔽证书无效的网站了,麻烦你了
from eh-view-enhance.
Related Issues (20)
- Unable to function properly on MacOS and Safari browser. HOT 3
- Multiple page Hitomi.la closes viewer HOT 1
- [Feature Request] option to choose/download between native image format (webp, avif, jxl...etc) HOT 2
- Allow reconfigure of auto page turn keybind HOT 1
- Add auto-open eh-view-enhance on gallery open option HOT 3
- 浏览时经常出现的报错,没有功能异常 HOT 3
- Viewer Shows a Grey Outline HOT 2
- 脚本更新后无法使用 HOT 2
- Big Mode HOT 6
- Pixiv Gifs
- 在chrome下无法在阅读模式加载图片 | Failed to load images via read mode on Chrome HOT 4
- twitter reverse order for post with multiple images attatched for user media page viewing HOT 2
- Question: about download option HOT 2
- Add support for HentaiNexus HOT 1
- 建议:增加“帮助”按钮的辨识度 HOT 1
- Hentai Nexus Image Bug HOT 2
- 建议:推特能增加直接下载功能么? HOT 4
- 建议:点击download时,重新下载509的页面 HOT 2
- 建议:在范围选择页面增加一些快捷按钮
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eh-view-enhance.