Skip to content

Instantly share code, notes, and snippets.

View bedros-p's full-sized avatar
😁

Bedros Pamboukian bedros-p

😁
View GitHub Profile
@bedros-p
bedros-p / patcherooni.js
Created January 5, 2025 00:27
AI Studio patch to actually get the features users want
// This code structure is the function that provides a stable "reference" so that it gets the proper variable
const regex = /function\(\){var a=new _\...,b=new ..;return _\.(..)\(a,..,1,b\)}/gm;
// Reference to the null checker function used in serialization (and many other things [will filter later])
let nullchecker = ""
let nullcheckerWrapper = Object.keys(default_MakerSuite).find(
(makersuite_key) => {
const key = default_MakerSuite[makersuite_key]
if (typeof key != "function") return false
const sample_obj = {} // Was using for .bind() when testing injecting directly into the store.
// Might reuse later, but I can do things perfectly fine without access to the angular store so it was just unnecessary code