package main import ( "os" "fmt" "strings" "net/http" "io" "regexp" "errors" ) func scanpage (path string, domain string, thisdomain string) error { fn, err := os.ReadFile(path + "/index.html") if err != nil { fmt.Println(err) return errors.New("ファイルを開けられなかった:") } /* 削除 */ var script = regexp.MustCompile(`()`).ReplaceAllString(string(fn), "") var noscript = regexp.MustCompile(`()`).ReplaceAllString(string(script), "") var audio = regexp.MustCompile(`()`).ReplaceAllString(string(noscript), "") var video = regexp.MustCompile(`()`).ReplaceAllString(string(audio), "") var iframe = regexp.MustCompile(`()`).ReplaceAllString(string(video), "") /* 追加ダウンロード+ローカル化 */ var ass = regexp.MustCompile(`(