diff --git a/website/web/__init__.py b/website/web/__init__.py index 87c507b5..cc82c403 100644 --- a/website/web/__init__.py +++ b/website/web/__init__.py @@ -832,7 +832,9 @@ def capture_web(): if 'cookies' in request.files and request.files['cookies'].filename: capture_query['cookies'] = request.files['cookies'].stream.read() - if request.form.get('personal_ua') and request.headers.get('User-Agent'): + if request.form.get('freetext_ua'): + capture_query['user_agent'] = request.form['freetext_ua'] + elif request.form.get('personal_ua') and request.headers.get('User-Agent'): capture_query['user_agent'] = request.headers['User-Agent'] else: capture_query['user_agent'] = request.form['user_agent'] diff --git a/website/web/templates/capture.html b/website/web/templates/capture.html index 71585abf..48e0a112 100644 --- a/website/web/templates/capture.html +++ b/website/web/templates/capture.html @@ -48,20 +48,84 @@ +

Browser Configuration (Lookyloo uses an emulated browser for all captures)

+
+ {% if personal_ua %} +
+
+
+ + +
+
+
+ +
Or pick the user agent of your choice:
+
+ {% endif %} + +
+ +
+ +
+
+ + {% for os, browsers in user_agents.items() %} + +
+ +
+ + +
+
+ {% for browser, user_agents in browsers.items()%} + + + {% endfor%} + {% endfor%} + +
Or type the user-agent of your choice:
+
+
+ +
+ +
+
+
+
{% if max_depth >= 2 %} @@ -109,66 +173,6 @@ -

Browser Configuration (Lookyloo uses an emulated browser for all captures)

-
- {% if personal_ua %} -
-
-
- - -
-
-
-
Or pick the user agent of your choice:
-
- {% endif %} - -
- -
- -
-
- - {% for os, browsers in user_agents.items() %} - -
- -
- - -
-
- {% for browser, user_agents in browsers.items()%} - - - {% endfor%} - {% endfor%} -
{% if default_public %}