Coder Social home page Coder Social logo

Comments (6)

fz0000 avatar fz0000 commented on May 26, 2024 1

Some suggestion is using msSaveOrOpenBlob on Microsoft browsers.
So I tried to update the code at the end of RPGFile.js but when I click Decrypt button the decrypted image is opened directly.
image

It seems that the code works. But I'm not familiar with js at all and don't know how to fix it. Hope it can help.

/**
 * Creates the BLOB-URL for this File
 */
RPGFile.prototype.createBlobUrl = function() {
    this.blob = new Blob([this.content]);
    if (window.navigator && window.navigator.msSaveOrOpenBlob) { 
        window.navigator.msSaveOrOpenBlob(this.blob, 'img.png'); 
    } else { 
        this.fileUrl = window.URL.createObjectURL(this.blob);
    }
    //this.fileUrl = window.URL.createObjectURL(this.blob);
};

from rpg-maker-mv-decrypter.

fz0000 avatar fz0000 commented on May 26, 2024

Someone has requested the documentation of this error:
Requesting SEC7134 documentation

It seems that running from local file may bring security risks. So some browsers will block it.
Is there any solution to run from http instead of blob?

from rpg-maker-mv-decrypter.

fz0000 avatar fz0000 commented on May 26, 2024

And... May be the same reason as IE? #5

from rpg-maker-mv-decrypter.

Petschko avatar Petschko commented on May 26, 2024

It seems that running from local file may bring security risks. So some browsers will block it.
Is there any solution to run from http instead of blob?

If you run this Script local, there is theoretically no reason to use HTTP, also you would need a local Web-server to run this Script local via HTTP.

Feel free to fork this project and exchange BLOB to HTTP-Downloads. The reason why I didn't added HTTP Downloads to this Project, was because I wanted that Script be able to run local without any Webserver. (Easy to use)^^

And... May be the same reason as IE? #5

Hm that can may be. It also seems I have to use a different method to create BLOBs in IE, but I'm unsure if I include that, since IE is not supported anymore

About Edge, I need to test that in a VM, since I don't have Win10 to test Edge. But I will surely look into that, BLOBs should work in Edge, since its more commonly used the last years

from rpg-maker-mv-decrypter.

Petschko avatar Petschko commented on May 26, 2024

I think msSaveOrOpenBlob is just for opening/saving, but it's a step into the right direction!

from rpg-maker-mv-decrypter.

Petschko avatar Petschko commented on May 26, 2024

Fixed bace698 (Also fixed the issue for Edge, since its chromium based)

from rpg-maker-mv-decrypter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.