6 Commits

Author SHA1 Message Date
chris 43c0beb320 Update download.html 2026-06-27 23:16:37 -04:00
chris 3137d95edc Merge pull request #8 from pvrzz/pvrzz-patch-3
Update download.html
2026-06-27 23:14:45 -04:00
chris d970f04395 Update download.html 2026-06-27 23:14:14 -04:00
chris 1088d33d5a Merge pull request #7 from pvrzz/pvrzz-patch-2
Update download.html
2026-06-25 05:04:24 -04:00
chris 6e24310129 Merge pull request #6 from pvrzz/pvrzz-patch-1
Update index.html
2026-06-25 05:04:07 -04:00
chris 4653bdba4d Update index.html 2026-06-25 05:03:11 -04:00
2 changed files with 27 additions and 10 deletions
+26 -10
View File
@@ -49,19 +49,30 @@
<div class="ver" id="ver-chrome">Fetching latest...</div>
</div>
</div>
<a href="https://github.com/pvrzz/Portage/releases/latest" id="btn-chrome" class="btn btn-primary">Download for Chrome</a>
<a href="https://github.com/pvrzz/Portage/releases/latest" id="btn-chrome" class="btn btn-primary">Download Portage (.crx)</a>
<div class="note">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>
<span>Loaded as an unpacked extension. Data swap APIs are fully supported.</span>
<span>Signed by Chrome. Installs permanently — no developer mode needed.</span>
</div>
<ul class="steps">
<li>Unzip the downloaded <code>portage_chrome.zip</code> file.</li>
<li>Navigate to <code>chrome://extensions</code> in your URL bar.</li>
<li>Enable <strong>Developer mode</strong> in the top right corner.</li>
<li>Click <strong>Load unpacked</strong> and select the unzipped folder.</li>
<li>Drag and drop the downloaded <code>.crx</code> file onto the page.</li>
<li>Click <strong>Add extension</strong> to confirm.</li>
</ul>
<details class="dev-toggle">
<summary>Developer install (unpacked source)</summary>
<ul class="steps">
<li>Download the unpacked <code>.zip</code> using the button below.</li>
<li>Unzip it somewhere you'll remember.</li>
<li>Navigate to <code>chrome://extensions</code> and enable <strong>Developer mode</strong>.</li>
<li>Click <strong>Load unpacked</strong> and select the unzipped folder.</li>
</ul>
<a href="https://github.com/pvrzz/Portage/releases/latest" id="btn-chrome-zip" class="btn btn-ghost" style="margin-top:12px">Download unpacked (.zip)</a>
</details>
</div>
<div class="dl-card">
@@ -78,7 +89,6 @@
</div>
</div>
<a href="https://github.com/pvrzz/Portage/releases/latest" id="btn-firefox" class="btn btn-primary" type="application/octet-stream" download>Download Portage (.xpi)</a>
<a href="https://github.com/pvrzz/Portage/releases/latest" id="btn-firefox-zip" class="btn btn-ghost">Download unsigned (.zip)</a>
<div class="note">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z"/></svg>
@@ -94,12 +104,13 @@
<details class="dev-toggle">
<summary>Developer install (unsigned source)</summary>
<ul class="steps">
<li>Download the unsigned <code>.zip</code> using the button above.</li>
<li>Download the unsigned <code>.zip</code> using the button below.</li>
<li>Unzip it somewhere you'll remember.</li>
<li>Navigate to <code>about:debugging#/runtime/this-firefox</code>.</li>
<li>Click <strong>Load Temporary Add-on...</strong> and select <code>manifest.json</code> from the unzipped folder.</li>
</ul>
<p class="dev-note">Temporary add-ons are removed when Firefox restarts.</p>
<a href="https://github.com/pvrzz/Portage/releases/latest" id="btn-firefox-zip" class="btn btn-ghost" style="margin-top:12px">Download unsigned (.zip)</a>
</details>
</div>
@@ -147,12 +158,16 @@
const tag = data.tag_name || "Latest";
let chromeUrl = data.html_url;
let chromeZipUrl = data.html_url;
let firefoxXpiUrl = data.html_url;
let firefoxZipUrl = data.html_url;
if (data.assets && data.assets.length > 0) {
const cAsset = data.assets.find(a => a.name === "portage_chrome.zip");
if (cAsset) chromeUrl = cAsset.browser_download_url;
const crxAsset = data.assets.find(a => a.name.endsWith(".crx"));
if (crxAsset) chromeUrl = crxAsset.browser_download_url;
const cZipAsset = data.assets.find(a => a.name === "portage_chrome.zip");
if (cZipAsset) chromeZipUrl = cZipAsset.browser_download_url;
const xpiAsset = data.assets.find(a => a.name.endsWith(".xpi"));
if (xpiAsset) firefoxXpiUrl = xpiAsset.browser_download_url;
@@ -164,6 +179,7 @@
verChrome.textContent = tag;
verFirefox.textContent = tag;
btnChrome.href = chromeUrl;
document.getElementById("btn-chrome-zip").href = chromeZipUrl;
btnFirefox.href = firefoxXpiUrl;
btnFirefoxZip.href = firefoxZipUrl;
+1
View File
@@ -203,6 +203,7 @@ File Name: index.html
<a href="download.html">Download</a>
<a href="https://github.com/pvrzz/Portage/" target="_blank" rel="noopener">GitHub</a>
<a href="https://github.com/pvrzz/Portage/releases" target="_blank" rel="noopener">Releases</a>
<a href="privacy.html">Privacy</a>
</div>
<span class="made">made by <a href="https://pvrz.lol/" target="_blank" rel="noopener">pvrz</a> <span class="heart"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.29 1.51 4.04 3 5.5l7 7Z"/></svg></span></span>
</div>