Code: Select all
// ==UserScript==
// @name canParse
// @namespace adoxa
// @include https://proton*/*
// @version 1
// @grant none
// @run-at document-start
// ==/UserScript==
URL.canParse = function (path, base) {
try {
new URL(path, base);
return true;
}
catch (err) {
return false;
}
};


