You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>CodeTweak lets you run custom JavaScript ("user scripts") on the sites you choose. Click <em>New Script</em> on the dashboard, write or paste code, pick the target sites and save – that's it!</p>
282
+
</div>
283
+
284
+
<divclass="about-section" id="installing">
285
+
<h2>Installing Scripts</h2>
286
+
<h3>Greasy Fork (1-click)</h3>
287
+
<p>Click <em>Browse Scripts</em> to open the Greasy Fork dialog, search for a script and press <em>Install</em>.</p>
288
+
<h3>Drag & Drop</h3>
289
+
<p>Drag any <code>.js</code> or text file onto the dashboard to import it.</p>
290
+
<h3>Paste Code</h3>
291
+
<p>Open the editor, paste a script and click <em>Save</em>.</p>
292
+
<h3>In-app Greasy Fork search</h3>
293
+
<p>Use the search field inside the Greasy Fork modal to find scripts without leaving CodeTweak.</p>
294
+
</div>
274
295
275
-
<h3>How to Use</h3>
276
-
<ol>
277
-
<li>Create a script by clicking the "New Script" button</li>
278
-
<li>Specify the target website(s) where the script should run</li>
279
-
<li>Write your JavaScript code in the editor</li>
280
-
<li>
281
-
Choose when the script should run (page start, DOM ready, page
282
-
load, or when a specific element is loaded)
283
-
</li>
284
-
<li>
285
-
Save your script and it will automatically run when you visit
286
-
the specified websites
287
-
</li>
288
-
</ol>
296
+
<divclass="about-section" id="managing">
297
+
<h2>Managing Scripts</h2>
298
+
<p>Use the <em>Scripts</em> table to enable/disable, edit, update, export or delete each script. Filters above the table help locate scripts quickly.</p>
299
+
<p>The badge on the extension icon shows how many scripts are active on the current tab.</p>
300
+
</div>
301
+
302
+
<divclass="about-section" id="creating">
303
+
<h2>Creating Scripts</h2>
304
+
<p>The built-in editor supports syntax highlighting and lets you opt-in to Greasemonkey (GM) APIs such as <code>GM_getValue</code>, <code>GM_openInTab</code> and <code>GM_notification</code>. Toggle the checkboxes to inject the APIs you need.</p>
305
+
<p>You can also declare <code>@resource</code> and <code>@require</code> headers – the editor will fetch and bundle them automatically.</p>
0 commit comments