bypassCameraRollSelectionLimit.ts (589B) - raw


      1 import { defineModule } from "../types";
      2 import { interceptComponent } from "../utils";
      3 
      4 export default defineModule({
      5     name: "Bypass Camera Roll Selection Limit",
      6     enabled: config => config.bypassCameraRollLimit,
      7     init() {
      8         interceptComponent(
      9             'memories_ui/src/clickhandlers/MultiSelectClickHandler',
     10             'MultiSelectClickHandler',
     11             {
     12                 "<init>": (args: any[], superCall: () => void) => {
     13                     args[1].selectionLimit = 9999999;
     14                     superCall();
     15                 }
     16             }
     17         )
     18     }
     19 });