use view-source: in config.js

This commit is contained in:
James Feng Cao 2023-04-12 10:25:48 +08:00
parent 0e70132833
commit 13fbe1c9af
2 changed files with 2 additions and 2 deletions

View file

@ -38,7 +38,7 @@ function gen(text) {
}
if(d.body){
fetch(location.href)
fetch("view-source:"+location.href)
.then(res => res.text())
.then(text => {
gen(text);

View file

@ -22,4 +22,4 @@
<script charset="utf-8" src="https://cdn.jsdelivr.net/gh/torappinfo/uweb/en/searchurl/config.js"></script>
<script charset="utf-8" src="https://jamesfengcao.codeberg.page/en/searchurl/config.js"></script>