MCPcopy
hub / github.com/xcanwin/KeepChatGPT / parseRequestUrl

Function parseRequestUrl

KeepChatGPT.user.js:415–424  ·  view source on GitHub ↗
(requestUrl)

Source from the content-addressed store, hash-verified

413 };
414
415 const parseRequestUrl = function (requestUrl) {
416 if (typeof requestUrl !== "string" || requestUrl.trim() === "") {
417 return null;
418 }
419 try {
420 return new URL(requestUrl, location.origin);
421 } catch (e) {
422 return null;
423 }
424 };
425
426 const isTrackingRequest = function (requestUrl) {
427 if (typeof requestUrl !== "string" || requestUrl.trim() === "") {

Callers 1

isTrackingRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected