Greasy Fork is available in English.

Discussões » Feedback do Greasy Fork

Browser freeze when viewing script code in GreasyFork (Waterfox and Chrome)

§
Publicado: 16/01/2019
Editado: 16/01/2019

Browser freeze when viewing script code in GreasyFork (Waterfox and Chrome)

Tested on different profiles and with/without others scripts enable. Test link: https://greasyfork.org/fr/scripts/376683-picviewer-ce/code

On Waterfox i have script error message about: "run_prettify.js" It freeze with scripts enable/disable. Idem if i only disable the script "Linkify Plus Plus v.9.0.0"

On Chrome ,it freeze too but if i stop the script "Linkify Plus Plus v.9.0.0", that's ok. It's ok too if i add exclude for it: // @exclude https://greasyfork.org//scripts/

§
Publicado: 19/01/2019

I recently switch the library used to do syntax highlighting. I thought this one could handle even very large scripts. I thought wrong.

I've re-added the logic to skip syntax highlighting for scripts > 500KB.

wOxxOmMod
§
Publicado: 19/01/2019

@JasonBarnabe, could you simply reuse AceEditor in a read-only mode? If it's like CodeMirror then it should be able to handle huge scripts almost instantaneously without stressing the client browser.

§
Publicado: 19/01/2019

ok that's not my fault :-)

Publicar resposta

Faça o login para publicar uma resposta.