diff --git a/en/searchurl/config.js b/en/searchurl/config.js index 579c323..574f263 100644 --- a/en/searchurl/config.js +++ b/en/searchurl/config.js @@ -38,7 +38,13 @@ function gen(text) { } if(d.body){ - gen(d.body.innerHTML); + var r=new XMLHttpRequest; + r.onload=function(){ + var t=r.responseText; + gen(t); + } + r.open("GET",location.href,!0); + r.send(null); }else { let text = "\n".repeat(labels.length-1); gen(text); diff --git a/zh/searchurl/config.js b/zh/searchurl/config.js index 2b4e9ed..eea8bf5 100644 --- a/zh/searchurl/config.js +++ b/zh/searchurl/config.js @@ -38,11 +38,13 @@ function gen(text) { } if(d.body){ - fetch(location.href) - .then(res => res.text()) - .then(text => { - gen(text); - }); + var r=new XMLHttpRequest; + r.onload=function(){ + var t=r.responseText; + gen(t); + } + r.open("GET",location.href,!0); + r.send(null); }else { let text = "\n".repeat(labels.length-1); gen(text);