MCPcopy Index your code
hub / github.com/violentmonkey/violentmonkey / getFullUrl

Function getFullUrl

src/common/string.js:44–52  ·  view source on GitHub ↗
(url, base)

Source from the content-addressed store, hash-verified

42}
43
44export function getFullUrl(url, base) {
45 let obj;
46 try {
47 obj = new URL(url, base);
48 } catch (e) {
49 return `data:,${e.message} ${url}`;
50 }
51 return obj.href;
52}
53
54export function encodeFilename(name) {
55 // `escape` generated URI has % in it

Callers 1

inferScriptHomeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected