use outerHTML in config.js

This commit is contained in:
James Feng Cao 2023-04-12 10:34:12 +08:00
parent 13fbe1c9af
commit 1239ef166c
1 changed files with 1 additions and 5 deletions

View File

@ -38,11 +38,7 @@ function gen(text) {
} }
if(d.body){ if(d.body){
fetch("view-source:"+location.href) gen(d.documentElement.outerHTML);
.then(res => res.text())
.then(text => {
gen(text);
});
}else { }else {
let text = "\n".repeat(labels.length-1); let text = "\n".repeat(labels.length-1);
gen(text); gen(text);