mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 17:16:00 +03:00
[PR #1737] [MERGED] Reduce code duplication between Chrome utilities #1487
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#1487
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ArchiveBox/ArchiveBox/pull/1737
Author: @pirate
Created: 12/31/2025
Status: ✅ Merged
Merged: 12/31/2025
Merged by: @pirate
Base:
dev← Head:claude/reduce-chrome-duplication-JgWVr📝 Commits (1)
fd9ba86Reduce Chrome-related code duplication across JS and Python📊 Changes
8 files changed (+469 additions, -401 deletions)
View changed files
📝
archivebox/plugins/chrome/chrome_utils.js(+118 -0)📝
archivebox/plugins/chrome/on_Crawl__30_chrome_launch.bg.js(+2 -2)➕
archivebox/plugins/chrome/tests/chrome_test_helpers.py(+276 -0)📝
archivebox/plugins/infiniscroll/tests/test_infiniscroll.py(+25 -111)📝
archivebox/plugins/istilldontcareaboutcookies/on_Crawl__20_install_istilldontcareaboutcookies_extension.js(+5 -61)📝
archivebox/plugins/modalcloser/tests/test_modalcloser.py(+25 -98)📝
archivebox/plugins/twocaptcha/on_Crawl__20_install_twocaptcha_extension.js(+13 -68)📝
archivebox/plugins/ublock/on_Crawl__20_install_ublock_extension.js(+5 -61)📄 Description
This change consolidates duplicated logic between chrome_utils.js and extension installer hooks, as well as between Python plugin tests:
JavaScript changes:
Python test changes:
Net result: ~208 lines of code removed while maintaining same functionality.
Summary
Related issues
Changes these areas
Summary by cubic
Consolidated Chrome extension path/install logic and unified Python test helpers to reduce duplication with no behavior changes. This removes ~208 LOC and makes extension installers and tests simpler to maintain.
New Features
Refactors
Written for commit
fd9ba86220. Summary will update on new commits.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.