diff --git a/en/searchurl/config.js b/en/searchurl/config.js index 579c3235..574f2639 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 2b4e9edd..eea8bf51 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);