MCPcopy
hub / github.com/philc/vimium / linkActivator

Function linkActivator

content_scripts/link_hints.js:96–106  ·  view source on GitHub ↗
(link)

Source from the content-addressed store, hash-verified

94 name: "link",
95 indicator: "Copy link URL to Clipboard",
96 linkActivator(link) {
97 if (link.href != null) {
98 let url = link.href;
99 if (url.slice(0, 7) === "mailto:") url = url.slice(7);
100 HUD.copyToClipboard(url);
101 if (28 < url.length) url = url.slice(0, 26) + "....";
102 HUD.show(`Yanked ${url}`, 2000);
103 } else {
104 HUD.show("No link to yank.", 2000);
105 }
106 },
107};
108const OPEN_INCOGNITO = {
109 name: "incognito",

Callers 1

activateLinkMethod · 0.85

Calls 1

showMethod · 0.45

Tested by

no test coverage detected