個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Staple — a Chrome extension that staples a week of Substack essays into one PDF, EPUB or HTML file. Open source (MIT); website and releases.
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗A Chrome extension that binds a week (or any range) of Substack essays into one print-ready PDF, an EPUB for your e-reader, or a single self-contained HTML file. It uses your own Substack sign-in, so it includes free posts plus any paid posts you subscribe to; paywalled posts you can't read are shown as "preview only" and left out by default.
Install Staple from the Chrome Web Store: https://chromewebstore.google.com/detail/staple/hakeoeghnpkdejinkkbopcmonhigpmdf
chrome://extensions and turn on Developer mode (top right).Staple folder.Be signed in to substack.com in the same Chrome profile if you want Import my subscriptions and paid posts to work.
name.substack.com or a custom domain like theorybrief.com). Custom
domains ask for permission to read that site the first time. The list is
saved; Refresh subscriptions picks up new ones.
.epub (cover, contents, one chapter per post, images
embedded) for Apple Books, Kobo, Calibre or Send to Kindle..html file with the stylesheet inlined and images
embedded — opens in any browser, offline, and prints like the PDF.lib/substack.js — calls Substack's undocumented JSON API with your cookies:
/api/v1/subscriptions/page_v2 (cursor-paginated), {pub}/api/v1/archive, and
substack.com/api/v1/posts/by-id/{id} for bodies. A post counts as
"preview only" when its body has under 80% of its listed word count.lib/clean.js — strips subscribe/share widgets, turns tweets, videos and
embedded posts into static equivalents, and namespaces footnote ids.book.html / book.css — cover, contents, one article per chapter, print
typography (@page size, page numbers). Image scale resizes via Substack's
CDN (w_ parameter) and caps display width.lib/epub-export.js, lib/epub.js, lib/zip.js, epub.css — EPUB 3 (with
NCX fallback) built in the browser: images downloaded and embedded, a cover
drawn on a canvas, zipped with CompressionStream.lib/html-export.js, lib/images.js — standalone HTML export and the image
downloader shared with EPUB.lib/notice.js — the "Substack is rate-limiting — resuming in N s" banner.app.html / app.js — the picker UI. Settings, publications and groups live
in chrome.storage.local.lib/config.js — SUPPORT_URL, the Buy Me a Coffee link shown in the app
footer and for a minute on the finished book page (hidden while empty).docs/ is the public website (home, support, privacy policy), published with
GitHub Pages at https://victorshammas.com/staple/. See docs/README.md.
MIT — see LICENSE.
store/ holds the Chrome Web Store kit: the upload zip, screenshots, promo
tiles, listing and privacy-form text, a privacy policy, and a Notes
announcement draft. Start with store/SUBMISSION.md. Rebuild the zip after
code changes (the command leaves out store/ and this README):
zip -r -X store/staple-1.0.0.zip manifest.json background.js app.html app.css app.js \
book.html book.css book.js epub.css icons lib -x "*.DS_Store"