Get React module
Ekde
This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyfork.org/scripts/473699/1239332/getReact.js
function getReact() {
return new Promise((resolve) => {
const defineProperty = Object.defineProperty;
Object.defineProperty = function () {
defineProperty.apply(this, arguments);
const prop = arguments[1];
const descriptor = arguments[2];
if (descriptor.get && descriptor.get.a) {
if ("createElement" in descriptor.get.a) {
Object.defineProperty = defineProperty;
resolve(descriptor.get.a);
}
}
}
});
}