Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save 8ullyMaguire/ca8ddb18a759e1eb7eb66d98a46162a0 to your computer and use it in GitHub Desktop.

Select an option

Save 8ullyMaguire/ca8ddb18a759e1eb7eb66d98a46162a0 to your computer and use it in GitHub Desktop.
Install a userscript from a GitHub Gist in Firefox for Android
Here's how to install a userscript from a GitHub Gist in Firefox for Android.
### 1. Install a Userscript Manager
Firefox for Android doesn't natively run userscripts, so you need a manager extension first.
* **Tampermonkey**: The most popular option, officially supported in Firefox for Android version 110 and newer.
* Open Firefox, go to **Menu > Add-ons > Add-ons Manager**.
* Find **Tampermonkey** and tap the **+** (or "Add to Firefox") button to install it.
* **Violentmonkey**: A great open-source alternative that also works well on Android. You can find and install it the same way from the Add-ons Manager.
### 2. Get the "Raw" URL of Your Gist Script
Userscript managers install scripts by visiting their direct file URL, which usually ends in `.user.js`.
1. Open your script's Gist page on GitHub.
2. Tap the **"Raw"** button. This opens your script's plain code in the browser.
3. Copy the URL from the address bar. It should look like: `https://gist.githubusercontent.com/[username]/[gist-id]/raw/[file-name].user.js`
### 3. Install the Script
With the manager installed and the raw URL copied, you can now install the script.
* **Option A (Easiest)**: Paste the raw URL directly into the Firefox address bar and press Enter. Your userscript manager (Tampermonkey or Violentmonkey) should automatically detect the script and prompt you to install it.
* **Option B (Via Manager)**:
* **Tampermonkey**: Open the Tampermonkey dashboard, go to the **Utilities** tab, find the **"Install from URL"** section, paste your raw Gist URL, and click "Install".
* **Violentmonkey**: Open the Violentmonkey dashboard, click the **"+"** (or "New Script") button, and select **"Install from URL"** to paste your link.
### Troubleshooting & Tips
* **Use Firefox Nightly (If Needed)**: If your preferred userscript manager isn't available in the standard Add-ons Manager, you can install **Firefox Nightly**. In Nightly, go to **Settings > About Firefox Nightly** and tap the Firefox logo 5 times to enable a **"Install add-on from file"** option in the settings.
* **Script Updates**: Userscript managers usually check for updates automatically. If your Gist script is updated, the manager should prompt you to install the new version.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment