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

#1 2011-03-08 19:24:56

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Scratch for Chrome Developement thread

I have been working on this for a long time.

Here is the plan:
A Google Chrome extension which pops up a bubble when you get a notification.

I know some people have mentioned to me that they would be interested in doing this in a collab, and the collab is officially open. You must have some knowledge of HTML, JavaScript, and or PHP.
So far it consists of just me. I am using the Scratch API.


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#2 2011-03-08 19:55:59

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: Scratch for Chrome Developement thread

This looks cool! You're going to run into a few problems, though:
1. There's no notifications API from Scratch
2. Javascript won't allow you to manipulate data from remote sites for security reasons

It looks like the best workaround is to write a tiny flash file that can make the requests to the Scratch site and send it back to JS...I can make it for you, if you'd like...I can't wait to see how this turns out!

EDIT: Trying to access /notifications from Flash is causing some sort of error...I wonder if the Scratch platform is designed to prevent this sort of request...  yikes

Last edited by fullmoon (2011-03-08 23:17:06)


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#3 2011-03-09 16:51:36

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: Scratch for Chrome Developement thread

fullmoon wrote:

This looks cool! You're going to run into a few problems, though:
1. There's no notifications API from Scratch
2. Javascript won't allow you to manipulate data from remote sites for security reasons

It looks like the best workaround is to write a tiny flash file that can make the requests to the Scratch site and send it back to JS...I can make it for you, if you'd like...I can't wait to see how this turns out!

EDIT: Trying to access /notifications from Flash is causing some sort of error...I wonder if the Scratch platform is designed to prevent this sort of request...  yikes

Actually, I don't need a notifications API. I am hopefully just going to have my program look for comments on the signed-in user's projects and galleries that were shared within a minute. The API can tell you when comments were posted.

EDIT: That was my 1100th post!

Last edited by midnightleopard (2011-03-09 16:52:28)


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#4 2011-03-10 03:52:40

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Scratch for Chrome Developement thread

midnightleopard wrote:

fullmoon wrote:

This looks cool! You're going to run into a few problems, though:
1. There's no notifications API from Scratch
2. Javascript won't allow you to manipulate data from remote sites for security reasons

It looks like the best workaround is to write a tiny flash file that can make the requests to the Scratch site and send it back to JS...I can make it for you, if you'd like...I can't wait to see how this turns out!

EDIT: Trying to access /notifications from Flash is causing some sort of error...I wonder if the Scratch platform is designed to prevent this sort of request...  yikes

Actually, I don't need a notifications API. I am hopefully just going to have my program look for comments on the signed-in user's projects and galleries that were shared within a minute. The API can tell you when comments were posted.

EDIT: That was my 1100th post!

why not just use the front page and sense the "you have X comments" page?

Offline

 

#5 2011-03-10 03:59:06

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

Re: Scratch for Chrome Developement thread

I know HTML


Hey.  It's me SSSS, back from the dead!  smile

Offline

 

#6 2011-03-10 13:14:15

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: Scratch for Chrome Developement thread

So, what? What would this app do? Be scratch?

I know HTML, PHP, and some JavaScript,

Offline

 

#7 2011-03-10 21:48:09

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: Scratch for Chrome Developement thread

ProgrammingFreak wrote:

So, what? What would this app do? Be scratch?

I know HTML, PHP, and some JavaScript,

notify you of comments. You sound great for the job. Want in?


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#8 2011-03-10 21:49:16

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: Scratch for Chrome Developement thread

LS97 wrote:

midnightleopard wrote:

fullmoon wrote:

This looks cool! You're going to run into a few problems, though:
1. There's no notifications API from Scratch
2. Javascript won't allow you to manipulate data from remote sites for security reasons

It looks like the best workaround is to write a tiny flash file that can make the requests to the Scratch site and send it back to JS...I can make it for you, if you'd like...I can't wait to see how this turns out!

EDIT: Trying to access /notifications from Flash is causing some sort of error...I wonder if the Scratch platform is designed to prevent this sort of request...  yikes

Actually, I don't need a notifications API. I am hopefully just going to have my program look for comments on the signed-in user's projects and galleries that were shared within a minute. The API can tell you when comments were posted.

EDIT: That was my 1100th post!

why not just use the front page and sense the "you have X comments" page?

that shows you your own comments


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#9 2011-03-13 11:03:30

jbthegreat
Scratcher
Registered: 2009-01-18
Posts: 64

Re: Scratch for Chrome Developement thread

Created my own chrome extension before. Could help.

I know

PHP
JAVASCRIPT + Mootools
HTML


http://i53.tinypic.com/2f04pdf.jpghttp://i52.tinypic.com/x2rrdu.jpg

Offline

 

#10 2011-03-13 14:01:30

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Scratch for Chrome Developement thread

midnightleopard wrote:

LS97 wrote:

midnightleopard wrote:


Actually, I don't need a notifications API. I am hopefully just going to have my program look for comments on the signed-in user's projects and galleries that were shared within a minute. The API can tell you when comments were posted.

EDIT: That was my 1100th post!

why not just use the front page and sense the "you have X comments" page?

that shows you your own comments

Well, that's what we want don't we

Offline

 

#11 2011-03-13 15:00:45

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: Scratch for Chrome Developement thread

LS97 wrote:

midnightleopard wrote:

LS97 wrote:


why not just use the front page and sense the "you have X comments" page?

that shows you your own comments

Well, that's what we want don't we

no that is not. That shows you comments you have left on other people's projects. We are looking for comments people have left on your projects and galleries.


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#12 2011-03-14 07:35:22

jbthegreat
Scratcher
Registered: 2009-01-18
Posts: 64

Re: Scratch for Chrome Developement thread

fullmoon wrote:

This looks cool! You're going to run into a few problems, though:
1. There's no notifications API from Scratch
2. Javascript won't allow you to manipulate data from remote sites for security reasons

You could always make a proxy for the javascript in PHP on the same domain  smile


http://i53.tinypic.com/2f04pdf.jpghttp://i52.tinypic.com/x2rrdu.jpg

Offline

 

#13 2011-03-14 08:25:02

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: Scratch for Chrome Developement thread

midnightleopard wrote:

ProgrammingFreak wrote:

So, what? What would this app do? Be scratch?

I know HTML, PHP, and some JavaScript,

notify you of comments. You sound great for the job. Want in?

Sure!

Offline

 

#14 2011-03-14 13:09:29

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: Scratch for Chrome Developement thread

ProgrammingFreak wrote:

midnightleopard wrote:

ProgrammingFreak wrote:

So, what? What would this app do? Be scratch?

I know HTML, PHP, and some JavaScript,

notify you of comments. You sound great for the job. Want in?

Sure!

Nice! First step, I need the scratch API embedded into an HTML file. I haven't done that yet, someone else can do it if they want.


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#15 2011-03-17 10:52:42

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Scratch for Chrome Developement thread

midnightleopard wrote:

LS97 wrote:

midnightleopard wrote:


that shows you your own comments

Well, that's what we want don't we

no that is not. That shows you comments you have left on other people's projects. We are looking for comments people have left on your projects and galleries.

I just came back to this thread and noticed...
No they don't!

Notifications show you the comments people have posted on your projects and galleries.

Offline

 

#16 2011-03-19 09:57:17

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: Scratch for Chrome Developement thread

LS97 wrote:

midnightleopard wrote:

LS97 wrote:


Well, that's what we want don't we

no that is not. That shows you comments you have left on other people's projects. We are looking for comments people have left on your projects and galleries.

I just came back to this thread and noticed...
No they don't!

Notifications show you the comments people have posted on your projects and galleries.

yes, notifications tell you what we want to know, but there is no notifications api so http://t1.gstatic.com/images?q=tbn:ANd9GcRJg1a_493tUdE62w7KLvZuVFUALfXpbc_FJzaJhW49oHGAYqB5&t=1

not really, we just need to make it look for comments made within the last minute on the logged-in user's proejcts and galleries


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#17 2011-04-21 13:39:35

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: Scratch for Chrome Developement thread

uh...bump

Offline

 

#18 2011-04-21 14:57:57

benchun
New Scratcher
Registered: 2011-01-06
Posts: 5

Re: Scratch for Chrome Developement thread

It just so happens that Google is having a series of workshops at the Cambridge office for people who want to make Chrome extensions: https://sites.google.com/site/camclassroom/

Offline

 

#19 2011-04-26 20:14:57

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: Scratch for Chrome Developement thread

benchun wrote:

It just so happens that Google is having a series of workshops at the Cambridge office for people who want to make Chrome extensions: https://sites.google.com/site/camclassroom/

it also just so happens I live in cambridge... maybe I should go.


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

Board footer