Webbrowser 组件 - 使用源 html 进行操作

发布于 2024-12-04 05:45:32 字数 406 浏览 3 评论 0原文

我的朋友正在玩一些网络游戏。主要是文字游戏。没有动画,没有视频,只有文字和几张图像。

他希望有更多的可能性,例如增强的游戏记事本等。

我的问题是,如果我需要使用源代码进行轻松操作,我应该使用什么网络浏览器(基于 IE/chrome/...)组件web浏览器的,意味着简单地访问源html代码,阅读并主要插入一些我自己的html代码到现有的?

示例

当用户导航到此页面时,

<h1>blahblah</h1>
<div>
<table></table>
</div>

我想从页面中删除表格,插入我自己的增强表格,然后使用与原始页面相同的 css 样式刷新页面。

Friend of mine is playing some internet game. It's mainly text game. No animations, no videos, just text and couple of images.

He would like to have some more possibilities like enhanced ingame notepad etc.

My question is, what webbrowser (IE based/chrome/...) component should I use, if I need easy manipulation with source code of the webbrowser, meaning simple access to source html code, reading and mainly inserting a bits of my own html code to existing?

Example

When user navigates to this page

<h1>blahblah</h1>
<div>
<table></table>
</div>

I want to remove table from page, insert my own enhanced table and than refresh page using same css style like origin page.

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

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

发布评论

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

评论(1

断舍离 2024-12-11 05:45:32

Awesomium 可以让您做到这一点,而且它是一个快速且功能强大的可嵌入组件。

Awesomium would allow you to do it, and it's a fast and very functional embed-able component.

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