Enable Copy Extension 版本紀錄 - 3 個版本
Enable Copy Extension 作者: olevegic
Enable Copy Extension 版本紀錄 - 3 個版本
小心舊版本!這些版本只是提供來測試與參考用。您應該隨時用最新版的附加元件。
最新版本
版本 2.0.0
發行於 2025年4月13日 - 28.5 KB適用於 firefox 109.0 與更新版本Changelog
[2.0.0] - 2025-04-13
This is a major update introducing operational modes, a whitelist, and significant internal improvements.
Added
Standard Mode: The new default mode. Uses CSS overrides (user-select
,pointer-events
) and capture-phase event listeners (copy
,cut
,contextmenu
,selectstart
,mousedown
) to enable copying. Designed for broad compatibility with minimal site interference.
Force Mode:An aggressive mode for stubborn websites. Includes all Standard Mode features PLUS an override ofEventTarget.prototype.addEventListener
within the content script to block sites from adding new restrictive listeners. Warning: This mode is risky and may break website functionality.
Whitelist Functionality: Users can now disable the extension on specific domains.
Added an "Disable on this site" button to the popup for quick whitelisting.
Created a dedicated 'Options Page' for viewing, adding, and removing domains from the whitelist.
Popup UI Overhaul:
Clear button to toggle the global enabled/disabled state.
Button to switch between Standard and Force modes for the active tab.
Buttons for quick whitelisting and accessing the Options page.
Status indicators for whitelisted sites or incompatible pages.
Detailed logging for debugging purposes (primarily in development builds).
Changed
Core Logic: Reworked the internal state management and communication between background, popup, and content scripts for better reliability.
Manifest V3:Migrated the extension to Manifest Version 3.
Default Behavior: The extension now defaults to Standard Mode when enabled on a non-whitelisted page. Force Mode must be explicitly activated.
Popup Interaction: The popup now queries the background script for the authoritative state of the current tab on opening.
Fixed
State Restoration (Standard Mode): Disabling the extension (or switching modes) now attempts to properly restore original element attributes (oncopy
, etc.) and inline styles (user-select: none
) that were modified by the extension in Standard Mode.
Badge UpdatesImproved reliability of the extension icon badge updating based on the current tab's state (ON, OFF, F).
Handled edge cases related to browser-specific pages (about:
,chrome://
, etc.) where the content script shouldn't run or modify state.原始碼依照 MIT License 條款釋出
下載 Firefox 並安裝擴充套件必須使用 Firefox 才能使用此擴充套件