MCPcopy
hub / github.com/Tampermonkey/tampermonkey / determineSourceURL

Function determineSourceURL

src/background.js:2810–2820  ·  view source on GitHub ↗
(o, add_ts)

Source from the content-addressed store, hash-verified

2808};
2809
2810var determineSourceURL = function(o, add_ts) {
2811 if (!o) return null;
2812
2813 var f = null;
2814
2815 if (o.fileURL && o.fileURL.search('^file://' == -1)) f = o.fileURL;
2816 if (o.downloadURL && o.downloadURL.search('^file://' == -1)) f = o.downloadURL;
2817 if (f && add_ts) f = ts_ify(f);
2818
2819 return f;
2820};
2821
2822var determineMetaURL = function(o, add_ts) {
2823 if (!o) return null;

Callers 2

realCheckFunction · 0.85
background.jsFile · 0.85

Calls 1

ts_ifyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…