Flozad / copy-all-urls-extension

This Chrome extension allows users to copy the URLs of all open tabs or selected tabs, and paste them to open new tabs. It's based on the original CopyAllURLs extension, with enhancements and custom features.
https://chromewebstore.google.com/detail/umbrella-copy-all-urls-v3/iodlbflkegnangnopebgjojlgmcbbpdh
MIT License
6 stars 1 forks source link

Copy URL and Paste URL don't work #4

Open casualsailo opened 2 days ago

casualsailo commented 2 days ago

With manifest v2 being deprecated, I'm looking for a replacement to the "Copy All URLs" extension by Vincent and stumbled on this extension

However, I'm having trouble getting it to work. I have V1.4.2 installed

  1. When clicking "Copy URL", the links shown in the text box is for the last opened window. It doesn't show the links for the current window. This looks like a bug

  2. In addition, it also doesn't copy the links to my clipboard. I am expecting clicking "Copy URL" to copy the links to my clipboard, and then I can paste Ctrl + V onto a text editor. Does the extension copy the links to the clipboard?

  3. I can't figure out how to get "Paste URL" to work. I have links copied onto my clipboard, but when I click "Paste URL", nothing happens. I am expecting the links to open. How do you use this?

Thank you!

casualsailo commented 1 day ago

If it helps, these are my settings Umbrella - Copy All URLs V3 settings

Flozad commented 1 day ago

Hey, @casualsailo, thanks for bringing this up. I messed up the core idea of the clipboard with the textarea implementation. Version 1.5.0 includes both ideas. I've been quite low on time lately, but let me know if it accomplishes your use case now or if you would like to add something else.

Flozad commented 1 day ago

For the custom format, use something like this (href="$url") to make it work. It is hard to detect the $url alone.

casualsailo commented 1 day ago

Thanks for working on this!

I tested v1.5.0, and can verify that clicking "Copy URL" shows the links for the current window, and copies to the clipboard.

It would be nice if it mentioned how many URLs was copied (e.g. 5 URLs copied to clipboard!)

In the settings page, there is a "Smart Paste" checkbox. I thought if that was unchecked, when clicking "Paste URL", the extension would treat it as one url per line. If that is not how it works, is that a feature you could add?

I was able to get "Paste URL" to work by changing custom format to (href="$url"), but I ideally would like it to work as one url per line.

In addition, I noticed that pasting URLs only seems to open the https links. It doesn't open the other stuff like chrome://, chrome-extension://, file:///, etc. Are you able to allow the extension to open all links without checking if it is a https one?

I see the 2 radio buttons for pasting from clipboard/textarea. I noticed the extension doesn't remember the last setting; it always defaults to pasting from clipboard.

Thanks

Flozad commented 19 hours ago

@casualsailo, thanks again for the great details.

Changes: When you click "Copy URL," it displays how many URLs were copied.

By unchecking "Smart Paste" in the settings, you can choose to treat each line as a separate URL during paste operations.

The extension now attempts to open all types of URLs during paste, including Chrome://, chrome-extension://, file:///, and others. However, Chrome has some security policies, so some aren't open.

It remembers your last selected paste source (clipboard or textarea)

If you run into more ideas, I'd love to add them.

I'm waiting for version 1.5.1 to be approved, likely in 1 hour.