Git Product home page Git Product logo

Comments (10)

Moustachauve avatar Moustachauve commented on May 12, 2024 1

I'm happy to announce (better late than never) that the next version of Cookie-Editor will support both import and export of netscape format!

Thanks a lot for your help @stdedos, you made it simpler for me to implement this.
image

from cookie-editor.

Moustachauve avatar Moustachauve commented on May 12, 2024

Sure, this sounds like something that could be added as an improvement.

from cookie-editor.

WGMaker avatar WGMaker commented on May 12, 2024

from cookie-editor.

Moustachauve avatar Moustachauve commented on May 12, 2024

Hi,

What do you mean by "make it a full cookie exporter"? I was thinking of just adding an option to the format of the export to the current feature. Would you like something more than a new format for the current cookie exporter?

from cookie-editor.

WGMaker avatar WGMaker commented on May 12, 2024

from cookie-editor.

iwanchan avatar iwanchan commented on May 12, 2024

Hi, I'm user of EditThisCookie and after some searching for firefox version I'm redirected to here. I use name=value pair format in EditThisCookie, in php file_get_contents().
So maybe add this format too as enhancement.

Regards

from cookie-editor.

stdedos avatar stdedos commented on May 12, 2024

Hey @Moustachauve!

Is this something still considered for the project?
Are you planning to implement it?

If not, I can try to submit a PR for it (at least the code for it; I am not sure how would the UI work)

from cookie-editor.

Moustachauve avatar Moustachauve commented on May 12, 2024

Hello @stdedos

As you can see, I'm not really actively working on this project recently, but PR are always appreciated. If you do make one, I can take care of the UI part of it.

I guess either a different button for different format could work if we only have two.
A more flexible way I could implement it is with a dropdown where you select the desired format and it would save the preference for future exports (default selected)

Should Import also support this format?

from cookie-editor.

stdedos avatar stdedos commented on May 12, 2024

I have added a small PoC code to my https://github.com/stdedos/cookie-editor/tree/feature/17-cookies-as-netscape branch.

I have isolated the (export)cookiesAs# logic, and I've written the counterpart function for the Netscape format (more details in the commit).

The functionality can be of course a drop-down (for additional extensibility).
My original thought was that the original button would be split in two on hover (but that's just flashy for no reason, and also not future-proof).


Should Import also support this format?

Theoretically, yes - but I am not entirely sure of feature-parity 😕
I had already to fake the second field (from https://unix.stackexchange.com/a/210282/266638):

flag - A TRUE/FALSE value indicating if all machines within a given domain can access the variable. This value is set automatically by the browser, depending on the value you set for domain.

because the logic (in the extension's context) perplexes me.

  • if all machines within a given domain can access the variable?!?
    Wut does that even mean? If the site has set the cookie then most likely it can also read it
  • This value is set automatically by the browser, depending on the value you set for domain. 🤯

Others have:

However, http://httrack.kauler.com/help/Cookies mentions the column as Only Sent To Creator instead of the "original" meaning (I have no indication if this is indeed the original meaning; however, the source site is the oldest reference I could find).


As far as expirationDate goes, I am not sure what to do there exactly either (applies on export too).
"Back in the Netscape days", there was no reason to "save" session cookies - you could just keep them in-memory. As such, you didn't have to write them to any file.

Adding any timestamp <= now() means that the cookie is immediately discarded. Adding no-value "might be the best"; but what if the parser disqualifies the whole file because of one missing field / wrong line?
Others have:

from cookie-editor.

Moustachauve avatar Moustachauve commented on May 12, 2024

This version is now available on the Chrome Web Store! It will be available soon but is pending review for Firefox, Opera, Edge and Safari.

from cookie-editor.

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.