Discuss Scratch
- Discussion Forums
- » Developing Scratch Extensions
- » Google Search extension
- 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:
It's the classic “G”! This extension would search google and output results.
Blocks
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:
Also, it would be useful to have a hat block that starts a script when a term is searched for.
______________________________________________________
EDIT: Also, what about a boolean block for if a term is searched for?
::#ea4235 stackWhat 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 stackSearches 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 stackSame 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 hatTell 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
Well, these blocks aren't out yet. 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 stackWhat about the icon in the editor?
It's the classic “G”! This extension would search google and output results.
Blockssearch Google for [search term] and output result #() of page () ::#ea4235 stackSearches 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 stackSame 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 hatTell 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)
- LostLittleChick738
- Scratcher
500+ posts
Google Search extension
Although you could make theWell, these blocks aren't out yet. 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 stackWhat about the icon in the editor?
It's the classic “G”! This extension would search google and output results.
Blockssearch Google for [search term] and output result #() of page () ::#ea4235 stackSearches 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 stackSame 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 hatTell 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)
search Google for [search term] and output result #() of page () ::#ea4235 stackblock into a custom.
- 8bitjake
- Scratcher
100+ posts
Google Search extension
How? Although you could make thesearch Google for [search term] and output result #() of page () ::#ea4235 stackblock into a custom.
- 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
Make it be generic, and use Baidu in china. This wouldn't work/be allowed in China
- GeorgeIsMyCat
- Scratcher
45 posts
Google Search extension
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
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 stackWhat about the icon in the editor?
It's the classic “G”! This extension would search google and output results.
Blockssearch Google for [search term] and output result #() of page () ::#ea4235 stackSearches 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 stackSame 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 hatTell 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
I see. 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.
- Discussion Forums
- » Developing Scratch Extensions
- » Google Search extension