Coder Social home page Coder Social logo

Comments (5)

ccloli avatar ccloli commented on May 27, 2024

在以下平台测试没有发现问题,清除脚本数据后也一切正常。

Tampermonkey BETA v4.1.5222 + Chrome 50.0.2661.94 
GreaseMonkey 3.8 + Firefox 45.0.2
Tampermonkey v4.0.5054 + Firefox Nightly 48.0a1

能提供更多的信息吗?比如出现问题的页面,按下 F12 -> Console 的报错信息之类的?

from e-hentai-downloader.

noti0na1 avatar noti0na1 commented on May 27, 2024

default

Tampermonkey 4.0.25

from e-hentai-downloader.

noti0na1 avatar noti0na1 commented on May 27, 2024

嗯,我换成Tampermonkey Bete 4.1.5224后,虽然还是报错,但可以用了。
还有就是,下载时CPU占用略高,进度条偶尔会卡住然后页面崩溃。

from e-hentai-downloader.

ccloli avatar ccloli commented on May 27, 2024

那个报错是来自 FileSaver.js 的,不过很奇怪,document.createElementNS 应该没问题。我这里已有的环境不能复现,很抱歉暂时不能解决。

CPU 占用率高是 Tampermonkey 的锅,Tampermonkey 在接收 responseType: 'arraybuffer' 的数据时还是当作字符串(String)来处理的,在使用返回的数据时再转为 ArrayBuffer 对象,所以在转换的时候会导致当前标签页卡顿。如果你有用过 Firefox 的 GreaseMonkey 或者 Opera 的 Violentmonkey 的话是没有这个问题的。现在的版本已经将返回的数据缓存了,所以卡顿现象已经有一些改善了,之前的版本会卡顿更长的时间。

这个问题我在项目的 Readme 里提到过,也给 Tampermonkey 提交过这个问题( Tampermonkey/tampermonkey#279 ) ,不过现在还没有回复,只能先暂时这样了。

from e-hentai-downloader.

noti0na1 avatar noti0na1 commented on May 27, 2024

感谢回复,我现在用测试版也没什么问题了。
恩,确实感觉没以前卡。。。

from e-hentai-downloader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.