localoni / figma-ui3

Enable Figma UI3 for Windows and MacOS
5 stars 0 forks source link

Not work #1

Open aunight opened 2 months ago

aunight commented 2 months ago

window 10 not work

localoni commented 2 months ago

window 10 not work

Don't forget to Clear cache and restart in Figma It should not have any relations with windows version.

aunight commented 2 months ago

I clean a lots of time but still don't work

DvT093 commented 2 months ago

It works for me but what the author forgot to mention is that in Proxyman in the left sidebar, in Apps you have to right click Figmahelper and click Enable SSL proxying.

aunight commented 1 month ago

It works for me but what the author forgot to mention is that in Proxyman in the left sidebar, in Apps you have to right click Figmahelper and click Enable SSL proxying.

But I can't find figmahelper and enable ssl proxying. Do you have any image to help me find this?

allinone12 commented 1 month ago

It works for me but what the author forgot to mention is that in Proxyman in the left sidebar, in Apps you have to right click Figmahelper and click Enable SSL proxying.

But I can't find figmahelper and enable ssl proxying. Do you have any image to help me find this?

image
allinone12 commented 1 month ago

btw, I've tried this method many times (also figmahelper with SSL proxying) but it doesn't work ;(

amir2mi commented 1 month ago

@allinone12 If you do not see Figmahelper or other apps it is most likely because of having VPN, check this out.

DvT093 commented 1 month ago

Ok make sure you pressed the Play button ('Start recording') and then start Figma so it starts recording all network calls made by Figma. You'll notice Figma does its calls using Figma Helper, not necessarily via the Figma.app.

EDIT: check my next post, something has changed.

And maybe I did some tweaks in the script. This is my setup:

URL: https:\/\/.*figma.*\.min\.js\.br$ + setting Use Regex

async function onResponse(context, url, request, response) {
    try {
        console.log('URL fetched successfully:', url);
        if (url.includes('figma_app-') && url.includes('.min.js.br') && !url.includes('runtime~figma_app')) {
            console.log('URL matches pattern');
            let data = response.body;

        // Use string replacement methods
        let modifiedContent = data.replace(/e\?"ui3":"ui2"/g, '"ui3"');
        modifiedContent = modifiedContent.replace(/c\(e\)?"ui3":"ui2"/g, '"ui3"');
        modifiedContent = modifiedContent.replace(/version:"ui2",/g, 'version:"ui3",');
        modifiedContent = modifiedContent.replace(/initialVersion:a="ui2"}\)/g, 'initialVersion:a="ui3"})');
        modifiedContent = modifiedContent.replace(/"ui2"===o.version/g, "false");

        console.log('Content modified');
        response.body = modifiedContent;
    } else {
        console.log('URL does not match pattern');
    }
} catch (error) {
    console.log('Error fetching URL:', error);
}

return response;

}

Scripting settings for my script called 'Figma UI3': image

'Figma Helper' enabled SSL Proxying image

DvT093 commented 1 month ago

While trying out UI3 I found it was somewhat slow so I turn it off temporarily for the last 2 weeks. However just now I got a Figma update (still no UI3) and I noticed that my setup using Proxyman unfortunately doesn't work anymore. I'm not sure whether it has anything to do with the update.

allinone12 commented 1 month ago

Oh, sorry I accidentally made a typo in URL. Everything works