javascript - Log in/out of Gmail chat programmatically, clicking Gmail's span "links" -


At work, I use Gmail's chat because it is encrypted and installed on a hard drive or Chat without saving. At home, I use Pidgin when I log in to Gmail at home, I have to log out of chat, or the message will end in the wrong place. When I login to Gmail at work, I have to log back into chat.

In other words, when I start Firefox at home, I want Gmail chat to be automatically disabled. When I start Firefox at work, I want to make Gmail chat automatically enabled.

Is there a way to use a Grazambi skip or similar to logging and logging on specific machines? It seems quite simple; Just follow a URL or click on a link. Unfortunately, Gmail does not use the actual link.

While logging out:

  & lt; Span tabindex = "0" role = "link" action = "c" square = "Az9OKd"> Sign in to Chat & lt; / Span & gt;  

While logged in to the drop-down menu:

  & lt; Div tabindex = "- 1" id = ": 1mj" role = "menu" square = "oy" value = "c" & gt; & Lt; Div class = "uQ c6" /> Sign in to Chat & lt; / Div & gt; & Lt; Div tabindex = "- 1" id = ": 8f" role = "menuitem" class = "oy" value = "sia" & gt; Div class = "uQ c5" /> Sign in to AIMX® & lt; / Div & gt; & Lt; Div tabindex = "- 1" id = ": 8e" role = "menu" class = "oy" value = "like" & gt; & Lt; Div class = "uq df" /> Sign out of chat & lt; / Div & gt;  
  & lt; Span id = ": im" class = "l8 ou" tabindex = "0" role = "link" & gt; Close chat & lt; / Span & gt; & Lt; Span id = ": im" square = "l8 ou" tabindex = "0" role = "link" & gt; Turn on chat & lt; / Span & gt;  

Does anybody know that "these clicks" how to use non-link with Javascript or their functions? I think that "so" means "sign out", "c" means "sign in" and "cia" means "enter into aim". Can I call these tasks directly in some way?

Is there any other option to disable chat?

I use Gmail chat inside the Gmail window and using Adium, and when one When a friend starts a chat, I get his message in both windows, so there is no problem logging in two different places.

Does this not work for you?

Edit: As the commentator is mentioned below, you can try to understand Gmail's unreadable javascript and find out how there are links to Javascript functions and which functions are called . Then you do not need to simulate a click on the link, you just have to call the appropriate javascript function.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -