Lv.1
【ᕕ(◠ڼ◠)ᕗ】这里是小鱼~ 现在已转米坛社区,用米环可以来这里找我
签名:简单介绍下自己 常用语言/框架: Python 前端+Node.js Lua 入猫时间:2018/2/25 14:24:54 加入团队/组织 CoCo中控台 当前/以前曾任 Waddle项目经理 Boxy开发人员 编程猫2201/2301届创委 个人/合作部分项目 编程猫格式工厂 编程猫使用优化 Waddle Boxy 来这玩:yzf.moe 以前没用的成就 Kitten作品全大卡片 CoCo作品全拿奖 所有作品全精选
在 [热度]破解扫厕所的iframe xxs 中回复
var iframes = document.querySelectorAll('iframe');
for (var i = 0; i < iframes.length; i++) {
iframes[i].style.position = 'inherit'
}
你可以这样的
2023-01-09T19:23:39 点赞:4
在 iframe测试 中回复
var embeds = document.querySelectorAll('embed');
for (var i = 0; i < embeds.length; i++) {
var embed_to_iframe = document.createElement("iframe")
embed_to_iframe.style.width = embeds[i].style.width
embed_to_iframe.style.height = embeds[i].style.height
embed_to_iframe.setAttribute("src", embeds[i].getAttribute("src"))
embeds[i].parentNode.replaceChild(embed_to_iframe, embeds[i]);
}
var iframes = document.querySelectorAll('iframe');
for (i = 0; i < iframes.length; i++) {
iframes[i].style.position = 'inherit'
if (!iframes[i].getAttribute("sandbox") && iframes[i] != document.querySelector(".mce-edit-area iframe")) {
iframes[i].setAttribute("sandbox", 'allow-forms allow-scripts allow-same-origin allow-popups')
iframes[i].setAttribute("src", iframes[i].getAttribute("src"))
}
}
2023-01-10T11:18:36 点赞:4