Auto-settings rule based on "category" #986
Replies: 2 comments 1 reply
-
That's an interesting and inspiring feature request. Depending on how you want to categorize pages, this might be possible by extracting the schema.org (see https://schema.org) metadata from the page. For example, https://edition.cnn.com/2022/06/26/europe/russia-invasion-ukraine-06-26-intl/index.html contains the following HTML content. <article ... itemtype="https://schema.org/NewsArticle">...</article> On https://www.nytimes.com/2022/06/26/health/abortion-medication-pills.html, the following LD+JSON script can be found. <script ... type="application/ld+json">{ ... "@type":"NewsArticle" ... }</script> Both pages define a Similarly, they also include an Open Graph (see https://ogp.me) tag. <meta property="og:type" content="article"> So, we could imagine that SingleFile would extract all the types found on a page and offer a way to trigger the auto-save depending on these values. For example, the condition of the rule could be |
Beta Was this translation helpful? Give feedback.
-
That seems like it would work! Those details are a bit about my head, but you described it well, and i understand. If I understand correctly, those are all voluntary and I imagine not every site will include any of those, but it sounds like the right way to do it. |
Beta Was this translation helpful? Give feedback.
-
I have been using SingleFile extensively to manually save pages for later reference. I do this mainly for archiving purposes and because i have a bad memory. I've since realized that I always want to save every news article I read. So, I've started to define Auto-settings rules with a specific SingleFile profile for each url of news sites i visit, This profile auto saves pages, and that works fine. However, like most people on the web now, i don't go to just one news source, I get most of my news from link aggregators like google news and reddit. I have to manually add each news website's top level domain (TLD) to the Auto-settings rule with my news autosave profile.
Could it be possible to create an option in the Auto-settings that would let you define a profile based on the "category" of the TDL?
I don't even know if there exists such a list that can be referenced, or how one would go about making one other then a manual process. But if such a list does exist, or can be created easily enough, that would be a pretty great feature.
Beta Was this translation helpful? Give feedback.
All reactions