Skip to content

Commit

Permalink
new: Optionally disable JS in capture.
Browse files Browse the repository at this point in the history
Fix #30
  • Loading branch information
Rafiot committed Oct 10, 2024
1 parent eabbd8d commit 6bd6d7d
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 15 deletions.
51 changes: 37 additions & 14 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ redis = {version = "^5.1.1", extras = ["hiredis"]}
flask-restx = "^1.3.0"
werkzeug = "^3.0.4"
gunicorn = {version = "^23.0.0", extras = ["setproctitle"]}
lacuscore = "^1.11.0"
lacuscore = "^1.11.1"
rich = "^13.9.2"
psutil = "^6.0.0"

Expand Down
2 changes: 2 additions & 0 deletions website/web/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def get(self) -> bool:
'timezone_id': fields.String(description="The timezone ID of the browser", example='Europe/Paris'),
'locale': fields.String(description="The locale of the browser", example='en-US'),
'color_scheme': fields.String(description="The color scheme of the browser", example='dark'),
'java_script_enabled': fields.Boolean(description="If False, javascript won't be executed when rendering the page", example=True),
'referer': fields.String(description="Referer to pass to the capture", example='https://circl.lu'),
'with_favicon': fields.Boolean(description="Attempts to get favicons related to the landing page of the capture", example=False),
'allow_tracking': fields.Boolean(description="Attempt to let the website violate your privacy", example=False),
Expand Down Expand Up @@ -126,6 +127,7 @@ def post(self) -> str:
timezone_id=to_query.get('timezone_id'),
locale=to_query.get('locale'),
color_scheme=to_query.get('color_scheme'),
java_script_enabled=to_query.get('java_script_enabled', True),
referer=to_query.get('referer'),
with_favicon=to_query.get('with_favicon', False),
allow_tracking=to_query.get('allow_tracking', False),
Expand Down

0 comments on commit 6bd6d7d

Please sign in to comment.