🔍 Crx搜搜
Open Selected Links
Natarajan Krishnaswami

Opens multiple links in the selected content in the current or new window or a tab group.

4.1
29
6000 位用户
1.8.9

截图预览

概述
翻译

When viewing a page containing a list of links you want to open, such as a list of references in Wikipedia or a paper, it's convenient to be able to open them all at once rather than opening and dragging one at a time. This extension adds context menus item for selections to open all the links contained in them in the current window (optionally in a new tab group) or a new window. Alternatively, you can bring up the extension's popup menu to choose exactly which links to open (and now, you can also filter the link text with a regular expression!), whether to open them in the current or a new window, and whether to add them to a new or existing tab group. You can also open the tabs "snoozed" to reduce memory footprint prior to reading the tabs. Finally, you can set up keyboard shortcuts to open selected links with a keystroke. What's new in Version 1.8.9 * Hovering (or arrowing to) a link in the popup now highlights the text on the page (#40) * The content script recorded the links it found from a *copy* of the selection (`Range.cloneContents()`), so the highlight was applied to detached copies the user never sees; it only worked when the whole selection was inside a single link * It now records the page's own link elements, while still labelling a partly selected link with just its selected text * Fix typing a new tab group name in the popup on Firefox (#40) * The "type anywhere to jump into the filter" handler also caught keystrokes typed into the tab group name box, so after the first character focus jumped to the filter and the rest of the name went there instead * The handler now leaves keystrokes in text fields alone * Expand test coverage (#40) * Unit tests for the background service worker: context-menu registration, every menu item and keyboard command, copy, frame targeting, deduplication, focus, and incognito window selection * Chrome and Firefox e2e tests for opening links into a named tab group and into a new window, hover highlighting, and typing a tab group name What's new in Version 1.8.8 * Fix shadow-root behavior and fall back to aria-label as well as title and alt text when link text content not available. (#39) What's new in Version 1.8.7 * Fix links silently not opening on a freshly loaded page (#38) * The injected content script is a lightweight loader that kicks off an async import of the real module and returns immediately, so its message listener could still be registering when the next request went out * `setup()` now polls until the content script actually responds instead of guessing a delay * Fix a crash in the popup's link filter when a regex match ended at the very last character of the link list * `highlightRegex` dereferenced a possibly-null `TreeWalker` node after walking off the end of the text, throwing and aborting highlighting of any earlier matches in the same filter pass * Also fixes a related off-by-one that could wrap a spurious empty highlight span around the start of the next text node when a match landed exactly on a node boundary * Fix a console error on every keystroke in the popup * The "type anywhere to jump into the filter" handler redispatched the same (already-dispatching) keypress event onto the filter, which is a DOM-spec violation and always threw `InvalidStateError` * Moving focus to the filter while the native keypress is still bubbling was already enough for the browser to deliver the character there; the redispatch was unnecessary as well as broken * Show a friendly message when opening links fails * The popup's Open button showed the raw `Error` object's default string (e.g. `Error: No group with id: 12345.`) instead of the curated title/subtitle messaging used everywhere else in the popup * Now shows "Unable to open links" as the title with the underlying error as the subtitle * Add keyboard navigation to the popup's link list * ArrowUp/ArrowDown move focus across the currently visible (unfiltered) rows; Space toggles the focused row's checkbox * Focusing a row via the keyboard highlights the corresponding link on the page, matching the existing mouse-hover behavior * Extract links from image-map areas and formaction buttons (#24) * `` inside `` (image maps) and `

留言