Skip to content
This repository was archived by the owner on Mar 16, 2021. It is now read-only.

Commit 33d053b

Browse files
committed
2 parents f52732a + f5e6dd4 commit 33d053b

File tree

2 files changed

+46
-11
lines changed

2 files changed

+46
-11
lines changed

README.md

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Griffpatch's Scratch 3 Dev Tools Chrome Browser Extension
22

3-
Welcome all - This is a chrome extension I'm developing to add new complementry features to the awesome [Scratch](https://scratch.mit.edu) website. The source code is provided here for you to see, but you can more easily download the official extension from the [Google Chrome Webstore](https://chrome.google.com/webstore/detail/scratch-3-developer-tools/phacniajokfchdcamjhonkbhlcipplno)
3+
Welcome all - This is a chrome extension I'm developing to add new complementary features to the awesome [Scratch](https://scratch.mit.edu) website. The source code is provided here for you to see, but you can more easily download the official extension from the [Google Chrome Webstore](https://chrome.google.com/webstore/detail/scratch-3-developer-tools/phacniajokfchdcamjhonkbhlcipplno).
44

55
## Getting Started
66

@@ -10,19 +10,30 @@ If you want to build it yourself, or see how it works, then the following instru
1010

1111
### Prerequisites
1212

13-
What things you need to install the software and how to install them
13+
Google Chrome / Chromium or Firefox
1414

15-
```
16-
Nothing really, just Google Chrome or Chromium
15+
### Installing
16+
17+
First you'll need to download the files. You can do this with the "Clone or download" button here on GitHub, or clone this repository:
18+
```bash
19+
git clone https://github.com/griffpatch/Scratch3-Dev-Tools
1720
```
1821

19-
### Installing
22+
#### Installing (Chrome / Chromium)
23+
24+
1. Open Google Chrome and navigate to: `chrome://extensions/`
25+
2. Click the `Load Unpacked` button (top left)
26+
3. Select the folder containing the extension files
27+
4. Navigate to a Scratch project at https://scratch.mit.edu/ and look inside
28+
5. Enjoy!
29+
30+
#### Installing (Firefox)
2031

21-
1. Copy all files into a folder on your PC
22-
2. Open Google Chrome and navigate to: `chrome://extensions/`
23-
3. Click the `Load Unpacked` button (top left)
24-
4. Select the folder containing the extension files
25-
5. Navigate to a scratch project at https://scratch.mit.edu/ and look inside
32+
1. Open Firefox and navigate to: `about:debugging`
33+
2. Click `This Firefox`
34+
3. Click `Load Temporary Add-on...`
35+
4. Open the folder containing the extension files, and choose the `manifest.json` file
36+
5. Navigate to a Scratch project at https://scratch.mit.edu/ and look inside
2637
6. Enjoy!
2738

2839
## Versioning
@@ -37,7 +48,7 @@ v0.0.1 - Initial Release
3748

3849
## License
3950

40-
This project is licensed under the GNU Public License 3 - see the [LICENSE.md](LICENSE.md) file for details
51+
This project is licensed under the GNU General Public License v3 - see the [LICENSE.md](LICENSE.md) file for details
4152

4253
## Acknowledgments
4354

inject.user.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// ==UserScript==
2+
// @name Scratch 3 Developer Tools
3+
// @namespace https://github.com/griffpatch/Scratch3-Dev-Tools
4+
// @version 1.0.0
5+
// @description ...to enhance your Scratch Editing Experience. Injects the code on the source code. Ported, based on the extension. (https://chrome.google.com/webstore/detail/scratch-3-developer-tools/phacniajokfchdcamjhonkbhlcipplno)
6+
// @author griffpatch, ported by Hans5958
7+
// @match http*://scratch.mit.edu/projects/editor
8+
// @match http*://scratch.mit.edu/projects/*
9+
// @match http*://scratch.mit.edu/projects/*/editor
10+
// @icon https://cdn.jsdelivr.net/gh/griffpatch/Scratch3-Dev-Tools/bigIcon.png
11+
// @updateURL https://cdn.jsdelivr.net/gh/griffpatch/Scratch3-Dev-Tools/inject.user.js
12+
// @grant none
13+
// ==/UserScript==
14+
15+
var js = document.createElement('script')
16+
js.src = 'https://cdn.jsdelivr.net/gh/griffpatch/Scratch3-Dev-Tools/inject3.js'
17+
18+
var css = document.createElement('link')
19+
css.href = 'https://cdn.jsdelivr.net/gh/griffpatch/Scratch3-Dev-Tools/inject.css'
20+
css.rel = 'stylesheet'
21+
22+
var head = document.getElementsByTagName('head')[0]
23+
head.appendChild(js)
24+
head.appendChild(css)

0 commit comments

Comments
 (0)