I'm trying to figure out how to have the download url automatically get copied to the clipboard with each request, but can't figure it out.
I can do it based on user click action in popup.js by adding 'navigator.clipboard.writeText(req.url);' after showCommand(req.id);
I'm guessing if I want this to happen automatically is to make a change in background.js, but I'm not quite sure where.
I tried adding navigator.clipboard.writeText(???) in several functions but it doesn't work.
I'm trying to figure out how to have the download url automatically get copied to the clipboard with each request, but can't figure it out.
I can do it based on user click action in popup.js by adding 'navigator.clipboard.writeText(req.url);' after showCommand(req.id);
I'm guessing if I want this to happen automatically is to make a change in background.js, but I'm not quite sure where. I tried adding navigator.clipboard.writeText(???) in several functions but it doesn't work.
Sorry, but I'm not a javscript developer.