stylus
parser
Our great sponsors
stylus | parser | |
---|---|---|
118 | 12 | |
5,082 | 5,245 | |
2.2% | 2.2% | |
9.6 | 1.1 | |
about 1 month ago | 6 months ago | |
JavaScript | JavaScript | |
GNU General Public License v3.0 only | Apache License 2.0 |
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.
stylus
-
Nepal bans TikTok and says it disrupts social harmony
I used a Firefox add-on called "Stylus" and wrote a custom css rule to hide the relevant divs/elements. It's not perfect, but it's okay. https://github.com/openstyles/stylus
However, after the recent ad-blocker targeting by Youtube I pretty much just stopped watching. I added my regular subscriptions to the NewPipe app on my phone and just watch what they put out.
The add-on I mentioned above is super useful to personalize my experience with other websites. Particularly online-shopping and other marketplaces that have huge amounts of whitespace for no reason. You'd be surprised how much nicer the web experience is after you add a few "margin: 0px;" css styles to strategic areas.
- /r/AccidentalRenaissance moderators have all resigned. The subreddit has permanently shut down and moved to Lemmy.
-
Official Minecraft wiki editors so furious at Fandom's 'degraded' functionality and popups they're overwhelmingly voting to leave the site
I try to maintain a user style to improve Fandom's wikis, for anyone using the Stylus Extension.
-
Make GoodReads 15% Less Annoying with One Weird Trick!
Both of these are hosted on userstyles.world. To use them, you'll need to have a browser extension like Stylus . Then just click the blue Install button for each tool you want!
-
Promote Your Work! July 2023 Self-Promotion thread
These are both hosted on userstyles.world. I recommend using them with the Stylus browser extension, which works on Chrome, Firefox (including Firefox Nightly for Android) and Opera. (Pretty sure it will also work with Cascadea if you're on Safari but I haven't tested it yet.)
-
Any way to make lemmy look more like old reddit?
I wonder if Stylus would be good for this...
-
What have they done to my subscriptions page?!
Use Stylus
-
Fidelity cuts Reddit valuation by 41%
Stylus and display: hide !important; are your friends.
-
YouTube extension
looks good to me, its a css file so its already quite limited, and i did a quick check and it doesnt seem to load anything (from just searching for "url"), so it should all be local. stylus is open source, but of course thats no garuntee that its safe https://github.com/openstyles/stylus . its also a reccomended extension on firefox, which means that they do check it more thouroghly, but idk if thats good enough for you.
- Ad-free Twitter with 1 line of CSS
parser
-
Show HN: I made a tool to clean and convert any webpage to Markdown
Thoroughly scraping is challenging, especially in an environment where you don’t have (or want) a JavaScript runtime.
For content extraction, I found the approach the Postlight library takes quite neat. It scores individual html nodes based on some heuristics (text length, link density, css classes). It the selects the nodes with the highest score. [1] I ported it to Swift for a personal read later app.
[1] https://github.com/postlight/parser
-
Trouble Building Chrome Extension to Get News Article Content
I've been working on an enhanced reader mode extension for the last few months. I found that Mercury Reader's parser tool is useful for extracting content. If that's not exactly what you're looking for, readibility is another good option. It's a library used inside Firefox's reader moder that you can use in any project.
-
What Are The Coolest Virtual Machines You Currently Run 24/7?
I currently have it turned off while I search for better sources, but I have a VM that runs a custom cron script that combines a custom RSS reader, podfox, mercury-parser, and coqui-ai to generate audio podcasts from RSS news feeds. I should probably clean it up and release the script/setup process. With a few tweaks and some AI text-to-speech and a little machine learning audio processing you can get a really good podcast experience from text posts.
-
Extracting Text button no longer works
It looks like Relay could be updated to convert it locally though, since the parser that it uses appears to be open source.
-
Which are some open-source Chrome extensions you want to use on Firefox?
https://github.com/postlight/mercury-parser The only one I need, shit's too good
-
API for getting news fulltext
An alternative would be to extract the plain text from the article's page with either some "readability" API or a library like Mercury Parser: https://github.com/postlight/mercury-parser
-
How does Firefox's Reader View work?
I haven’t directly compared them, but I have also found mercury parser (https://github.com/postlight/mercury-parser) to be very reliable.
Since it turns a website into very plain (X)HTML it‘s fairly easy to use it to make a browsing proxy or automatically produce epub files for e-readers, which is what I do.
-
Build your self-hosted Evernote
Make sure that at the end of the process you have the node and npm executables installed - the http.webpage integration uses the Mercury Parser API to convert web pages to Markdown.
-
Reading from the web offline and distraction-free
Good luck! Those HTML issues you're coming across are tough and so varied across the web!
I was working with Mercury Parser (pluggable parsing for different sites) in the past.
https://github.com/postlight/mercury-parser
- The most underused browser feature
What are some alternatives?
darkreader - Dark Reader Chrome and Firefox extension
readability - A standalone version of the readability lib
stylish - User styles manager for Firefox and other Mozilla software
hn-search - Hacker News Search
violentmonkey - Violentmonkey provides userscripts support for browsers. It works on browsers with WebExtensions support.
Just-Read - A customizable read mode web extension.
snahp-it-forum-link-solver - Simplify opening forum.snahp.it links.
FParsec - A parser combinator library for F#
tidy-html5 - The granddaddy of HTML tools, with support for modern standards
tridactyl - A Vim-like interface for Firefox, inspired by Vimperator/Pentadactyl.
rdrview - Firefox Reader View as a command line tool