|
@@ -11,6 +11,7 @@ import (
|
|
|
"golang.org/x/net/publicsuffix"
|
|
|
)
|
|
|
|
|
|
+// TODO: does tihs need to be a configuration thing? How would i handle doing rewrite rules?
|
|
|
var staticRoutes = [...]string{
|
|
|
"/siteaudit/i18n/messages_en",
|
|
|
"/siteaudit/index/",
|
|
@@ -121,6 +122,8 @@ func (c *Controller) Get(ctx *gin.Context) {
|
|
|
if incomingPath == "/_compatibility/traffic/overview/" {
|
|
|
ctx.Header("Location", "https://sem.bunnytools.shop/analytics/traffic/overview/ebay.com")
|
|
|
}
|
|
|
+
|
|
|
+ // TODO: this should also honestly be a configuration thing, so that i can extend page modifications
|
|
|
newBody := strings.ReplaceAll(string(data), "\"srf-browser-unhappy\"", "\"srf-browser-unhappy\" style=\"display:none;\"")
|
|
|
newBody = strings.ReplaceAll(newBody, "\"srf-navbar__right\"", "\"srf-navbar__right\" style=\"display:none;\"")
|
|
|
newBody = strings.ReplaceAll(newBody, "<footer", "<footer style=\"display:none;\"")
|