From ba3d4c8497f16ccca13e254da5a91b47229aff09 Mon Sep 17 00:00:00 2001 From: amd64fox <62529699+amd64fox@users.noreply.github.com> Date: Tue, 12 Mar 2024 11:42:33 +0300 Subject: [PATCH] fixed devtools patch --- patches/patches.json | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/patches/patches.json b/patches/patches.json index 698c786..374024b 100644 --- a/patches/patches.json +++ b/patches/patches.json @@ -1617,19 +1617,13 @@ }, "match": [ "(onSelected:).{3,14}({..\"app.enable.developer.mode.,).\\)(,.\\(!0\\))?}", - "(.)\\){((.{5,20}?|)this._cosmos=.,this._product_state)", - "(..\\(.\\)|.)(\\?(..createElement|\\(.{1,7}jsxs\\))\\(.{1,3},{filterMatchQuery:.{2,15}\\(\"settings.employee\"\\))", - "(\"desktop.settings.language-override\".+?)(\\w\\.\\w*\\(..,null\\),|\\w\\.jsx\\)\\(..,\\{}\\),\\(\\d,)", - "(\"Debug Window\")(.*?\"Locales\")", - "desktop.settings.language-override" + "{(.{5,20}?|)(this\\._product_state(?:|_service)=(.))", + "(..\\(.\\)|.)(\\?(..createElement|\\(.{1,7}jsxs\\))\\(.{1,3},{filterMatchQuery:.{2,15}\\(\"settings.employee\"\\))" ], "replace": [ - "$1(check)=>$2check);localStorage.setItem('dev-tools',check);Spotx.ProductState.putOverridesValues({pairs:{'com.spotify.madprops.use.ucs.product.state':check?'1':'0','employee':check?'1':'0'}});setTimeout(()=>{window.sendCosmosRequest({ request:JSON.stringify({method:'POST',uri:'sp://desktop/v1/restart'})})},500);}", - "$1){window.Spotx={ProductState:$1};if(localStorage.getItem('dev-tools')==='true'){$1.putOverridesValues({pairs:{'com.spotify.madprops.use.ucs.product.state':'1','employee': '1'}})};$2", - "true$2", - "$1", - "$1", - "" + "$1(check)=>$2check);localStorage.setItem('dev-tools',check);Spotx.ProductState.putOverridesValues({pairs:{'com.spotify.madprops.use.ucs.product.state':check?'1':'0','employee':check?'1':'0'}});setTimeout(()=>{window.sendCosmosRequest({ request:JSON.stringify({method:'POST',uri:'sp://desktop/v1/restart'})})},700);}", + "{window.Spotx={ProductState:$3};if(localStorage.getItem('dev-tools')==='true'){$3.putOverridesValues({pairs:{'com.spotify.madprops.use.ucs.product.state':'1','employee':'1'}})};$1$2", + "true$2" ] }, "banner_home": {