Firefox WebExtension (Desktop and Mobile) that lets you share the current tab to Margit.at, frontpage.fyi, etc. with minimal effort.
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

Migrate to new frontpage lexicon

authored by

Tom Sherman and committed by
Anton Rodriguez
a129b035 b97d5c5e

+5 -5
+1 -1
README.md
··· 1 1 ## frontpage.fyi Firefox extension 2 2 3 3 This repository provides a Firefox WebExtension that lets you share the current tab to [frontpage.fyi](https://frontpage.fyi) with minimal effort. 4 - Links are submitted by creating `fyi.unravel.frontpage.post` records on your ATProto account, the same mechanism the official Frontpage site uses. 4 + Links are submitted by creating `fyi.frontpage.feed.post` records on your ATProto account, the same mechanism the official Frontpage site uses. 5 5 6 6 > ℹ️ This repository is hosted on [tangled](https://tangled.org/@galiglobal.com/frontpage_firefox_plugin) (PRs, issues) and [GitHub](https://github.com/antonmry/frontpage_firefox_plugin) (CI/CD, releases). 7 7
+3 -3
extension/background.js
··· 1 1 const browser = globalThis.browser ?? globalThis.chrome; 2 2 const STORAGE_KEY = "frontpageAuth"; 3 - const FRONTPAGE_COLLECTION = "fyi.unravel.frontpage.post"; 4 - const RECORD_TYPE = "fyi.unravel.frontpage.post"; 3 + const FRONTPAGE_COLLECTION = "fyi.frontpage.feed.post"; 4 + const RECORD_TYPE = "fyi.frontpage.feed.post"; 5 5 const DEFAULT_MAX_TITLE = 120; 6 6 const DEFAULT_MAX_URL = 2048; 7 7 ··· 132 132 record: { 133 133 $type: RECORD_TYPE, 134 134 title: trimmedTitle, 135 - url: trimmedUrl, 135 + subject: { url: trimmedUrl }, 136 136 createdAt: new Date().toISOString() 137 137 } 138 138 };
+1 -1
extension/options.html
··· 42 42 <h2>How it works</h2> 43 43 <ul class="tips"> 44 44 <li>The add-on stores your tokens locally using Firefox storage.</li> 45 - <li>Links are published as <code>fyi.unravel.frontpage.post</code> records on your ATProto account.</li> 45 + <li>Links are published as <code>fyi.frontpage.feed.post</code> records on your ATProto account.</li> 46 46 <li>Your PDS is discovered from your handle automatically unless you provide a custom URL.</li> 47 47 </ul> 48 48 </section>