Chrome Greasemonkey 脚本突然无法运行
几年前,我专门为 Chrome 编写了一个 Greasemonkey 用户脚本,禁用了 Gmail 中的“赞助商链接”广告,并进行了一些其他调整。脚本本身非常简单,不依赖任何第三方库等: http://userscripts .org/scripts/review/52619
截至几天前(可能是当我升级到 Chrome 11 时),该脚本不再起作用。我已经检查了 Gmail 的源代码(已知该源代码经常更改),但我使用的所有挂钩仍然存在。
Chrome 11 似乎根本不再运行我的脚本 - 有人知道 Chrome 中可能导致这种情况的任何更改吗?
/编辑我应该注意到我插入的CSS仍然有效 - 所以脚本至少被识别。
Years ago I wrote a Greasemonkey userscript specifically for Chrome that disabled the "sponsored link" advertising in Gmail, as well as a couple of other tweaks. The script itself is super simple, and doesn't rely on any third party libraries, etc: http://userscripts.org/scripts/review/52619
As of a few days ago (possibly when I upgraded to Chrome 11), the script no longer works. I've checked out Gmail's source code (which is known to change frequently), but all the hooks I use are still in place.
It seems like Chrome 11 just no longer runs my script at all - does anybody know about any changes in Chrome that may have caused that?
/EDIT I should note that the CSS I insert still works - so the script is at least being recognized.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我使用 ChromeStylist(类似于 Stylish)在网页上运行 CSS。我结合MVPS主机文件执行此操作,并在邮件设置中禁用Web Clip。我的 GMail 中根本没有看到任何广告。这是我使用的CSS,也许它可能有用:
I use ChromeStylist (similar to Stylish) to run CSS on webpages. I do this in combination with MVPS hosts file, and I disable the Web Clips in the mail settings. I see no ads at all in my GMail. Here's the CSS I use, perhaps it may be of some use: