uMatrix icon indicating copy to clipboard operation
uMatrix copied to clipboard

Copy domain name string?

Open Alpengreis opened this issue 10 years ago • 12 comments

In uBlock it's possible to copy domain name strings. It's useful to paste somewhere else. Can you integrate this in uMatrix too?

Kind regards!

Alpengreis avatar Jun 03 '15 22:06 Alpengreis

What browser or you using ?

Snapy avatar Jun 03 '15 22:06 Snapy

I use Firefox.

Alpengreis avatar Jun 04 '15 00:06 Alpengreis

I believe he's talking about copying strings directly from the matrix. Doesn't seem plausible though. Long hostnames would effectively render the cell useless.

0xBRM avatar Jun 04 '15 01:06 0xBRM

Can you integrate this in uMatrix too?

uMatrix is different, all the cells are interactive, including the hostname cells, which is not the case for uBlock. I don't see how I could make this work.

gorhill avatar Jun 04 '15 03:06 gorhill

As CrisBRM said: long hostnames would not senseful, that's clear. So, the display of names should stay.

As idea ...

Variant a) As context-function: "MouseRightButton, copy the name" ...

Variant b) As direct-function: "MiddleMouseButton"

Both variants related always to the actual cell.

Would this be technically feasible with the interactive concept?

Alpengreis avatar Jun 04 '15 15:06 Alpengreis

As direct-function: "MiddleMouseButton"

The middle button idea is interesting. Only the user can copy to the clipboard though, so what the middle button could accomplish is to select the text.

gorhill avatar Jun 04 '15 15:06 gorhill

I thought without manual selection. But as function (I'm not a programmer, maybe as "JS function") ala ...

"If user press middle mouse button in a first column cell take the actual cell-domain-name and copy it to the user-clipboard"?

Alpengreis avatar Jun 04 '15 19:06 Alpengreis

Javascript can't access user clipboard -- that would be awful security-wise if it could.

gorhill avatar Jun 04 '15 20:06 gorhill

Ah, okay - NOW I understand the problem ...

As (last?) idea:

a TEMPORARY/OPTIONALLY expandable first column to display larger strings (also with a > symbol) ...

with the possibility to copy and paste the string?

Alpengreis avatar Jun 04 '15 21:06 Alpengreis

How is your opinion about my last idea?

Alpengreis avatar Nov 08 '15 01:11 Alpengreis

can just bring up an alert popup with the string selected in a textbox once middle clicked

maybe not pretty but at least its only accessible if middle clicked