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

Paste URL broken #3

Closed Keith94 closed 4 days ago

Keith94 commented 4 weeks ago

Pasting https://www.inoreader.com/all_articles with custom format <ref>{{Refurl|url=$url|title=$title}}</ref> results in this:

chrome-extension://djdmadneanknadilpjiknlnanaolmbfk/%3Cref%3E%7B%7BRefurl%7Curl=https://www.inoreader.com/all_articles%7Ctitle=Inoreader%20-%20All%20articles%7Cdate=%7D%7D%3C/ref%3E

Flozad commented 4 weeks ago

The custom state seemed not to be syncing correctly on production. I implemented a change that should fix this; I'll keep you in the loop once Google approves this.

Thanks for bringing the issues up.

cc @Keith94

Flozad commented 4 weeks ago

@Keith94, can you confirm whether this was solved on your side? I tested, and it works, but let me know.

Keith94 commented 4 weeks ago

In 1.2.0 it's still not working. same results

Flozad commented 3 weeks ago

It has problems extracting the URL using custom formatting. I submitted a new version. Let's hope that fixes the error on your end. It's v1.3

Flozad commented 3 weeks ago

@Keith94, it was updated in Chrome. If you confirm it works on your side, I'll move forward and close.

Keith94 commented 3 weeks ago

Oddly the button doesn't paste anything, and when I press the button it scrolls to the bottom of the current page. This happens even if I copied a URL by itself without any extra text

Flozad commented 3 weeks ago

Strange. This is how I'm returning the URL. Is there something different you are trying to do?

https://github.com/user-attachments/assets/b914d912-ba13-4a91-b0a1-41f7ba43e28b

Keith94 commented 3 weeks ago

No, I'm trying to do the same as you. I'm also using Brave, I don't know if that makes a difference though.

Flozad commented 3 weeks ago

@Keith94 try using a format that contains href="",

Like this <ref href="$url">{{Refurl|url=$url|title=$title|date=$date}}</ref>

Just downloaded and tested it in Brave, too.

Keith94 commented 3 weeks ago

With your above snippet it works great !

It doesn't however work with just plain URLs that I copied e.g. with ctrl+c from address bar or some other means.

Maybe I'm just misunderstanding how the button is supposed to work in the first place...?

Flozad commented 4 days ago

Now that I added the textarea in the popup, you can copy it elsewhere and paste it into the input. Remember that it needs to match the text format marked in the options.

let me know if something else comes up or doesn't work on your side.