Redirect on g-mail logout

Subscribe to Redirect on g-mail logout 10 posts, 3 voices

 
Dink Scriptwright

I personally would like to be able to choose wich webpage my browser goes to when i sign out of g-mail..I've tried editing the "no msn on hotmail signout" script but i guess I'm not smart enough!!

 
Dink Scriptwright

Surely there's someone who can tell me how to do this...

 
Henrik N Admin

A script running on http*://www.google.tld/accounts/Logout?service=mail&* with code like this might work:

location.replace("http://yahoo.com");

 
Dink Scriptwright

Tried creating new script with your code and had no luck...Thanks for the attempt Nyh

 
Henrik N Admin

I tried logging out of Gmail and saw an URL like that flash by. Do you see that URL as well? If not, just change the @include to match some other URL you (only) hit when logging out. Note that you must change it in the GM config, not right in the installed script file, for the changes to take.

 
Dink Scriptwright

still no luck....if anyone ever gets this idea to work plz let me know....thanks for your input Nyh.

 
znerp Scriptwright

I had a quick try how Henrik said, and I didn't get that url flash by, so it didn't work. I tried it with the url where I ended up, and that seemed to work fine ...

// ==UserScript==
// @name           gmail redirect
// @include        https://www.google.com/accounts/ServiceLogin?service=mail&passive=true&rm=false&continue=http%3A%2F%2Fmail.google.com%2Fmail%3Fui%3Dhtml%26zy%3Dl&ltmpl=ca_googlemail_tlsosm_t&ltmplcache=2*
// ==/UserScript==

location.replace("http://yahoo.com");

 
Dink Scriptwright

Znerp, If it's done that way then I can't go to that page to sign into g-mail....I just don't want to be directed there when i sign out.

 
znerp Scriptwright

That piece of code worked for me personally. I took the address that I get directed to to login and the address I got sent to on signing out, and compared them. They were slightly different, so I've put that address for the @include. I didn't want to spend ages messing around with this because I never use gmail, just that's what worked for me.

 
Dink Scriptwright

Znerp...thanks for your input...works just like you said..i just figured that the two web addresses were the same.