Adobe Shadow Chrome扩展如何在清单中没有任何相关权限的情况下捕获dom更改? [英] How Adobe Shadow Chrome Extension be able to catch dom changes without any relevant permissions in manifest?

查看:107
本文介绍了Adobe Shadow Chrome扩展如何在清单中没有任何相关权限的情况下捕获dom更改?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Adobe发布了新的有趣产品 - Adob​​e Shadow。在它的核心是一个Chrome扩展,它监听远程设备的连接(它也很有趣,它是如何实现的,但我认为它可能会利用自己的http服务来传递这样的请求),但最有趣的是它监听DOM ,JavaScript和CSS更改(对开发人员使用Chrome检查器)并将此更改传送到其他设备。然而,在清单中,这个扩展只是声明它只知道标签切换活动 - 这是可能的吗?

解决方案

关于Shadow Chrome扩展侦听页面中的DOM,JavaScript和CSS更改。当您点击Chrome扩展程序中的远程检查按钮时,我们会打开一个窗口给weinre服务器,并将所需的weinre javascript注入设备的页面。weinre窗口看起来像Chrome Dev Tools,因为它们都使用WebInspector,它是部分WebKit。



阅读更多关于这在影子常见问题



了解关于weinre的更多信息



Shadow Chrome扩展程序不会在页面级别收听任何内容。它会从选项卡权限获取发送到设备的URL。


Adobe release new interesting product - Adobe Shadow. And in its core is a chrome extension which listen for connection of a remote devices (its also interesting how this is done, but i think its might utilize own http service to communicate such request), but whats more interesting is that it listen for DOM, JavaScript and CSS changes (using chrome inspector for developers) and communicate this changes to othere devices. Yet in manifest this extension is only declare it was aware of only tabs switch activity - how this is possible?

解决方案

You are incorrect about the Shadow Chrome Extension listening for DOM, JavaScript and CSS changes in the page. When you click on the Remote Inspection button in the Chrome Extension, we open a window to a weinre server and inject the required weinre javascript into the page on the device.The weinre window looks like Chrome Dev Tools because they both use WebInspector, which is part of WebKit.

Read More About This In The Shadow FAQ

Read more about weinre

The Shadow Chrome Extension doesn't listen to anything at the page level. It gets the URL to send out to devices from the tabs permission.

这篇关于Adobe Shadow Chrome扩展如何在清单中没有任何相关权限的情况下捕获dom更改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆