This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2013-05-01 21:45:01

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Easily switch between your accounts on Scratch 2.0!

I was learning about some awesome coding tricks today, and was able to cook up a Chrome extension that will allow you to switch between your accounts on Scratch 2.0.

Once you download it, do this to add an account:
-Log in to one of your accounts
-Click the extension icon (currently just a green box)
-Your login data is recorded
Do that for as many accounts as you want. The program will keep track of all of them. When adding another account, be sure to click the log out button in the extension popup window, rather than on the Scratch site. If you click the button on the Scratch site, then the login data stored by the extension will become invalid.

To switch between accounts, simply click the icon and then click on the account you wish to log in to. Then, refresh any Scratch windows and they will be logged in as the user you selected.

To try it out, it is available right here. Note that due to the restraints of userscripts, I was not able to write one and had to write a dedicated Chrome extension instead.


Please try it out!


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#2 2013-05-01 21:59:59

veggieman
Scratcher
Registered: 2011-08-12
Posts: 100+

Re: Easily switch between your accounts on Scratch 2.0!

Can you post the source code so I can know it's safe?


Some days, I wish that my posts would stop disappearing

Offline

 

#3 2013-05-01 22:03:19

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Easily switch between your accounts on Scratch 2.0!

veggieman wrote:

Can you post the source code so I can know it's safe?

Clicky!

I can assure you it is safe. The link I have provided contains all of the code.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#4 2013-05-01 22:12:45

veggieman
Scratcher
Registered: 2011-08-12
Posts: 100+

Re: Easily switch between your accounts on Scratch 2.0!

It's not working for me  hmm


Some days, I wish that my posts would stop disappearing

Offline

 

#5 2013-05-02 08:03:21

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Easily switch between your accounts on Scratch 2.0!

veggieman wrote:

It's not working for me  hmm

What exactly happens?


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#6 2013-05-02 10:12:16

veggieman
Scratcher
Registered: 2011-08-12
Posts: 100+

Re: Easily switch between your accounts on Scratch 2.0!

Okay so the extension is there and the popup displays properly and stuff but it's not storing the accounts.


Some days, I wish that my posts would stop disappearing

Offline

 

#7 2013-05-02 21:02:10

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Easily switch between your accounts on Scratch 2.0!

veggieman wrote:

Okay so the extension is there and the popup displays properly and stuff but it's not storing the accounts.

This probably has to do with the fact that your local storage has not been set the way mine has. I will learn about writing install scripts that will set it up for you, and get back to you. Since I am at a programming competition tomorrow, I probably won't have anything until Saturday or Sunday.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#8 2013-05-03 19:32:23

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Easily switch between your accounts on Scratch 2.0!

I have attempted a fix. It is at the same link. You need to keep the popup open for about 10 seconds the first time you open it after installing it before it completely saves your data.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#9 2013-05-03 19:50:24

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Easily switch between your accounts on Scratch 2.0!

Scratch that... that isn't the solution. I think I have found it, though.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#10 2013-05-03 19:55:15

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Easily switch between your accounts on Scratch 2.0!

There, I think I finally got the local storage working. It is available at the same link.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#11 2013-05-04 12:31:44

veggieman
Scratcher
Registered: 2011-08-12
Posts: 100+

Re: Easily switch between your accounts on Scratch 2.0!

Okay, cool, it works now. It's really cool!!

My only other problem is that the little popup saying "You now have to refresh all Scratch windows" appears partially off-screen, so I have to drag it over to close it. Maybe it could appear in the centre?


Some days, I wish that my posts would stop disappearing

Offline

 

#12 2013-05-04 16:20:42

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Easily switch between your accounts on Scratch 2.0!

veggieman wrote:

Okay, cool, it works now. It's really cool!!

My only other problem is that the little popup saying "You now have to refresh all Scratch windows" appears partially off-screen, so I have to drag it over to close it. Maybe it could appear in the centre?

I have made a better version that now just refreshes the page for you. I'll upload it later.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#13 2013-05-04 17:04:20

veggieman
Scratcher
Registered: 2011-08-12
Posts: 100+

Re: Easily switch between your accounts on Scratch 2.0!

jvvg wrote:

veggieman wrote:

Okay, cool, it works now. It's really cool!!

My only other problem is that the little popup saying "You now have to refresh all Scratch windows" appears partially off-screen, so I have to drag it over to close it. Maybe it could appear in the centre?

I have made a better version that now just refreshes the page for you. I'll upload it later.

Alright, cool.


Some days, I wish that my posts would stop disappearing

Offline

 

#14 2013-05-05 08:15:41

SuperJedi224
Scratcher
Registered: 2010-12-22
Posts: 23

Re: Easily switch between your accounts on Scratch 2.0!

It won't download properly as it's not on the chrome web store. Can you put it there too?


http://internetometer.com/image/30818.png

Offline

 

#15 2013-05-05 09:09:33

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Easily switch between your accounts on Scratch 2.0!

SuperJedi224 wrote:

It won't download properly as it's not on the chrome web store. Can you put it there too?

I was having a few issues with the store rejecting manifest.json, but I will try again later.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#16 2013-05-05 11:46:37

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Easily switch between your accounts on Scratch 2.0!

It is now on the Chrome Web Store!

Here's the link

Credit to LS97 for the CSS!

Last edited by jvvg (2013-05-05 14:00:35)


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

Board footer