Giter Club home page Giter Club logo

eucm's Introduction

Extremely Useful Cookie Migrator - eucm

What is it?

eucm transfer cookies from a website to Surfly session (even better - future Surfly session!) on the fly.

How does it work?

It watches for all successful browser navigations via webNavigation API and when it is detected, it reads all cookies via cookies API and migrates them to Surfly's cookie jar, applying Surfly proxification rules. As a result - you will never need to log in again!

Insights and troubleshooting

I've noticed that I'm often logged out of surfly website. How can I fix it?

The browsers store all cookies in the cookie store. Each top level domain has its own cookie store with the limited space. This space is different for each browser. Firefox and Chrome set it to 180 cookies.

When the extension replicates cookies from a website to Surfly (for example, to surfly.online domain), it puts it in surfly.online cookies store. This store contains all Surfly dashboard cookies + all other cookies for proxied websites. Example: cookies for google.com website are stored in google-com-p.surfly.online domain, however google-com-p.surfly.online domain still uses surfly.online storage.

When the number of cookies exceeds the limit, browsers start to evict cookies (first the expired cookies, next the oldest accessed cookies). If you have a very productive Surfly session, Surfly log in cookie might be evicted from surfly.online cookie store. This causes your Surfly session to be logged out.

The extension is trying to solve this problem by introducing the list of favouriteCookies. If a cookie from this list is evicted, the extension will put it to storage again.

The problem can also be addressed by changing the default browser configuration:

  • for Firefox, open about:config and search for network.cookie.. Adjust the following configuration options:
    • network.cookie.maxNumber set it to 10000
    • network.cookie.maxPerHost set it to 2000
    • network.cookie.quotaPerHost set it to 1950
  • for Chrome users: install Firefox

eucm's People

Contributors

jsnjack avatar

Watchers

 avatar  avatar

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.