diff --git a/gen_router.go b/gen_router.go index 87f8be04..50199111 100644 --- a/gen_router.go +++ b/gen_router.go @@ -348,6 +348,8 @@ func (router *GenRouter) ServeHTTP(w http.ResponseWriter, req *http.Request) { common.AgentViewCounter.Bump(9) case strings.Contains(ua,"OPR"): // Pretends to be Chrome, needs to run before that common.AgentViewCounter.Bump(3) + case strings.Contains(ua,"Edge"): + common.AgentViewCounter.Bump(5) case strings.Contains(ua,"Chrome"): common.AgentViewCounter.Bump(2) case strings.Contains(ua,"Firefox"): @@ -358,6 +360,8 @@ func (router *GenRouter) ServeHTTP(w http.ResponseWriter, req *http.Request) { common.AgentViewCounter.Bump(6) case strings.Contains(ua,"Baiduspider"): common.AgentViewCounter.Bump(10) + case strings.Contains(ua,"DuckDuckBot"): + common.AgentViewCounter.Bump(11) default: common.AgentViewCounter.Bump(0) } diff --git a/router_gen/main.go b/router_gen/main.go index bd8f6ff4..784dd27b 100644 --- a/router_gen/main.go +++ b/router_gen/main.go @@ -317,6 +317,8 @@ func (router *GenRouter) ServeHTTP(w http.ResponseWriter, req *http.Request) { common.AgentViewCounter.Bump({{.AllAgentMap.bing}}) case strings.Contains(ua,"OPR"): // Pretends to be Chrome, needs to run before that common.AgentViewCounter.Bump({{.AllAgentMap.opera}}) + case strings.Contains(ua,"Edge"): + common.AgentViewCounter.Bump({{.AllAgentMap.edge}}) case strings.Contains(ua,"Chrome"): common.AgentViewCounter.Bump({{.AllAgentMap.chrome}}) case strings.Contains(ua,"Firefox"): @@ -327,6 +329,8 @@ func (router *GenRouter) ServeHTTP(w http.ResponseWriter, req *http.Request) { common.AgentViewCounter.Bump({{.AllAgentMap.internetexplorer}}) case strings.Contains(ua,"Baiduspider"): common.AgentViewCounter.Bump({{.AllAgentMap.baidu}}) + case strings.Contains(ua,"DuckDuckBot"): + common.AgentViewCounter.Bump({{.AllAgentMap.duckduckgo}}) default: common.AgentViewCounter.Bump({{.AllAgentMap.unknown}}) } diff --git a/themes/shadow/public/main.css b/themes/shadow/public/main.css index c28626b1..54681802 100644 --- a/themes/shadow/public/main.css +++ b/themes/shadow/public/main.css @@ -191,6 +191,8 @@ a { font-weight: normal; -webkit-margin-before: 0; -webkit-margin-after: 0; + margin-block-start: 0; + margin-block-end: 0; display: inline; } .rowsmall {