HNHacker News
TopNewBestAskShowJobs

rebane2001

622 karma · joined November 11, 2018

[ my public key: https://keybase.io/rebane2001; my proof: https://keybase.io/rebane2001/sigs/4HkMB7oA7B6H8AEWU_hxCpivtZX1EEixF0aYbsc1Yxg ]
submissionscomments
rebane2001··on Show HN: Wikipedia as a doomscrollable social media feed
This app IS made in under 1mb. The entire app, including all the assets minus all the actual Wikipedia data, is 21kB (no minification or compression). And all of it is in a single html file with human-readable code.
rebane2001··on Show HN: Wikipedia as a doomscrollable social media feed
I wrote this project by hand in Sublime Text, which is more of a text editor than an IDE. I don't use ai, even for autocomplete.

All of the code is unminified/unobfuscated in the index.html file, you can right click the page and view-source it.

rebane2001··on Show HN: Wikipedia as a doomscrollable social media feed
that's really cool!!
rebane2001··on Show HN: Wikipedia as a doomscrollable social media feed
I might add a proper explanation at some point, but for now you can view-source the page and read the code, there really isn't that much of it.
rebane2001··on Show HN: Wikipedia as a doomscrollable social media feed
That's a very silly claim considering I bought the domain the same day I released the project. I'm sure whoever would've been interested in buying the domain could've already swept it up for 10 bucks before me.
rebane2001··on Show HN: Wikipedia as a doomscrollable social media feed
Mastodon/HN do not have a personalized weighted algorithm. On HN you see what everyone else sees, and on Mastodon the feed is chronological. DuckDuckGo offers some privacy, but still sends your search queries to Bing.

Also, all three of the examples are projects that have years of dev effort and hosting infrastructure behind them - Xikipedia is a project I threw together in less than a day for fun, I don't want to put effort into server-side maintenance and upkeep for such a small project. I just want a static index.html I can throw in /var/www/ and forget.

And re: hosting, my bare metal box is fine. It's just slow right now because it's getting a huge spike of attention. I don't want to pay for a CDN, and I doubt I could host a file getting multiple gigabits per second of traffic for free.

rebane2001··on Show HN: Wikipedia as a doomscrollable social media feed
> no but...why are you passing 40mb from your server to my device in a lump like that?

Because you need all of the cross-article link data, which is the majority of the 40mb, to run the algorithm. The algorithm does not run on the server, because I care about both user privacy and internet preservation.

Once the 40MB is downloaded, you can go offline, and the algorithm will still work. If you save the index.html and the 40MB file, you can run the entire thing locally.

> actually using the service

This is a fun website, it is not a "service".

> you've not only lost a user but weakened the experience of someone that's chosen to wait by increasing their load time

I make websites for fun. Losing a user doesn't particularly affect me, I don't plan on monetizing this, I just want people to have fun.

Yes, it is annoying that people have to wait a bit for the page to load, but that is only because the project has hundreds of thousands of more eyes on it than I expected it to within the first few hours. I expected this project to get a few hundred visits within the first few hours, in which case the bandwidth wouldn't have been an issue whatsoever.

> I am just having trouble understanding why you've decided to make me and your server sit through a 40MB transfer for text and images...

Running the algorithm locally, privacy, stability, preservation, ability to look at and play with the code, ability to go offline, easy to maintain and host etc.

Besides, sites like Twitter use up like a quarter of that for the JavaScript alone.

rebane2001··on Show HN: Wikipedia as a doomscrollable social media feed
> Why are you serving so much data personally instead of just reformatting theirs?

Because then you only need to download 40MB of data and do minimal processing. If you were to take the dumps off of Wikimedia, you would need to download 400MB of data and do processing on that data that would take minutes of time.

And also it's kind of rude to hotlink a half a gig of data on someone else's site.

> What am I missing?

40MB per second is 320mbps, so even 3 visitors per second maxes out a gigabit connection.

rebane2001··on Show HN: Wikipedia as a doomscrollable social media feed
The loading issue is just a hug of death, the site's currently getting multiple visitors per second, and that requires more than a gigabit of bandwidth to handle.

I sort of need to pull all the data at the initialization because I need to map out how every post affects every other - the links between posts are what take up majority of the storage, not the text inside the posts. It's also kind of the only way to preserve privacy.

rebane2001··on AI is a business model stress test
> I’ve made the radio buttons half-visible in the demo for clarity, but with the opacity: 0 they would not actually be visible.
rebane2001··on You can make up HTML tags
I would suggest not using this as it's not compatible with NoScript
rebane2001··on Replacing JavaScript with Just HTML
For tabs, see: https://lyra.horse/blog/2025/08/you-dont-need-js/#lyres-and-...

As far as I can tell, my implementation there fits the guidelines.

rebane2001··on Why the Sanitizer API is just `setHTML()`
> Because it's pretty much the only thing you can do when sanitizing server-side

I'd suggest not sanitizing user-provided HTML on the server. It's totally fine to do if you're fully sanitizing it, but gets a little sketchy when you want to keep certain elements and attributes.

rebane2001··on Fizz Buzz in CSS
im not sure how you counted that as 145, but here's 137 for the css

<style>p{--n:counter(n);counter-increment:n;&:before{content:var(--n)};&:nth-child(5n){--n:"";&:after{content:"Buzz"}}&:nth-child(3n){--n:"Fizz"</style><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p>

rebane2001··on Trick users and bypass warnings – Modern SVG Clickjacking attacks
> I'm so lost, or at least, struggling. Why is modern HTML/CSS like this?

I think it's pretty neat. It allows me to build cool interactive stuff such as the post in question without having to use JavaScript.

> And also apparently clicking on the label toggles the checkbox because, it just works that way by default?

Yes, that's how semantic HTML forms work.

> And then the CSS properties can vary depending on the checkbox state, without JavaScript, because that's just built into CSS for some reason?

Yes, it makes sense to be able to style an unchecked checkbox differently from a checked one. And I'm just using CSS's `:has()` to check for the state: html:has(#foo:checked) label[for=foo] { ... }

> And two separate <feTile> tags define a filter in conjunction, one describing the region to take as a tile and the second describing where to tile it?

<feTile> is a single element filter just like all the other ones. It just tiles the current image to the desired size. If the input is bigger than the output, it functions as a crop instead. So I use two of them to achieve a crop + tile.

> And what even are these <fake-frame> and <art-frame> elements?

They're autonomous custom elements, you can just make them up instead of using div-soup.

I touched on it in this post: https://lyra.horse/blog/2025/08/you-dont-need-js/

rebane2001··on Trick users and bypass warnings – Modern SVG Clickjacking attacks
> What specifically does Google Docs do that requires it?

Google wants documents to be embeddable on external sites.

> How do you frame the victim site without iframes?

You don't, you use it in a different scenario. For example if you have HTML injection, but its fairly limited due to strict CSP.

rebane2001··on Trick users and bypass warnings – Modern SVG Clickjacking attacks
I don't think invalid spam reports mean something is overrated. Spam reports are spam reports. That'd be like saying buffer overflows are overrated because there are a bunch of AI-generated invalid spam reports with them.

A valid report needs to demonstrate a realistic attack scenario, and I think that's the approach bug bounties should take.

I think a good example is Google with its stance on open redirects[0]. They won't accept a report just pointing one out, but they will accept one that "can demonstrate that its impact goes beyond phishing".

[0] https://bughunters.google.com/learn/invalid-reports/web-plat...

rebane2001··on Trick users and bypass warnings – Modern SVG Clickjacking attacks
it's not all solved because some applications require framing (eg google docs), and you can run this attack against a non-frame target, such a website with html injection, but strict CSP
rebane2001··on CSS now has an if() conditional function
not as much as you would think, the if statements don't really affect the css crimes scene because pretty much everything was already possible before
rebane2001··on Trick users and bypass warnings – Modern SVG Clickjacking attacks
I don't think clickjacking is overrated, it's usually the opposite with it being not even accepted by many bug bounty programs.

I've been able to make realistic attacks against multiple targets. Many services, such as Google Docs, need to enable cross-origin framing for their functionality.

And beyond that, even if you restrict the framing, it might still be possible to clickjack as a part of a more complex attack chain, see: https://lyra.horse/blog/2024/09/using-youtube-to-steal-your-...

And the attack in OP does not require iframes, so it can also be applied to injection attacks where CSP prevents javascript for example.

(disclaimer: author of story)

rebane2001··on Trick users and bypass warnings – Modern SVG Clickjacking attacks
As a user: Browsers let you manually disable JS, but you can also use an extension such as NoScript (I do).

As a web developer: You can use Content Security Policy to limit or disable JS, as well as other resources such as CSS and images.

rebane2001··on Users Stuck in YubiKey Re-Enrollment Loop on X (Twitter)
on android and browser i get that behavior, on ios it just says "something went wrong" after the email confirm part
rebane2001··on Aspects of modern HTML/CSS you may not be familiar with
thank you for the response!

i am aware that the link color specifically is not ideal and i have been playing around with designs that feel similar while having better contrast - but your comment seemed to call the entire site un-accessible, so i was wondering if there's anything else that stood out and that could be improved

rebane2001··on Aspects of modern HTML/CSS you may not be familiar with
I do care about accessibility, so seeing comments implying I'm doing something wrong without telling me what's wrong just kind of sucks.
rebane2001··on Aspects of modern HTML/CSS you may not be familiar with
Which part are you referring to? What browser/version are you using?
rebane2001··on Aspects of modern HTML/CSS you may not be familiar with
Could you point out ARIA APG patterns the blogpost and its examples are not hitting due to no JS?
rebane2001··on Aspects of modern HTML/CSS you may not be familiar with
What version? I tested my blogpost on Safari and added stuff specifically to accommodate it - the only known broken thing is the color picker, and I mention it in the post.
rebane2001··on Aspects of modern HTML/CSS you may not be familiar with
Which ones? What browser/version are you running?
rebane2001··on Aspects of modern HTML/CSS you may not be familiar with
Original HN title: You no longer need JavaScript: an overview of what makes modern CSS so awesome

Changed HN title: Aspects of modern HTML/CSS you may not be familiar with

As the author, I don't really have a problem with either title :).

Externally, the title is meant to be augmented by the summary (as seen in the original HN title), and I much prefer that over just the title alone by itself. I usually make my titles fun and catchy, and a part of the story I want to tell, while the summary's there to provide a more neutral and accurate overview of the post before people click on it.

The post's story doesn't make sense with the changed title, but that's not an issue because if people click on the link they'll see the original title on the website. I don't mind the title of an external link being more descriptive.

rebane2001··on Aspects of modern HTML/CSS you may not be familiar with
could you give any examples of how the page's accessibility could be improved - apart from your dislike of the background color

you're calling the post un-accessible and telling people to not use it as a source - i'd like to know why you think that, and if there's any way to improve the accessibility

← PreviousPage 2 of 4Next →