在firefox中将页面上的所有链接都转换为https
可以这么说,我想对我正在访问的网站格外小心(无论该网站是否以 https 提供),并且希望将收到的网页中的每个 href 转换为其等效的 https。
有没有办法/附加组件来做到这一点?或者我必须自己写:(
Lets just say that I wanted to be extra careful with the website I'm visiting (irrespective of whether the site is offered in https) and wanted to convert every href in the web page received into its https equivalent.
Is there a way/add-on to do this ? or do I have to write my own :(
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
正如保罗所说,如果你这样做,大多数网站都会崩溃。但是,如果您想做类似的事情(抓取页面上的所有链接并对它们执行某些操作),Greasemonkey 脚本比编写 Firefox 插件更容易、更快。
As Paul said, most sites will break if you do this. However, if you wanted to do something similar to this (grabbing all the links on a page and doing something to them), a Greasemonkey script would be easier and quicker than writing a Firefox add-on.
您不能只将所有链接都指向 https,大多数链接都会损坏,而且安全网站无论如何都会将您重定向到 https。
You can't just point all links to https, most of them will break, and secure sites will redirect you to https anyway.