script.js//const macros = {}
import { macros } from "../KatexPhysics/macros.js"
function parse() {
this.settings.macros = macros,
this.gullet.macros.current = macros,
this.settings.globalGroup || this.gullet.beginGroup(),
this.settings.colorIsTextColor && this.gullet.macros.set("\\color", "\\textcolor");
var parse = this.parseExpression(!1);
return this.expect("EOF"),
this.settings.globalGroup || this.gullet.endGroup(),
parse
}
const o_consolelog = console.log;
console.log = function logpatch(...args){
if (args.length == 5 && args[2].type === "verb"){
o_consolelog("patch");
const macro_info = args[2];
let o_handler = macro_info.handler;
macro_info.handler = function(t, i, s){
//o_consolelog(t, i, s);
Object.getPrototypeOf(t.parser).parse = parse;
Object.getPrototypeOf(t.parser.settings).isTrusted = function(t){return true};
console.log = o_consolelog;
macro_info.handler = o_handler;
}
} else {
o_consolelog(...args)
}
}
const app = document.querySelector("#app-container")._reactRootContainer._internalRoot.current.child.stateNode;
const display_style = app._stores.find(obj=>obj.constructor.name=="DisplayStyle");
function forceUpdate(){
display_style.style['hide-dots'] = true;
app.onStoreChange();
display_style.style['hide-dots'] = false;
app.onStoreChange();
}
forceUpdate()