(f)
| 4327 | }); |
| 4328 | } |
| 4329 | function isSameOriginRequest(f) { |
| 4330 | if (!f || !f.url || typeof location === "undefined") return false; |
| 4331 | try { |
| 4332 | return new URL(f.url, location.href).origin === location.origin; |
| 4333 | } catch (e) { |
| 4334 | return false; |
| 4335 | } |
| 4336 | } |
| 4337 | let nativeGMRequest = null; |
| 4338 | if (typeof GM_xmlhttpRequest !== 'undefined') { |
| 4339 | nativeGMRequest = GM_xmlhttpRequest; |