JavaScript:分析某人的网站:这个标签来自哪里?

发布于 2024-11-08 18:01:08 字数 217 浏览 0 评论 0原文

我目前正在为新闻网站开发 GreaseMonkey 插件,其中有一个

问题太宽泛? :) 问候

i'm currently working on a GreaseMonkey plugin for a news-site and they have a <script> tag in there, where rating data for comments is stored and then used to display it along the posts.
I'm AJAX-loading several comment-pages and for some reason this <script> tag doesn't show up in my background-loaded pages. What is the best way to analyze where and how this tag is created?

Too broad of a question? :)
Regards

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

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

发布评论

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

评论(1

分分钟 2024-11-15 18:01:08

使用 curl 下载源 HTML,并查看服务器最初发送的 HTML 中是否存在

Download their source HTML with curl and see if the <script> tag is present in the HTML as initially sent by their server. If not, most likely they are using javascript to add the tag to the DOM after the page is loaded. You'll have to look through their code to find if that is happening. Look for event handlers for the document ready event.

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