// ==UserScript== // @name Intercept img src // @match https://bsky.app/* // @match https://deer.social/* // @match https://witchsky.app/* // @run-at document-start // @grant none // ==/UserScript== (function () { const FROM = 'cdn.bsky.app'; const TO = 'cdn.blueat.net'; const desc = Object.getOwnPropertyDescriptor( HTMLImageElement.prototype, 'src' ); Object.defineProperty(HTMLImageElement.prototype, 'src', { set(value) { if (typeof value === 'string' && value.includes(FROM)) { value = value.replaceAll(FROM, TO); } return desc.set.call(this, value); }, get: desc.get, configurable: true, enumerable: true }); })();