From 13fbe1c9af687dee082f68ae94e3e3158121a70a Mon Sep 17 00:00:00 2001 From: James Feng Cao Date: Wed, 12 Apr 2023 10:25:48 +0800 Subject: [PATCH] use view-source: in config.js --- en/searchurl/config.js | 2 +- zh/searchurl/template/config.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/en/searchurl/config.js b/en/searchurl/config.js index 06e107c..a5551df 100644 --- a/en/searchurl/config.js +++ b/en/searchurl/config.js @@ -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); diff --git a/zh/searchurl/template/config.html b/zh/searchurl/template/config.html index 8ee453b..ed87a0a 100644 --- a/zh/searchurl/template/config.html +++ b/zh/searchurl/template/config.html @@ -22,4 +22,4 @@ - +