如何获取浏览器的内容,包括窗口的菜单栏、框架/边框以及折叠下方的内容?
我记得在网络发展的早期,有一些书包含了整个浏览器窗口的标题栏、菜单栏,甚至浏览器的边框,以及其中的内容——不仅仅是窗口中当前的内容,但即使向下滚动也能看到所有内容)。
我也希望能够做到这一点...有没有一种简单的方法来编写 Win32 或 Mac 应用程序来做到这一点,或者也许作为 Firefox 扩展(附加组件)?
(浏览器菜单栏和书签栏可以是真实的,也可以是假的——无需在书签栏上显示我的个人书签)
I remember in the early days of the web, there were books that included the whole browser window's title bar, menu bar, and even the border of the browser, and the content inside of it -- not just the current content in the window, but all the content even when scrolled down).
I'd like to be able to do that too... is there a easy way to write a Win32 or Mac app to do that, or perhaps as a Firefox extension (add-on)?
(the browser menu bar and bookmark bar can either be real or fake -- no need to show my personal bookmarks on the bookmark bar)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用 Webkit 框架在 OS X 端编写这样的应用程序< /a> 对于可可。
Windows 上的 .NET 有自己的 WebBrowser 和 WebBrowserBase 类< /a> 提供类似小部件的可编程浏览器。 查看 WebBrowserBase 的 DrawToBitmap 方法班级。
还有一些应用程序已经做到了这一点。
对于 Mac OS X,有 狗仔队 和 Little Snapper 可以做你想做的事。
对于 Windows,请检查 SiteShoter 和 网页截图。
You can write such an app on the OS X side using the Webkit framework for Cocoa.
.NET on Windows has it's own WebBrowser and WebBrowserBase class that provides a programmable browser like widget. Check out the DrawToBitmap method of the WebBrowserBase class.
There are also several apps that already do that.
For Mac OS X there is Paparazzi and Little Snapper that can do what you want.
For Windows check SiteShoter and Webshot.
您可以使用 Firefox 的 FireShot 扩展,然后使用 Microsoft 的 Paint 和 Alt- PrtScr 添加周围的镶边。
You could use Firefox's FireShot extension and then use Microsoft's Paint and Alt-PrtScr to add the surrounding chrome.