Discuss Scratch

8bitjake
Scratcher
100+ posts

Google Search extension

Here, I'd like to introduce a Google Search extension. This extension uses the color of the 1st “o” in the Google logo (which is #ea4235). Here's an example block with this color:
::#ea4235 stack
What about the icon in the editor?
It's the classic “G”! This extension would search google and output results.
Blocks
search Google for [search term] and output result #() of page () ::#ea4235 stack
Searches Google for the entered search term and enters the designated result of the designated page. (What a mouthful!)
search Google for [search term] and output page () ::#ea4235 stack
Same as before, but it outputs a whole page of results.
Those 2 blocks also have a version that searches for random search terms. Both these versions also have reporter blocks that store the results or pages in a variable, as shown here:
(result #() of page () of search term [search term] ::#ea4235)
(result #() of page () of random search term ::#ea4235)
(page () of search term [search term] ::#ea4235)
(page () of random search ::#ea4235)
_________________________________________
(# of results in search term [search term] ::#ea4235)
Takes the number of results in a search and stores them in variable form.
Also, it would be useful to have a hat block that starts a script when a term is searched for.
when search term [search term] searched for::#ea4235 hat
Tell me what you think of these!
______________________________________________________
EDIT: Also, what about a boolean block for if a term is searched for?
<[search term] searched for? ::#ea4235>
Or a variable that is the search term of a random search!
(search term of random search ::#ea4235)

Last edited by 8bitjake (May 18, 2020 21:10:38)



LostLittleChick738
Scratcher
500+ posts

Google Search extension

8bitjake wrote:

Here, I'd like to introduce a Google Search extension. This extension uses the color of the 1st “o” in the Google logo (which is #ea4235). Here's an example block with this color:
::#ea4235 stack
What about the icon in the editor?
It's the classic “G”! This extension would search google and output results.
Blocks
search Google for [search term] and output result #() of page () ::#ea4235 stack
Searches Google for the entered search term and enters the designated result of the designated page. (What a mouthful!)
search Google for [search term] and output page () ::#ea4235 stack
Same as before, but it outputs a whole page of results.
Those 2 blocks also have a version that searches for random search terms. Both these versions also have reporter blocks that store the results or pages in a variable, as shown here:
(result #() of page () of search term [search term] ::#ea4235)
(result #() of page () of random search term ::#ea4235)
(page () of search term [search term] ::#ea4235)
(page () of random search ::#ea4235)
_________________________________________
(# of results in search term [search term] ::#ea4235)
Takes the number of results in a search and stores them in variable form.
Also, it would be useful to have a hat block that starts a script when a term is searched for.
when search term [search term] searched for::#ea4235 hat
Tell me what you think of these!
______________________________________________________
EDIT: Also, what about a boolean block for if a term is searched for?
<[search term] searched for? ::#ea4235>
Or a variable that is the search term of a random search!
(search term of random search ::#ea4235)
Well, these blocks aren't out yet.

"when life gives you lemons, don't give them to chickens." -me
now, I am not a chicken, despite my name.
i just like them. check out me projects:

LostLittleChick738
Scratcher
500+ posts

Google Search extension

LostLittleChick738 wrote:

8bitjake wrote:

Here, I'd like to introduce a Google Search extension. This extension uses the color of the 1st “o” in the Google logo (which is #ea4235). Here's an example block with this color:
::#ea4235 stack
What about the icon in the editor?
It's the classic “G”! This extension would search google and output results.
Blocks
search Google for [search term] and output result #() of page () ::#ea4235 stack
Searches Google for the entered search term and enters the designated result of the designated page. (What a mouthful!)
search Google for [search term] and output page () ::#ea4235 stack
Same as before, but it outputs a whole page of results.
Those 2 blocks also have a version that searches for random search terms. Both these versions also have reporter blocks that store the results or pages in a variable, as shown here:
(result #() of page () of search term [search term] ::#ea4235)
(result #() of page () of random search term ::#ea4235)
(page () of search term [search term] ::#ea4235)
(page () of random search ::#ea4235)
_________________________________________
(# of results in search term [search term] ::#ea4235)
Takes the number of results in a search and stores them in variable form.
Also, it would be useful to have a hat block that starts a script when a term is searched for.
when search term [search term] searched for::#ea4235 hat
Tell me what you think of these!
______________________________________________________
EDIT: Also, what about a boolean block for if a term is searched for?
<[search term] searched for? ::#ea4235>
Or a variable that is the search term of a random search!
(search term of random search ::#ea4235)
Well, these blocks aren't out yet.
Although you could make the
search Google for [search term] and output result #() of page () ::#ea4235 stack
block into a custom.

"when life gives you lemons, don't give them to chickens." -me
now, I am not a chicken, despite my name.
i just like them. check out me projects:

8bitjake
Scratcher
100+ posts

Google Search extension

LostLittleChick738 wrote:

Although you could make the
search Google for [search term] and output result #() of page () ::#ea4235 stack
block into a custom.
How?


Sheep_maker
Scratcher
1000+ posts

Google Search extension

This wouldn't work/be allowed in China

- Sheep_maker This is a kumquat-free signature. :P
This is my signature. It appears below all my posts. Discuss it on my profile, not the forums. Here's how to make your own.
.postsignature { overflow: auto; } .scratchblocks { overflow-x: auto; overflow-y: hidden; }
A-E-
Scratcher
100+ posts

Google Search extension

Sheep_maker wrote:

This wouldn't work/be allowed in China
Make it be generic, and use Baidu in china.
GeorgeIsMyCat
Scratcher
45 posts

Google Search extension

Sheep_maker wrote:

This wouldn't work/be allowed in China

I didn't even know that Scratch was accessible in China. The more you know, eh?

(('-'))
my kumquat guardian
okibeliveyou
Scratcher
30 posts

Google Search extension

play sound [ 3 more followers till i hit 20]
GamerDit
Scratcher
11 posts

Google Search extension

8bitjake wrote:

Here, I'd like to introduce a Google Search extension. This extension uses the color of the 1st “o” in the Google logo (which is #ea4235). Here's an example block with this color:
::#ea4235 stack
What about the icon in the editor?
It's the classic “G”! This extension would search google and output results.
Blocks
search Google for [search term] and output result #() of page () ::#ea4235 stack
Searches Google for the entered search term and enters the designated result of the designated page. (What a mouthful!)
search Google for [search term] and output page () ::#ea4235 stack
Same as before, but it outputs a whole page of results.
Those 2 blocks also have a version that searches for random search terms. Both these versions also have reporter blocks that store the results or pages in a variable, as shown here:
(result #() of page () of search term [search term] ::#ea4235)
(result #() of page () of random search term ::#ea4235)
(page () of search term [search term] ::#ea4235)
(page () of random search ::#ea4235)
_________________________________________
(# of results in search term [search term] ::#ea4235)
Takes the number of results in a search and stores them in variable form.
Also, it would be useful to have a hat block that starts a script when a term is searched for.
when search term [search term] searched for::#ea4235 hat
Tell me what you think of these!
______________________________________________________
EDIT: Also, what about a boolean block for if a term is searched for?
<[search term] searched for? ::#ea4235>
Or a variable that is the search term of a random search!
(search term of random search ::#ea4235)

I tried to make my first sig
SORRY FOR THE BIG TEXT!
and sorry for the trainwreck.
Capt_Stoney_Beard
Scratcher
34 posts

Google Search extension

This probably isn't allowed since google could have images not suitable for scratch and this block would serve no purpose because you could just go on the site you got on scratch with and search.
Sheep_maker
Scratcher
1000+ posts

Google Search extension

@Capt_Stoney_Beard brings up a valid point. Indeed, Google Docs removed the Google Image search option from their insert image dialogue for a similar reason, so if Google can't make it Scratch-friendly, I doubt the ST can too

- Sheep_maker This is a kumquat-free signature. :P
This is my signature. It appears below all my posts. Discuss it on my profile, not the forums. Here's how to make your own.
.postsignature { overflow: auto; } .scratchblocks { overflow-x: auto; overflow-y: hidden; }
8bitjake
Scratcher
100+ posts

Google Search extension

Capt_Stoney_Beard wrote:

This probably isn't allowed since google could have images not suitable for scratch and this block would serve no purpose because you could just go on the site you got on scratch with and search.
I see.


8bitjake
Scratcher
100+ posts

Google Search extension

I am requesting the topic be closed now.


Powered by DjangoBB