我需要一个浏览器 chrome/firefox 扩展来列出当前页面中的所有 iframe src。有什么推荐吗?
I need a browser chrome/firefox extension to list all iframe src in the current page. Any recommendation?
我正在寻找浏览器 (chrome/firefox) 扩展以列出当前页面中的所有 iframe src。
这在 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 + '"');
}
将其与 this one 等小书签生成器结合使用,您就可以开始使用了。
我正在寻找浏览器 (chrome/firefox) 扩展以列出当前页面中的所有 iframe src。
这在 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 + '"');
}
将其与 this one 等小书签生成器结合使用,您就可以开始使用了。