News for hackers. Stuff that matters.
Re:A Minimum Viable Computer, or Linux for $15 by masklinn on Wednesday January 26, 2022 @12:03PM (#30088124)
> Loving it! What orange website could they be talking about?

In case that's a serious question: what website has an orange theme, and an aggressively enforced rule against editorialising submission titles?

Re:A Minimum Viable Computer, or Linux for $15 by lgeorget on Wednesday January 26, 2022 @12:21PM (#30088436)
Ever since I've found that I can change the color of the top bar in my profile, the site has been every color but orange to me. :D
Re:A Minimum Viable Computer, or Linux for $15 by undecisive on Thursday January 27, 2022 @10:48AM (#30101950)
Same here, but my browser still uses orange as the theme colour for HN, which is interesting - I guess it grabs the dominant colour from the favicon (it even does it on sites that try to set the meta theme-color, which is interesting)
Re:A Minimum Viable Computer, or Linux for $15 by hdjjhhvvhga on Wednesday January 26, 2022 @12:50PM (#30088911)
Yeah I changed it to green but the orange Y in the top left-hand corner drives me nuts.
Re:A Minimum Viable Computer, or Linux for $15 by bambax on Wednesday January 26, 2022 @01:48PM (#30089927)
Incredibly, it's a gif. They could at least change it for a png with transparent color...
Re:A Minimum Viable Computer, or Linux for $15 by MikusR on Wednesday January 26, 2022 @12:47PM (#30088867)
I would also want to know. Because news.ycombinator.com is quite selective about the enforcement.
Re:A Minimum Viable Computer, or Linux for $15 by undecisive on Thursday January 27, 2022 @10:47AM (#30101927)
The comment was pure sarcasm - but kind of you to check!
Re:A Minimum Viable Computer, or Linux for $15 by only4here on Wednesday January 26, 2022 @12:16PM (#30088331)
well yeah, but why would they want to block out the "orange website"?
Re:A Minimum Viable Computer, or Linux for $15 by bryanlarsen on Wednesday January 26, 2022 @12:20PM (#30088399)
I don't think "screw with" means "block" in this case. But there is one moderately famous blog that does block HN: https://www.jwz.org/
Re:A Minimum Viable Computer, or Linux for $15 by wanderingjew on Wednesday January 26, 2022 @12:25PM (#30088494)
yeah I asked jwz how to do that, but I can't figure out a way to make that work with Github pages.
Re:A Minimum Viable Computer, or Linux for $15 by Beltalowda on Wednesday January 26, 2022 @12:29PM (#30088573)

  if (document.referrer === 'https://news.ycombinator.com/')
    window.location = 'https://cdn.jwz.org/images/2016/hn.png'
Or something along those lines should work.
Re:A Minimum Viable Computer, or Linux for $15 by demindiro on Wednesday January 26, 2022 @01:16PM (#30089382)
He checks the Referer header[1]. In Firefox you can prevent that header from being sent by setting `network.http.sendRefererHeader` to 0 (in about:config).

[1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Re...

Re:A Minimum Viable Computer, or Linux for $15 by shakna on Wednesday January 26, 2022 @12:30PM (#30088598)
HN helpfully uses the referrer, so you can easily do it with a tiny bit of JS:

    <script>
    if(document.referrer == "https://news.ycombinator.com/") {
        // Mess with HN users here...
    }
    </script>
Re:A Minimum Viable Computer, or Linux for $15 by vidarh on Wednesday January 26, 2022 @01:20PM (#30089468)
View source on the linked website just now:

    <!-- DO HN STUFF HERE
    <script>
        if(document.referrer == "https://news.ycombinator.com/") {
             window.location = 'https://bbenchoff.github.io/images/Brogrammers.png'
        }
    </script>
    -->
Re:A Minimum Viable Computer, or Linux for $15 by bryanlarsen on Wednesday January 26, 2022 @12:34PM (#30088647)
JWZ appears to use Apache, so he probably does something like http://www.htaccess-guide.com/deny-visitors-by-referrer/
Re:A Minimum Viable Computer, or Linux for $15 by numpad0 on Wednesday January 26, 2022 @02:04PM (#30090176)
That is the way it was done back in the day, usually when admin wanted guests to not come through Google Search or to come through a correct word-of-mouth bouncer page. Client side JS implementations allow content to be viewed by blocking JS.
Re:A Minimum Viable Computer, or Linux for $15 by Aissen on Wednesday January 26, 2022 @12:21PM (#30088434)
They're not blocking it out, they are protesting the weird, variable, "original title" policy. https://news.ycombinator.com/newsguidelines.html