-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
235 lines (219 loc) · 8.74 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" type="image/x-icon" href="images/favicon.ico">
<title>Community Extensions Gallery</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
header {
background-color: #1aaff9;
color: #ffffff;
font-family: "OCR A", sans-serif;
margin: 30px;
padding: 30px;
text-align: right;
border-radius: 20px;
}
body {
background-color: #123195;
color: #ffffff;
font-family: "OCR A", sans-serif;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
height: 100vh;
}
div {
text-align: center;
max-width: 1000px;
padding: 30px;
display: flex;
justify-content: space-between;
}
h1 {
font-size: 3em;
margin-bottom: 20px;
}
.gal-list, .ext-list {
display: flex;
flex-wrap: wrap;
justify-content: center;
list-style: none;
margin: 0;
padding: 0;
}
.gal-list-item, .ext-list-item {
width: 33%;
margin: 10px;
padding: 25px;
background-color: #45aaed;
border-radius: 10px;
text-align: center;
cursor: pointer; /* Ensures entire item is clickable */
}
.gal-list-item h2, .ext-list-item h2 {
font-size: 1.5em;
margin-bottom: 10px;
}
.gal-list-item p, .ext-list-item p {
margin-bottom: 15px;
}
.gal-list-item:hover, .ext-list-item:hover {
background-color: rgb(32, 171, 252);
}
.gal-list-item img, .ext-list-item img {
max-width: 300px;
height: auto;
margin-left: 5px;
border-radius: 10px;
}
a {
color: #646cff;
font-weight: bold;
text-decoration: none; /* Remove underline */
}
.submit {
border-radius: 100px;
padding: 10px 10px 10px 10px;
background-color: rgb(234, 225, 225);
}
p {
text-align: center;
}
.logobanner {
max-height: 200px;
border-radius: 10px;
margin-top: 10px;
}
.warning {
color: red;
background-color: rgba(139, 0, 0, 0.695);
border-radius: 20px;
padding: 20px 20px 20px 20px;
text-align: center;
}
footer {
background-color:#0a1e5c;
}
</style>
<script>
document.addEventListener('DOMContentLoaded', () => {
const galListItems = document.querySelectorAll('.gal-list-item');
galListItems.forEach(item => {
item.addEventListener('click', () => {
const link = item.getAttribute('data-link');
window.location.href = link;
});
});
});
</script>
<script>
async function copyData(tocopy) {
let x = await fetch(tocopy);
let y = await x.text();
console.log(y);
navigator.clipboard.writeText(y);
}
document.addEventListener('DOMContentLoaded', () => {
const extListItems = document.querySelectorAll('.ext-list-item');
extListItems.forEach(item => {
item.addEventListener('click', () => {
const copy = item.getAttribute('data-copy');
copyData(copy);
});
});
});
</script>
<script>
document.addEventListener('DOMContentLoaded', () => {
const creatorLinks = document.querySelectorAll("a");
creatorLinks.forEach(link => {
link.addEventListener('click', (event) => {
event.preventDefault(); // Prevent default behavior
window.open(link.href, '_blank'); // Open link in new tab
});
});
});
</script>
</head>
<body>
<img src="images/CEG Banner.svg" class="logobanner" alt="The banner for the Community Extensions Gallery">
<br>
<h3>A gallery of community-made extensions, curated by <a href="https://scratch.mit.edu/users/scratch_fakemon">Scratch_Fakemon</a>.</h3>
<span class="warning">
<h2>These extensions are not compatible with Scratch.</h2>
<br>
<h3>If you try to load a project with these extensions, it will <b>NOT WORK.</b> These extensions require TurboWarp and other Scratch mods.</h3>
</span>
<br>
<h2>Other Extension Galleries</h2>
<p>If you can't find what you're looking for here, check out these other galleries!</p>
<br>
<div class="container">
<ul class="gal-list">
<li class="gal-list-item" data-link="https://extensions.turbowarp.org">
<img src="images/TurboWarp.svg" alt="TurboWarp logo"> <h2>TurboWarp Extension Gallery</h2>
<p>Curated by <a href="https://Scratch.mit.edu/users/GarboMuffin" target="_blank">GarboMuffin</a> </p>
<p>The official extension gallery for <a href="https://www.turbowarp.org">TurboWarp</a>.</p>
</li>
<li class="gal-list-item" data-link="https://extensions.penguinmod.com/">
<img src="images/PenguinMod.svg" alt="PenguinMod logo"> <h2>PenguinMod Extension Gallery</h2>
<p>Curated by <a href="https://studio.penguinmod.com/credits.html" target="_blank">Multiple People</a> </p>
<p>The official extension gallery for <a href="https://www.penguinmod.com">PenguinMod</a>. Not all extensions will work on TurboWarp.</p>
</li>
<li class="gal-list-item" data-link="https://sharkpools-extensions.vercel.app/">
<img src="images/SharkPool.svg" alt="SharkPool's logo"> <h2>SharkPool's Extension Collection</h2>
<p>Curated by <a href="https://scratch.mit.edu/users/DemonX5/" target="_blank">SharkPool (Aka DemonX5)</a> </p>
<p>A gallery of lots of extension made by <a href="https://scratch.mit.edu/users/DemonX5/">SharkPool</a>.</p>
</li>
<li class="gal-list-item" data-link="https://gallery.miyo.lol/">
<img src="images/Surv.jpg" alt="Surv's logo"> <h2>Surv's Gallery</h2>
<p>Curated by <a href="https://scratch.mit.edu/users/0znzw/" target="_blank">0znzw</a> </p>
<p>A gallery of lots of extensions made by <a href="https://scratch.mit.edu/users/0znzw/">0znzw (AKA Surv or Miyo)</a>.</p>
</li>
<li class="gal-list-item" data-link="https://bludisanlemon.github.io/lemons-gallery/">
<img src="images/lemon.png" alt="Lemon's logo"> <h2>Lemon's Extension Gallery</h2>
<p>Curated by <a href="https://scratch.mit.edu/users/BludIsAnLemon/" target="_blank">BludIsAnLemon</a> </p>
<p>A gallery of lots of extensions made by <a href="https://scratch.mit.edu/users/BludIsAnLemon/">BludIsAnLemon</a>.</p>
</li>
</ul>
</div>
<br>
<h2>Extensions</h2>
<p>Some of these extensions might need to run unsandboxed. Make sure to tick "Run without sandbox" unless the extension says otherwise.
<br>
When you click an extension, its code will be copied to the clipboard.
</p>
<br>
<!-- <p>Whoops! Looks like nobody's submitted any extension to the gallery yet!
<br>
<a href="https://docs.turbowarp.org/development/extensions/introduction">Make an extension</a> of your own and submit it! <br>
If it's good enough, I'll add it to the gallery.-->
</p>
<div class="container">
<ul class="ext-list">
<li class="ext-list-item" data-copy="https://scratchfakemon.github.io/Community-Extensions-Gallery/src/Test.js">
<img src="images/No Image.svg" alt="No Image"> <h2>Scratch_Fakemon's Test Extension</h2>
<p>Created by <a href="https://Scratch.mit.edu/users/Scratch_Fakemon" target="_blank">Scratch_Fakemon</a> </p>
<p>A pretty basic extension with no purpose whatsoever. Does not need to run unsandboxed.</p>
</li>
<li class="ext-list-item" data-copy="https://scratchfakemon.github.io/Community-Extensions-Gallery/src/Modals.js">
<img src="images/Modals.svg" alt="Modals Banner"> <h2>Modals</h2>
<p>Created by <a href="https://Scratch.mit.edu/users/Scratch_Fakemon" target="_blank">Scratch_Fakemon</a> </p>
<p>This extension can be used to customized show alert, prompt, and confirmation modals to the user.</p>
</li>
</ul>
</div>
<br>
<a href="https://github.com/ScratchFakemon/Community-Extensions-Gallery/issues" class="submit">Submit an Extension</a>
<br>
<footer>
<p>Scratch_Fakemon and the Community Extensions Gallery are not affiliated with Scratch, The Scratch Team, The Scratch Foundation, TurboWarp, PenguinMod, or other related entities.</p>
<hr>
<p><a href="https://docs.turbowarp.org/development/extensions/introduction">Learn How to Create an Extension</a> • <a href="https://forms.gle/Vvi1xNtWbagQn7jc6">Submit with Google Forms</a></p>
</footer>
</body>
</html>