通过脚本更改浏览器设置 [英] Change Browser settings by script

查看:245
本文介绍了通过脚本更改浏览器设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知,您可以更改/在Mozilla / Netscape浏览器操作浏览器设置。
比如netscape.security.PrivilegeManager.enablePrivilege(​​'someprivilege');

Afaik, you can change/manipulate browser settings in Mozilla/Netscape browsers. For Instance "netscape.security.PrivilegeManager.enablePrivilege('someprivilege');"

当然,用户被告知这一点,需要验证的动作。

Of course the user gets informed about that and needs to verify the action.

我的问题是,其他浏览也有类似的功能? IE,Safari /铬?

My question is, do other browser have similar functionality? IE, Safari/Chrome ?

亲切的问候

安迪 -

推荐答案

您可以在这里读到它 - 的 http://www.mozilla.org/projects/security/components/signed-scripts.html#privs

You can read about it here - http://www.mozilla.org/projects/security/components/signed-scripts.html#privs

另外的例子可在这里:的http://www.mozilla.org/projects/security/components/signed-script-example.html

Also example available here: http://www.mozilla.org/projects/security/components/signed-script-example.html

浏览器让扩展其核心一定程度交互,但仅此而已。你可以阅读有关Mozi​​lla和Chrome扩展,看看它们与通过JavaScript浏览器的交互,但这只是内部扩展,签约位于用户的硬盘驱动器的脚本和脚本。

Browsers let extensions to interact with their core to certain level, but that's about it. You can read about Mozilla and Chrome extensions and see they interact with the browser through JavaScript, but this is only inside extensions, signed scripts and scripts located on user's hard drives.

这篇关于通过脚本更改浏览器设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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