disable share manifest url copy to clipboard, forcing website to trigger fallback url event
https://mediafusion.elfhosted.com/configure
(() => {
// Force any Clipboard API call to fail
const fail = () => Promise.reject(new DOMException('NotAllowedError','NotAllowedError'));
if (navigator.clipboard) {
try { Object.defineProperty(navigator.clipboard, 'writeText', {configurable:true, writable:true, value: fail}); } catch {}
try { navigator.clipboard.writeText = fail; } catch {}
}
// Kill legacy copy path
const origExec = Document.prototype.execCommand;
Document.prototype.execCommand = function(cmd, ...rest) {
if ((cmd||'').toLowerCase() === 'copy') return false;
return origExec.call(this, cmd, ...rest);
};
})();Install requires the InjectJS Chrome extension. Scripts run only on sites matching the pattern above. Review code before installing any community script.