Commit Graph
64 Commits
Author SHA1 Message Date
xixu-me 1f74a391b7 Add URL converter link to popup menu
A new link to the URL converter (https://xuc.xi-xu.me/) has been added to the popup menu for easier access.
2025-08-19 18:56:54 +08:00
xixu-me a57fddb857 Merge pull request #10 from xixu-me/dependabot/github_actions/github-actions-a331d3ec2d
actions(deps): bump actions/checkout from 4 to 5 in the github-actions group
2025-08-18 21:53:50 +08:00
xixu-me e80768c70a Merge pull request #7 from xixu-me/dependabot/github_actions/github-actions-cd7291ea65
actions(deps): bump actions/setup-python from 4 to 5 in the github-actions group
2025-08-11 23:24:08 +08:00
xixu-me 06a503eab0 Improve WebExtension API compatibility and error handling
Adds robust error handling for missing or inaccessible WebExtension APIs, including safe fallbacks for runtime, tabs, and downloads. Enhances sendMessage wrappers for both runtime and tabs to handle various argument patterns and errors gracefully. Exports the compatibility layer in more environments (window, self, global) and logs the environment where it is loaded. This improves reliability in diverse extension contexts and non-browser environments.
2025-08-10 20:18:56 +08:00
xixu-me 77e525b64e Add Edge extension link to README
Included a link to the Microsoft Edge add-on for Xget in the list of places to leave a review.
2025-08-10 19:19:09 +08:00
xixu-me 77198bcb62 Remove benchmark section from README
The benchmark table and related notes have been removed from the documentation, possibly to avoid outdated or location-dependent performance claims.
2025-08-10 19:14:42 +08:00
xixu-me 796d50182e Add Firefox support and update cross-browser documentation
Expanded extension support to include Firefox alongside Chromium browsers. Updated README with detailed installation, build, and troubleshooting instructions for both Chromium and Firefox, clarified browser compatibility, and improved cross-browser guidance throughout code comments and documentation. Minor terminology changes were made in scripts and workflow files to consistently refer to 'Chromium' instead of 'Chrome/Chromium'.
2025-08-10 19:12:03 +08:00
xixu-me 95bb7d56f9 Refactor and document build, dev, and extension scripts
Added detailed docstrings and comments to Python build and dev scripts, improving maintainability and clarity. Enhanced JavaScript files (background.js, content.js, popup.js, platform-detector.js, webext-compat.js) with module-level and function-level documentation. Standardized package naming in build.py and updated the GitHub Actions workflow for simplified, platform-agnostic publishing, removing platform selection input and automating release steps for Chrome, Edge, and Firefox. Improved code quality checks and test coverage in dev.py.
2025-08-10 18:43:32 +08:00
xixu-me 3019487608 Simplify release workflow and remove Firefox notes
Removed detailed Firefox-specific release notes and manual Firefox publishing reminders from the GitHub Actions workflow. The release step now relies on auto-generated release notes, streamlining the publishing process for multi-browser support.
2025-08-10 14:09:03 +08:00
xixu-me 74759cae4f Update Firefox extension ID in manifest
Changed the gecko extension ID from 'xget-now@xixu.me' to 'i@xi-xu.me' and removed the deprecated 'applications' field. This aligns the manifest with current Firefox extension manifest standards.
2025-08-10 14:06:04 +08:00
xixu-me 8babb688a6 Merge pull request #6 from xixu-me/alert-autofix-4
Potential fix for code scanning alert no. 4: Workflow does not contain permissions
2025-08-10 13:50:24 +08:00
xixu-meandCopilot Autofix powered by AI 4e8f821de4 Potential fix for code scanning alert no. 4: Workflow does not contain permissions
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-08-10 13:48:05 +08:00
xixu-me 130eec751f Add Firefox support and cross-browser compatibility layer
This update introduces full Firefox support using a new manifest-firefox.json (Manifest V2), adds a webext-compat.js compatibility layer for unified API usage, and refactors all extension scripts (background.js, content.js, popup.js) to use the new webext API. The build and development process is automated with new Python scripts (build.py, dev.py), and GitHub Actions workflows are updated to support multi-platform build, test, and release. Platform detection and capability abstraction are added, and all relevant files and manifests are updated for cross-browser compatibility.
2025-08-10 13:44:08 +08:00
xixu-me ad5b3cae72 Refactor download event handling and redirection logic
Prevents multiple registrations of the download listener and refactors the download handling logic to immediately call suggest, then process redirection asynchronously. Improves error handling and notification logic for redirected downloads.
2025-08-10 12:24:44 +08:00
xixu-me ed3a4c0ee3 Prevent multiple suggest calls in handleDownload
Introduces a guard to ensure the suggest callback is only called once in handleDownload, avoiding potential issues from multiple invocations in error or early return scenarios.
2025-08-10 12:12:23 +08:00
xixu-me 367c9fee96 Rename extension from Xget for Chromium to Xget Now
Updated all references, documentation, metadata, and user-facing strings to use the new name 'Xget Now' instead of 'Xget for Chromium'. This includes changes in issue templates, workflow files, privacy and security policies, README, manifest, package.json, popup UI, and code comments/logs. Repository URLs and links have also been updated to reflect the new project name.
2025-08-10 12:06:54 +08:00
xixu-me 12d2a235bf Add compact style for setting group and label
Introduced 'compact' classes for .setting-group and .setting-label to adjust padding and margin for a more condensed layout. Applied these classes to the extension enable setting for improved UI spacing.
2025-08-08 21:56:37 +08:00
xixu-me 3966bae9c0 Enhance scrollbars and scrolling UX in popup
Improved the appearance and behavior of scrollbars in the .content and .platforms sections with custom styles, smooth scrolling, and auto-hide features. Added JavaScript logic for dynamic scrollbar visibility, visual feedback during scrolling, and keyboard navigation support for better accessibility and user experience.
2025-08-08 21:53:00 +08:00
xixu-me 8b576adbba Improve popup UI with modern styles and status animation
Refactors popup.html with enhanced CSS for a more modern, visually appealing interface, including new color variables, gradients, and interactive effects. Updates status message handling in popup.js to animate hiding with CSS transitions. Also updates some UI text and icons for clarity and consistency.
2025-08-08 21:42:14 +08:00
xixu-me 09e87db44a Add support for 20+ platforms and UI overhaul
Expanded download acceleration support to over 20 platforms including npm, PyPI, Maven, RubyGems, CRAN, SourceForge, arXiv, F-Droid, and more. Refactored platform configuration into a dedicated file, updated content/background scripts for broader detection and redirection, and redesigned the popup UI for categorized platform toggles. Updated manifest, package metadata, and documentation to reflect the new capabilities and version 2.0.0.
2025-08-08 21:17:24 +08:00
xixu-me d37b67c320 Update README.md 2025-07-30 10:10:34 +08:00
xixu-me 9f9a544b00 Update README.md 2025-07-26 07:57:51 +08:00
xixu-me 69cf36da68 Add Crx 搜搜 mirror link to README
Added a new row in the download table with a link to view the extension on Crx 搜搜 as a mirror source.
2025-07-23 20:21:36 +08:00
xixu-me 3183c24ae8 Update license wording in README
Changed the wording from '本项目' (this project) to '本存储库' (this repository) in the license section for improved clarity.
2025-07-21 19:41:57 +08:00
xixu-me 4dbd0ea25f Update installation instructions in README
Clarified the step to download and extract the latest release file before installing the extension in Chromium-based browsers.
2025-07-21 18:11:32 +08:00
xixu-me aba18148a7 Update GitHub Releases link to latest release
Changed the Releases page link in the README to point directly to the latest release for easier access to the most recent extension version.
2025-07-21 18:03:33 +08:00
xixu-me ef4009b913 Simplify extension packaging to a single zip file
Consolidated Chrome and Edge extension packages into a single 'extension.zip' for all Chromium-based browsers. Removed CRX packaging and updated workflow, release notes, and README to reflect the unified distribution method.
2025-07-21 17:59:56 +08:00
xixu-me 5a210a1d0a Update Chrome references in docs and workflow
Replaced 'Chrome 浏览器' with 'Chrome' in both the publish workflow and README for consistency and clarity.
2025-07-21 17:49:24 +08:00
xixu-me 1f154e475d Update Chrome Web Store URLs in docs and workflow
Corrected the Chrome Web Store links in both the README and GitHub Actions workflow to remove the redundant '/xget-for-chrome' path segment. This ensures users are directed to the correct extension page.
2025-07-21 17:47:02 +08:00
xixu-me aba0591c3d Update Chrome Web Store references and links
Renamed all references from 'Chrome 网上应用店' to 'Chrome 应用商店' in workflow and README for consistency. Updated Chrome Web Store and Microsoft Edge Add-ons links to include language and region parameters.
2025-07-21 17:41:23 +08:00
xixu-me 18a863a73b Update extension description and manifest formatting
Revised the extension description in both manifest.json and package.json to clarify supported sites and improve user understanding. Also updated manifest.json formatting for consistency and readability.
2025-07-19 14:52:42 +08:00
xixu-me 599d0c6217 Update GitHub links to Xget-for-Chromium
Replaces all incorrect or broken GitHub URLs referencing 'Xget for Chromium' with the correct 'Xget-for-Chromium' format across documentation, workflow, package.json, and popup.html. This ensures consistency and prevents navigation errors for users and contributors.
2025-07-18 20:13:04 +08:00
xixu-me 37a326486b Rename extension references from Chrome to Chromium
Updated all documentation, configuration, and code references from 'Xget for Chrome' to 'Xget for Chromium' for consistency with the supported browser family. This includes issue templates, workflow files, privacy and security policies, README, manifest, package metadata, background and content scripts, and popup UI.
2025-07-18 20:09:45 +08:00
xixu-me f3830e66d4 Update privacy policy for Edge support and date
Clarified that extension settings sync applies to both Chrome and Microsoft Edge, and updated the last modified date to 2025-07-18.
2025-07-18 20:07:37 +08:00
xixu-me d24429fdfa Revert "Rename extension references to Chromium"
This reverts commit ef7aca33f7.
2025-07-18 20:04:44 +08:00
xixu-me ef7aca33f7 Rename extension references to Chromium
Updated all documentation, configuration, and code references from 'Xget for Chrome' to 'Xget for Chromium' for consistency with supported browsers. This includes issue templates, workflow files, privacy and security policies, source code logs, manifest, and popup UI.
2025-07-18 20:03:21 +08:00
xixu-me 36e6eea15b Update manual install guide link in workflow
Changed the manual installation guide link in publish-extension.yml to use the correct anchor for installation instructions in Chinese.
2025-07-12 18:23:11 +08:00
xixu-me a4c5a681d5 Merge branch 'main' of https://github.com/xixu-me/Xget-for-Chrome 2025-07-12 18:19:30 +08:00
xixu-me 1c80aedf67 Update publish message formatting in workflow
Removed the 'v' prefix from the version variable in the success notification message to ensure consistent formatting when publishing the Chrome extension.
2025-07-12 18:19:27 +08:00
xixu-me de7b76b150 Localize publish workflow to Chinese
Translated all workflow names, step descriptions, comments, and release notes in .github/workflows/publish-extension.yml from English to Chinese to improve accessibility for Chinese-speaking developers.
2025-07-12 18:16:24 +08:00
xixu-me d37e74e53f Update privacy policy and README wording
Revised PRIVACY_POLICY.md for clarity, transparency, and updated effective date. README.md wording changed from '仓库' to '存储库' for consistency, and other minor language improvements for accuracy and readability.
2025-07-12 10:57:37 +08:00
xixu-me a1e258a4b8 Localize documentation and extension messages to Chinese
Converted all major documentation files (README, PRIVACY_POLICY, SECURITY, pull request template) to Chinese. Updated extension source files (background.js, content.js, popup.html, popup.js) to use Chinese comments and user-facing messages for improved localization and user experience.
2025-07-12 10:49:56 +08:00
xixu-me 40103d8a05 Update README.md 2025-07-11 22:32:54 +08:00
xixu-me bc0772f292 Update Microsoft Edge Add-ons store link
Changed the Microsoft Edge Add-ons store link in both the workflow and README to reflect the new extension URL.
2025-07-11 19:08:07 +08:00
xixu-me 3094b7970f Update release notes formatting in workflow
Improved the formatting of the release notes in the publish-extension workflow by changing headings to use '##' and removing redundant version references. Also removed the 'Changes' section to streamline the release body.
2025-07-11 18:40:56 +08:00
xixu-me e52c4c3ec6 Add dynamic tag and name to GitHub Release step
The GitHub Release workflow now sets the release tag and name using the extension version output, improving release traceability and automation.
2025-07-11 18:35:55 +08:00
xixu-me 2cec4362a8 Switch publish workflow to manual version input
Changed the GitHub Actions workflow to use workflow_dispatch with a required version input instead of triggering on version tags. Added steps to commit and push version updates, create and push tags, and updated release link formatting.
2025-07-11 18:25:48 +08:00
xixu-me 5b215f2aa2 Clarify extension installation instructions
Updated references to Chrome, Microsoft Edge, and Chromium-based browsers in workflow and README to improve clarity. Installation steps and file descriptions now more accurately reflect supported browsers and manual installation options.
2025-07-11 18:20:28 +08:00
xixu-me aa590fcd9a Improve host validation for download link detection
Refactored isDownloadLink to use URL parsing for host checks on GitHub and Hugging Face links, improving accuracy and robustness. Added error handling for invalid URLs and clarified host-specific download patterns.
2025-07-11 17:56:26 +08:00
xixu-me b08a854da6 Merge pull request #3 from xixu-me/alert-autofix-1
Potential fix for code scanning alert no. 1: Workflow does not contain permissions
2025-07-11 17:49:50 +08:00
xixu-meandCopilot Autofix powered by AI 6a8c88930b Potential fix for code scanning alert no. 1: Workflow does not contain permissions
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-07-11 17:49:37 +08:00
xixu-me 417e7bbf07 Merge pull request #2 from xixu-me/alert-autofix-3
Potential fix for code scanning alert no. 3: Incomplete URL substring sanitization
2025-07-11 17:48:28 +08:00
xixu-me 7cf2c55368 Merge pull request #1 from xixu-me/dependabot/github_actions/github-actions-45154b2adb
actions(deps): bump softprops/action-gh-release from 1 to 2 in the github-actions group
2025-07-11 17:47:36 +08:00
xixu-meandCopilot Autofix powered by AI b915e32b6b Potential fix for code scanning alert no. 3: Incomplete URL substring sanitization
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-07-11 17:46:51 +08:00
xixu-me 1bf90efe75 Add Dependabot configuration for npm and Actions
Introduces .github/dependabot.yml to automate dependency updates for npm packages and GitHub Actions. Sets weekly update schedule, groups related dependencies, and assigns/reviews PRs to xixu-me.
2025-07-11 17:46:00 +08:00
xixu-me d1f12eb1a7 Simplify installation instructions and update store links
Streamlined installation steps in README and workflow release notes for clarity. Updated Chrome Web Store and Edge Add-ons links to direct URLs, removed redundant manual installation details, and improved formatting for easier user navigation.
2025-07-11 17:41:55 +08:00
xixu-me 4e97380fcd Refactor CRX packaging in publish workflow
Replaces the previous CRX creation process with a more explicit file selection and temporary directory for packaging. Adds verification steps and cleanup to improve reliability and clarity of the extension build process.
2025-07-11 17:26:36 +08:00
xixu-me 013026a983 Update Edge Add-on publish action to v2
Upgrades the Edge Add-on GitHub Action from v1 to v2, updates input parameters to use api-key and notes-for-certification, and removes unused client-secret and access-token-url fields for improved compatibility and automation.
2025-07-11 17:01:22 +08:00
xixu-me 1b9b4ef0d2 Update store availability section in README
Simplified the store availability table and quick install instructions. Added direct links and improved clarity for Chrome Web Store and Microsoft Edge Add-ons.
2025-07-11 16:45:11 +08:00
xixu-me 90d44ddd8d Add multi-store publish workflow and update docs
Replaces the Chrome-only publish workflow with a new GitHub Actions workflow that automates publishing to both Chrome Web Store and Microsoft Edge Add-ons, and creates GitHub releases with multiple extension formats. Updates README with new installation instructions, store availability table, and details about automated publishing for maintainers.
2025-07-11 16:19:22 +08:00
xixu-me 4f5ef1440b Add resource links section to popup
Introduces a new section with styled links to the Xget service deployment and source code/documentation in the popup. Includes related CSS for layout and hover effects.
2025-07-11 15:56:27 +08:00
xixu-me d4ea5a6cc3 Remove unused permissions from manifest.json
Removed 'webRequest' and 'declarativeNetRequest' permissions from the Chrome extension manifest as they are no longer required.
2025-07-10 17:09:18 +08:00
xixu-me e4257b105c Reformat manifest.json for consistency
Updated the formatting of arrays in manifest.json for improved readability and consistency. No functional changes were made.
2025-07-09 18:03:38 +08:00
xixu-me 84436e7998 Initial commit 2025-07-09 17:58:55 +08:00