使用GreaseMonkey停止缓慢加载脚本 [英] Stop slow-loading script with GreaseMonkey

查看:107
本文介绍了使用GreaseMonkey停止缓慢加载脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我访问的页面上,它具有加载缓慢的外部脚本,该脚本有时会花费很长时间,以至于该页面基本上无法使用.完全禁用此脚本会删除某些功能,但是总比没有好.

On a page that I visit, it has a slow-loading external script that occasionally takes so long that the page is basically unusable. Disabling this script entirely removes some functionality, but it's better than nothing.

有没有一种方法可以使用lubricmonkey取消脚本?我知道我可以使用NoScript,但是我想给它一个机会(JS超时).

Is there a way I could use greasemonkey to cancel the script? I know I could use NoScript, but I wanted to give it a chance (with a JS timeout).

我对此表示怀疑(因为Greasemonkey似乎在页面完成加载之前都没有运行脚本),但是我想确认一下

I kind of doubt it (since Greasemonkey doesn't even seem to run scripts until the page has finished loading), but I wanted to check to be sure

推荐答案

该脚本是否位于其他域中((几乎没有被其他任何东西使用))?

Is that script located at a different domain (that's not used by (almost) anything else)?

如果是这样,可以通过更改您的hosts文件来阻止对其的访问;例如,请参见 http://someonewhocares.org/hosts/

If so, you can block access to it by changing your hosts file; e.g., see http://someonewhocares.org/hosts/

这篇关于使用GreaseMonkey停止缓慢加载脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆