Recently Written · git

subplz-web

git clone https://github.com/equwal/subplz-web

Log | Files | Refs


commit 7ebbd3f6e900b44597c50d328870041f2e2ac6f6
equwal <truex@equwal.com>
2026-09-21 02:54:45 -0700

Ask for support on Ko-fi after a free conversion, and in the footer

The ask is one line, shown when a conversion in the browser is done. A
visitor who has credits or a plan does not see it: a customer has done
their part. The footer has the link for each visitor.

 frontend/app.js     | 4 ++++
 frontend/index.html | 5 ++++-
 2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/frontend/app.js b/frontend/app.js
index 54bc4cd..16adae3 100644
--- a/frontend/app.js
+++ b/frontend/app.js
@@ -507,6 +507,10 @@ function renderWorking(st) {
 }
 
 function showResults(r) {
+  // The ask goes to people who got a book for nothing, at the moment it worked.
+  // Not to a customer: someone who pays for credits has done their part.
+  const chipIn = document.getElementById('chip-in');
+  if (chipIn) chipIn.hidden = Boolean(account?.credits > 0 || account?.subscribed);
   el.stop.hidden = true;
   el.stop.disabled = false;
   el.results.hidden = false;
diff --git a/frontend/index.html b/frontend/index.html
index da5d65b..13ae656 100644
--- a/frontend/index.html
+++ b/frontend/index.html
@@ -158,6 +158,8 @@
       <div id="result-files" class="job-files"></div>
       <p class="muted small">Videos are made here when you ask for them, in seconds.
         They are not kept anywhere: make them before closing this tab.</p>
+      <p class="muted small" id="chip-in" hidden>SubRead is free, and it has no ads.
+        <a href="https://ko-fi.com/truex" target="_blank" rel="noopener">Chip in for the server on Ko-fi</a>, if it helped.</p>
       <div class="actions"><button id="another" class="ghost">Convert another book</button></div>
     </div>
   </section>
@@ -178,7 +180,8 @@
   <p class="muted small">
     <a href="/terms.html">Terms, privacy and refunds</a> ·
     <a href="https://github.com/equwal/subplz-web" target="_blank" rel="noopener">Source code</a> ·
-    <a href="https://github.com/equwal/subread-android/releases/latest" target="_blank" rel="noopener">Android app</a>
+    <a href="https://github.com/equwal/subread-android/releases/latest" target="_blank" rel="noopener">Android app</a> ·
+    <a href="https://ko-fi.com/truex" target="_blank" rel="noopener">Support on Ko-fi</a>
   </p>
 </footer>