diff --git a/interfacer/src/browsh/raw_text_server.go b/interfacer/src/browsh/raw_text_server.go
index 4d9ed6f..7807ce0 100644
--- a/interfacer/src/browsh/raw_text_server.go
+++ b/interfacer/src/browsh/raw_text_server.go
@@ -58,7 +58,23 @@ func (h *slashFix) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
func handleHTTPServerRequest(w http.ResponseWriter, r *http.Request) {
+ var message string
urlForBrowsh, _ := url.PathUnescape(strings.TrimPrefix(r.URL.Path, "/"))
+ if strings.TrimSpace(urlForBrowsh) == "" {
+ if (strings.Contains(r.Host, "text.")) {
+ message = "Welcome to the Browsh plain text client.\n" +
+ "You can use it by appending URLs like this;\n" +
+ "http://html.brow.sh/https://www.brow.sh"
+ } else {
+ message = "" +
+ "Welcome to the Browsh HTML web client.
" +
+ "Type a URL after 'html.brow.sh' in your URL bar, eg;
" +
+ "http://html.brow.sh/https://www.brow.sh
" +
+ ""
+ }
+ io.WriteString(w, message)
+ return
+ }
rawTextRequestID := pseudoUUID()
mode := getRawTextMode(r)
sendMessageToWebExtension(