@@ -66,7 +66,7 @@ function cleanupAllTimers() {
6666 activeTimeouts . clear ( ) ;
6767}
6868
69- const APP_VERSION = `2.55 ` ;
69+ const APP_VERSION = `2.56 ` ;
7070const SCRIPTS = {
7171 "hundredX" : { path : './src/tweaks/hundredX.js' , code : "" } ,
7272 "catchFetch" : { path : "./src/tweaks/catchFetch.js" , code : "" } ,
@@ -634,6 +634,32 @@ async function handleRequest(request) {
634634 result = await nukeCookies ( ) ;
635635 break ;
636636
637+ case 'safe-nuke-localstorage' :
638+ console . log ( 'mp-tweaks: safe nuke localStorage' ) ;
639+ result = await runScript ( ( ) => {
640+ const total = localStorage . length ;
641+ console . log ( `mp-tweaks: [Safe Nuke] START — ${ total } total localStorage keys` ) ;
642+ const keys = Object . keys ( localStorage ) . filter ( key => key . includes ( '$mp_current_project_client_cache' ) ) ;
643+ keys . forEach ( key => localStorage . removeItem ( key ) ) ;
644+ console . log ( `mp-tweaks: [Safe Nuke] END — removed ${ keys . length } of ${ total } keys` ) ;
645+ return { removed : keys . length , total } ;
646+ } ) ;
647+ result = result ?. [ 0 ] ?. result ;
648+ break ;
649+
650+ case 'real-nuke-localstorage' :
651+ console . log ( 'mp-tweaks: real nuke localStorage' ) ;
652+ result = await runScript ( ( ) => {
653+ const total = localStorage . length ;
654+ console . log ( `mp-tweaks: [Real Nuke] START — ${ total } total localStorage keys` ) ;
655+ const keys = Object . keys ( localStorage ) . filter ( key => key . startsWith ( '$mp_' ) ) ;
656+ keys . forEach ( key => localStorage . removeItem ( key ) ) ;
657+ console . log ( `mp-tweaks: [Real Nuke] END — removed ${ keys . length } of ${ total } keys` ) ;
658+ return { removed : keys . length , total } ;
659+ } ) ;
660+ result = result ?. [ 0 ] ?. result ;
661+ break ;
662+
637663 case 'reload' :
638664 console . log ( 'mp-tweaks: reloading page' ) ;
639665 await runScript ( reload ) ;
@@ -711,18 +737,18 @@ async function waitUntil(promise) {
711737
712738async function runAIMacro ( macroType , params ) {
713739 const endpoints = {
714- 'e2e' : 'https://mixpanel-power-tools-api-lmozz6xkha-uc.a.run.app/ai-e2e' ,
715- 'replay' : 'https://mixpanel-power-tools-api-lmozz6xkha-uc.a.run.app/meeple-job' ,
716- 'dataset' : 'https://mixpanel-power-tools-api-lmozz6xkha-uc.a.run.app/ai-dataset' ,
717- 'extend-dataset' : 'https://mixpanel-power-tools-api-lmozz6xkha-uc.a.run.app/ai-extend-dataset' ,
718- 'schema' : 'https://mixpanel-power-tools-api-lmozz6xkha-uc.a.run.app/ai-schema' ,
719- 'merge' : 'https://mixpanel-power-tools-api-lmozz6xkha-uc.a.run.app/ai-merge' ,
720- 'show-hide' : 'https://mixpanel-power-tools-api-lmozz6xkha-uc.a.run.app/ai-show-hide' ,
721- 'dashboard' : 'https://mixpanel-power-tools-api-lmozz6xkha-uc.a.run.app/ai-dash-gen' ,
722- 'behaviors-metrics' : 'https://mixpanel-power-tools-api-lmozz6xkha-uc.a.run.app/ai-behaviors-metrics' ,
723- 'tags' : 'https://mixpanel-power-tools-api-lmozz6xkha-uc.a.run.app/ai-tags' ,
724- 'rename-reports' : 'https://mixpanel-power-tools-api-lmozz6xkha-uc.a.run.app/ai-rename-reports' ,
725- 'rename-entities' : 'https://mixpanel-power-tools-api-lmozz6xkha-uc.a.run.app/ai-rename-entities'
740+ 'e2e' : 'https://mixpanel-power-tools-api-lmozz6xkha-uc.a.run.app/macro/ ai-e2e' ,
741+ 'replay' : 'https://mixpanel-power-tools-api-lmozz6xkha-uc.a.run.app/macro/ meeple-job' ,
742+ 'dataset' : 'https://mixpanel-power-tools-api-lmozz6xkha-uc.a.run.app/macro/ ai-dataset' ,
743+ 'extend-dataset' : 'https://mixpanel-power-tools-api-lmozz6xkha-uc.a.run.app/macro/ ai-extend-dataset' ,
744+ 'schema' : 'https://mixpanel-power-tools-api-lmozz6xkha-uc.a.run.app/macro/ ai-schema' ,
745+ 'merge' : 'https://mixpanel-power-tools-api-lmozz6xkha-uc.a.run.app/macro/ ai-merge' ,
746+ 'show-hide' : 'https://mixpanel-power-tools-api-lmozz6xkha-uc.a.run.app/macro/ ai-show-hide' ,
747+ 'dashboard' : 'https://mixpanel-power-tools-api-lmozz6xkha-uc.a.run.app/macro/ ai-dash-gen' ,
748+ 'behaviors-metrics' : 'https://mixpanel-power-tools-api-lmozz6xkha-uc.a.run.app/macro/ ai-behaviors-metrics' ,
749+ 'tags' : 'https://mixpanel-power-tools-api-lmozz6xkha-uc.a.run.app/macro/ ai-tags' ,
750+ 'rename-reports' : 'https://mixpanel-power-tools-api-lmozz6xkha-uc.a.run.app/macro/ ai-rename-reports' ,
751+ 'rename-entities' : 'https://mixpanel-power-tools-api-lmozz6xkha-uc.a.run.app/macro/ ai-rename-entities'
726752 } ;
727753
728754 const url = endpoints [ macroType ] ;
0 commit comments