我可以用 Python 编写浏览器插件吗?

发布于 2024-08-19 19:11:59 字数 205 浏览 3 评论 0原文

我正在考虑写一个浏览器插件,但我不懂 C。 我可以使用 Java 或 Python 编写浏览器插件吗?

我在想……所有这些网站都会在我的浏览器上存储 cookie 来识别我的身份。 如果我编写了一个插件,可以在 http 标头中提供浏览器 GUID,网络服务器就可以识别浏览器。

我认为这将排除 99% 的 cookie 的需要,暂时假装所有用户和服务器都使用它。

I'm thinking about writing a browser plugin, but I don't know any C.
Can I write browser plugins with Java or Python?

I was thinking... All those websites store cookies on my browser to identify me.
If I wrote a plugin that would supply a browser GUID in the http headers, webservers could identify the browser.

I think that would rule out the need for 99% of all the cookies, pretending for a moment that all users and servers use it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

世界等同你 2024-08-26 19:11:59

您当然可以使用 win32com 接口在 Python 中为 IE 编写 ActiveX 插件。但是你必须安装 Python 和 pywin32 以及你的插件才能工作,所以它会相当笨重。我认为仅仅为了获得 GUID 而安装所有这些东西不会流行。

(实际上,大多数人不想要 GUID。这真的是您唯一的目标吗?如果您正在考虑单点登录选项,请查看 SO 上使用的 OpenID 等系统。 .这给了用户更大的控制权。)

You can certainly write an ActiveX plugin for IE in Python using the win32com interfaces. But you'd have to install Python and pywin32 along with your plugin for it to work, so it'd be pretty bulky. I don't think it's going to be popular to install all that just to get a GUID.

(Actually most people specifically don't want a GUID. Is that really your only aim? If you're thinking about single-sign-on options, look at systems like OpenID as used on SO... this gives the user much greater control.)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文