我需要一个浏览器chrome / firefox扩展程序来列出当前页面中的所有iframe src。有什么建议吗?

库玛·苏科姆(Kumar Sucom)

我正在寻找浏览器(chrome / firefox)扩展程序,以列出当前页面中的所有iframe src。

迈克尔·亚伦·萨菲恩(Michael Aaron Safyan)

这在JavaScript中非常简单:

 var allIframesOnPage = document.querySelectorAll('iframe');
 var len = allIframesOnPage.length;
 window.console.log('There are ' + len + ' iframes on the page.');
 for (var i = 0; i < len; i++) {
   var current = allIframesOnPage[i];
   window.console.log('iframe[' + i + '].src == "' + current.src + '"');
 }

再加上一个书签发电机如这一个,你应该是好去。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

Related 相关文章

热门标签

归档