mirror of
https://github.com/rhunk/SnapEnhance.git
synced 2025-04-29 22:24:35 +02:00
19 lines
589 B
TypeScript
19 lines
589 B
TypeScript
import { defineModule } from "../types";
|
|
import { interceptComponent } from "../utils";
|
|
|
|
export default defineModule({
|
|
name: "Bypass Camera Roll Selection Limit",
|
|
enabled: config => config.bypassCameraRollLimit,
|
|
init() {
|
|
interceptComponent(
|
|
'memories_ui/src/clickhandlers/MultiSelectClickHandler',
|
|
'MultiSelectClickHandler',
|
|
{
|
|
"<init>": (args: any[], superCall: () => void) => {
|
|
args[1].selectionLimit = 9999999;
|
|
superCall();
|
|
}
|
|
}
|
|
)
|
|
}
|
|
}); |