readability
SponsorBlock
Our great sponsors
readability | SponsorBlock | |
---|---|---|
51 | 904 | |
7,973 | 8,692 | |
6.4% | - | |
6.3 | 9.3 | |
12 days ago | 13 days ago | |
JavaScript | TypeScript | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
readability
- Mozilla: Readability.js
-
CSS for readability
I'm working with the Mozilla's readability library https://github.com/mozilla/readability to get the "readable" text from articles and now I want to style the extracted text in a readable way.
-
Building a Serverless Reader View with Lambda and Chrome
Do you remember the Firefox Reader View? It's a feature that removes all unnecessary components like buttons, menus, images, and so on, from a website, focusing on the readable content of the page. The library powering this feature is called Readability.js, which is open source.
-
Webrecorder: Capture interactive websites and replay them at a later time
I wonder if Firefox "reader mode as a utility" might be a viable alternative for Pinboard like "content oriented" archiving?
-
Creating an advanced search engine with PostgreSQL
Depending upon the type of content, one might want to look into using the Readability (Browder's reader view) to parse the webpage. It will give you all the useful info without the junk. Then you can put it in the DB as needed.
https://github.com/mozilla/readability
Btw, readability, is also available in few other languages like Kotlin:
-
I built a free prompt managing tool - Knit
Same as above but the ability to grab the entire article text (you can use the Readability library for that: https://github.com/mozilla/readability)
-
I need automatic source URLs when I paste any text onto a card or note, like on OneNote.
// Original script // https://gist.github.com/kepano/90c05f162c37cf730abb8ff027987ca3 // Bookmarklet Converter // https://caiorss.github.io/bookmarklet-maker/ // Libraries // https://github.com/mixmark-io/turndown // https://github.com/mozilla/readability javascript: Promise.all([import('https://unpkg.com/[email protected]?module'), import('https://unpkg.com/@tehshrike/[email protected]'), ]).then(async ([{ default: Turndown }, { default: Readability }]) => { /* Optional vault name */ const vault = ""; /* Optional folder name such as "Clippings/" */ const folder = "Clippings/"; /* Optional tags */ const tags = ""; function getSelectionHtml() { var html = ""; if (typeof window.getSelection != "undefined") { var sel = window.getSelection(); if (sel.rangeCount) { var container = document.createElement("div"); for (var i = 0, len = sel.rangeCount; i < len; ++i) { container.appendChild(sel.getRangeAt(i).cloneContents()); } html = container.innerHTML; } } else if (typeof document.selection != "undefined") { if (document.selection.type == "Text") { html = document.selection.createRange().htmlText; } } return html; } const selection = getSelectionHtml(); const { title, byline, content } = new Readability(document.cloneNode(true)).parse(); function getFileName(fileName) { var userAgent = window.navigator.userAgent, platform = window.navigator.platform, windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE']; if (windowsPlatforms.indexOf(platform) !== -1) { fileName = fileName.replace(':', '').replace(/[/\\?%*|"<>]/g, '-'); } else { fileName = fileName.replace(':', '').replace(/\//g, '-').replace(/\\/g, '-'); } return fileName; } const fileName = getFileName(title); if (selection) { var markdownify = selection; } else { var markdownify = content; } if (vault) { var vaultName = '&vault=' + encodeURIComponent(`${vault}`); } else { var vaultName = ''; } const markdownBody = new Turndown({ headingStyle: 'atx', hr: '---', bulletListMarker: '-', codeBlockStyle: 'fenced', emDelimiter: '*', }).turndown(markdownify); var date = new Date(); function convertDate(date) { var yyyy = date.getFullYear().toString(); var mm = (date.getMonth()+1).toString(); var dd = date.getDate().toString(); var mmChars = mm.split(''); var ddChars = dd.split(''); return yyyy + '-' + (mmChars[1]?mm:"0"+mmChars[0]) + '-' + (ddChars[1]?dd:"0"+ddChars[0]); } const today = convertDate(date); // This is the output template // It is similar to an Obsidian core template // except to insert a value we use: ${value} instead of {{value}} const fileContent =`--- type: clipping date_added: ${today} aliases: [] tags: [${tags}] --- author:: ${byline.toString().split('\n')[0].trim()} source:: [${title}](${document.URL}) ${markdownBody} `; // This copies your text to the clipboard navigator.clipboard.writeText(fileContent); // This creates a new document in Obsidian containing your clipping // I commented it out as this isn't what you asked for /* document.location.href = "obsidian://new?" + "file=" + encodeURIComponent(folder + fileName) + "&content=" + encodeURIComponent(fileContent) + vaultName; */ })
-
RSS meets GPT-3
So first part of the task is to "extract the text from URL", and that is achieved by using descendant of https://github.com/mozilla/readability library which can extract text of any URL.
-
Ask HN: Those making $0/month or less on side projects – Show and tell
- a collaborative visual bookmarking tool. It started as something comparable to a visual pinboard, but then I discovered https://github.com/mozilla/readability and it turned into a cross between pinboard and pocket
* Tendee https://tendee.co/ - an attendance tracking tool for recurring events (track a team over a sports season) with a wait-list option as well. Technically it can be used to fill the void between a calendar event, an evite and a Facebook event page, but that's such a narrow use case. This one is still very new.
-
Go Code Roast #2: readability.js port
In this video, I roast a port of a Mozilla Javascript library, readability.js (https://github.com/mozilla/readability) to Go (https://github.com/cixtor/readability).
SponsorBlock
-
Show HN: CTRL-F for YouTube Videos
just use sponsorblock today, works fine on all my devices. https://github.com/ajayyy/SponsorBlock
from mobile phone to tv to pc.
-
The creator economy can't rely on Patreon
You are one of today's 10,000.
And if you have android:
-
YouTube strikes again, it seems
The SponsorBlock [0] addon has already solved that for sponsored/ad segments in videos. Rather than AI, crowdsourced timestamps lets it automatically skip past adverts.
- Amazon Prime Video Will Start Showing Ads on January 29
-
Show HN: YouTube banned adblockers so I built an extension to skip their ads
For the latter there’s the open-source SponsorBlock: https://sponsor.ajay.app/
-
YouTube's plan backfires, people are installing better ad blockers
During this debacle I did discover SponsorBlock - https://sponsor.ajay.app/
This is different from YouTube platform ad-blocking, instead it is crowd-sourced auto-skip of in-video sponsorship messages etc. Quite configurable, really appreciating it so far.
- YouTube's Ad Blocker Crackdown Spurs Record Uninstalls
-
YouTube's Anti-Adblock and uBlock Origin
> a creator having a "merch" ad integration doesn't count as an ad.
this is why you also install sponsorblock (https://sponsor.ajay.app/). Only whitelist the channels you want to "support", if you really want to make sure to eyeball the sponsorship (which doesn't really help unless it happens to be a product you actually are interested in buying).
What are some alternatives?
NewPipe - A libre lightweight streaming front-end for Android.
Invidious - Invidious is an alternative front-end to YouTube
Spotify-Ad-Blocker - EZBlocker - A Spotify Ad Blocker for Windows
NewPipe - A fork of NewPipe with SponsorBlock functionality.
nextdns - NextDNS CLI client (DoH Proxy)
yt-dlp - A feature-rich command-line audio/video downloader
uBlock-issues - This is the community-maintained issue tracker for uBlock Origin
TwitchAdSolutions
SmartYouTubeTV - Watch YouTube videos on your TV and set-top-box with comfort
Pi-hole - A black hole for Internet advertisements
SmartTube - SmartTube - an advanced player for set-top boxes and tvs running Android OS
uBlock - uBlock Origin - An efficient blocker for Chromium and Firefox. Fast and lean.