Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instruction on the installation of second instance of Gmail Notifier on Firefox #106

Closed
inbasic opened this issue Sep 14, 2013 · 6 comments

Comments

@inbasic
Copy link
Owner

inbasic commented Sep 14, 2013

It is fairly simple to install second instance of Gmail Notifier on Firefox. It is useful for those who prefer get separate notification for different mail accounts. At the moment you need to hack the code as follows:

  1. Change the identification here https://github.com/inbasic/ignotifier/blob/master/src/package.json#L127
    example: jid0-GjwrPchS3Ugt7xydvqVK4DQk8Ls to jid0-GjwrPchS3Ugt7xydvqVK4DQk8Ls-2
  2. Change toolbar identification here https://github.com/inbasic/ignotifier/blob/master/src/lib/main.js#L50
    example: igmail-notifier to igmail-notifier-2
  3. Replace all #igmail-notifiers to the name defined in the second step (#igmail-notifier-2)
  4. Compile the extension. Instruction is available here: https://github.com/inbasic/ignotifier/blob/master/README.md
  5. Install the newly compiled extension and configure it to listen to a single account from extension's setting
@Drugoy
Copy link

Drugoy commented Sep 14, 2013

How can you have 2 different sets of cookies for Gmail?

@inbasic
Copy link
Owner Author

inbasic commented Sep 15, 2013

well, right now the extension uses an XMLHttpRequest object:
https://github.com/inbasic/ignotifier/blob/master/src/lib/main.js#L804-L840
... and this object has access to the global browser cookies:
https://github.com/inbasic/ignotifier/blob/master/src/lib/main.js#L839

If you want to access to different cookies, I would say you need to call the XMLHttpRequest object from a location (another window perhaps) that has access to the secondary cookies e.g. instead of req = .... you need that_window.req = ....

@inbasic
Copy link
Owner Author

inbasic commented Sep 15, 2013

Instruction added to the homepage
http://add0n.com/gmail-notifier.html

@inbasic inbasic closed this as completed Sep 15, 2013
@inbasic
Copy link
Owner Author

inbasic commented Sep 15, 2013

@Drugoy I closed this bug as the purpose of it was to link the instruction to our homepage. If you have further discussion please open a new bug or continue here.

@Joolee
Copy link

Joolee commented Dec 3, 2013

Link has gone wrong on the homepage. It is now:

The instruction is provided <a href="https://github.com/inbasic/ignotifier/issues/106"></a>here.

@inbasic
Copy link
Owner Author

inbasic commented Dec 4, 2013

Thanks @Joolee. It is now fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants