frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Dear HN. Please make the Hacker News header stick to the top of the browser

6•cbeach•2h ago
Dear HN team - please add the following styles to the top <tr> of the Hacker News UI so the header bar sticks to the top of the browser as we scroll down:

    position: sticky;
    top: 0;
    z-index: 10;

Comments

markus_zhang•2h ago
Please don't. It reduces size and it's not far to pull up quickly.

Please make an option to turn it off if it is to be implemented.

collingreen•1h ago
Dear HN, please encourage more user control over the web instead. Wouldn't it be nice if it was easy to do this from within your own individual browser?

There are plenty of extensions and such to let you do stuff but it would be cool if it became easy and normal and built in for users to adjust and control their experience instead of all the ad- and spyware nonsense.

TheCleric•1h ago
No thanks.
denkmoon•1h ago
No thanks. You can do it client side if you care. Are you not a hacker?
Bender•1h ago
This could probably be done in uBlock in My Filters.
anfractuosity•1h ago
Yup the following seemed to work for me -

news.ycombinator.com###hnmain > tbody > tr:first-child:style( position: sticky; top: 0; z-index: 10;)

Bender•1h ago
Confirmed that works here.
wizzwizz4•1h ago
Why do you need z-index?

  /* ==UserStyle==
  @name           HN sticky topbar
  @namespace      https://news.ycombinator.com/user?id=wizzwizz4
  @version        1.0.0
  @description    Pins the HN topbar to the top of the viewport.
  @author         wizzwizz4
  ==/UserStyle== */
  
  @-moz-document domain("news.ycombinator.com") {
      #hnmain > tbody > tr:first-child {
          position: sticky;
          top: 0;
      }
  }
https://addons.mozilla.org/firefox/addon/styl-us/
wizzwizz4•1h ago
Adding a z-index was a hack to workaround the .rotate180 class creating a new stacking context, causing downvotes to be rendered over the sticky topbar. This is hella overengineered. https://news.ycombinator.com/triangle.svg is 131 bytes!

  <svg height="32" viewBox="0 0 32 16" width="32" xmlns="http://www.w3.org/2000/svg"><path d="m2 27 14-29 14 29z" fill="#999"/></svg>
Meanwhile, the relevant section of https://news.ycombinator.com/news.css is much larger:

  .rotate180 {
    -webkit-transform: rotate(180deg);  /* Chrome and other webkit browsers */
    -moz-transform:    rotate(180deg);  /* FF */
    -o-transform:      rotate(180deg);  /* Opera */
    -ms-transform:     rotate(180deg);  /* IE9 */
    transform:         rotate(180deg);  /* W3C complaint browsers */
  
    /* IE8 and below */
    -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=-1, M12=0, M21=0, M22=-1, DX=0, DY=0, SizingMethod='auto expand')";
  }
Just having a separate triangleup.svg and triangledown.svg would save bandwidth and rendering time, and make naïvely-written userstyles work properly! I thought Hacker News, of all websites, would be free from dodgy overengineered CSS…
wizzwizz4•54m ago
This should be easy, but data URIs are fighting me. I've shoved another image there instead. Maybe someone else can get this working properly?

  /* ==UserStyle==
  @name           HN sticky topbar
  @namespace      https://news.ycombinator.com/user?id=wizzwizz4
  @version        1.1.0-alpha
  @description    Pins the HN topbar to the top of the viewport.
  @author         wizzwizz4
  ==/UserStyle== */
  
  @-moz-document domain("news.ycombinator.com") {
      #hnmain > tbody > tr:first-child {
          position: sticky;
          top: 0;
      }
      .votearrow.rotate180 {
        transform: none;
        background-image: url(y18.svg);
      }
  }
MBCook•1h ago
Why do people like this so much? It seems every web site does it these days and I HATE it personally.

It takes up precious screen space for something that isn’t useful enough to need to be on screen constantly. And I can always just tap the top of the screen to jump to the top in a fraction of a second.

hysan•31m ago
Also voicing my opinion to please not do this. As a small phone + large font user, this would greatly reduce the amount of screen real estate. I think it would be a backwards step in accessibility for those with sight problems.

Shai-Hulud malware attack: Tinycolor and over 40 NPM packages compromised

https://www.stepsecurity.io/blog/ctrl-tinycolor-and-40-npm-packages-compromised
873•jamesberthoty•13h ago•665 comments

How to make the Framework Desktop run even quieter

https://noctua.at/en/how-to-make-the-framework-desktop-run-even-quieter
193•lwhsiao•6h ago•54 comments

Apple releases iOS 15.8.5 security update for 10-year old iPhone 6s

https://support.apple.com/en-us/125142
67•jerlam•46m ago•14 comments

Things you can do with a Software Defined Radio (2024)

https://blinry.org/50-things-with-sdr/
596•mihau•10h ago•111 comments

Denmark close to wiping out cancer-causing HPV strains after vaccine roll-out

https://www.gavi.org/vaccineswork/denmark-close-wiping-out-leading-cancer-causing-hpv-strains-aft...
487•slu•7h ago•193 comments

A dumb introduction to z3

https://asibahi.github.io/thoughts/a-gentle-introduction-to-z3/
106•kfl•1d ago•12 comments

Doom crash after 2.5 years of real-world runtime confirmed on real hardware

https://lenowo.org/viewtopic.php?t=31
56•minki_the_avali•3h ago•22 comments

Waymo has received our pilot permit allowing for commercial operations at SFO

https://waymo.com/blog/#short-all-systems-go-at-sfo-waymo-has-received-our-pilot-permit
563•ChrisArchitect•8h ago•525 comments

How Container Filesystem Works: Building a Docker-Like Container from Scratch

https://labs.iximiuz.com/tutorials/container-filesystem-from-scratch
104•lgunsch•3d ago•21 comments

I built my own phone because innovation is sad rn [video]

https://www.youtube.com/watch?v=qy_9w_c2ub0
171•Timothee•2d ago•34 comments

Should We Drain the Everglades?

https://rabbitcavern.substack.com/p/should-we-drain-the-everglades
68•ksymph•5h ago•53 comments

The "Most Hated" CSS Feature: Cos() and Sin()

https://css-tricks.com/the-most-hated-css-feature-cos-and-sin/
60•rapawel•5h ago•38 comments

Wait4X allows you to wait for a port or a service to enter the requested state

https://github.com/wait4x/wait4x
7•atkrad•3d ago•0 comments

A new experimental Google app for Windows

https://blog.google/products/search/google-app-windows-labs/
125•meetpateltech•10h ago•162 comments

Wind turbine blade transportation challenges

https://spectrum.ieee.org/wind-turbine-blade-transport-plane
76•Brajeshwar•3d ago•102 comments

Scammed out of $130K via fake Google call, spoofed Google email and auth sync

https://bewildered.substack.com/p/i-was-scammed-out-of-130000-and-google
281•davidscoville•8h ago•462 comments

Launch HN: Rowboat (YC S24) – Open-source IDE for multi-agent systems

https://github.com/rowboatlabs/rowboat
46•segmenta•8h ago•22 comments

When the job search becomes impossible

https://www.jeffwofford.com/wp/?p=2240
153•pertinhower•12h ago•218 comments

I launched a Mac utility; now there are 5 clones on the App Store using my story

37•tTarnMhrkm•1h ago•19 comments

Plugin System

https://iina.io/plugins/
133•xnhbx•9h ago•32 comments

The Linux Process Journey (2023) [pdf]

https://thelearningjourneyebooks.com/wp-content/uploads/2023/09/TheLinuxProcessJourney_v6_Sep2023...
56•maxmoehl•7h ago•1 comments

Top UN legal investigators conclude Israel is guilty of genocide in Gaza

https://www.middleeasteye.net/news/un-concludes-israel-guilty-genocide-gaza
651•Qem•16h ago•432 comments

Micro-LEDs boost random number generation

https://discovery.kaust.edu.sa/en/article/25936/micro-leds-boost-random-number-generation/
12•giuliomagnifico•3h ago•5 comments

SQL performance improvements: finding the right queries to fix

https://ohdear.app/news-and-updates/sql-performance-improvements-finding-the-right-queries-to-fix...
22•freekmurze•4h ago•1 comments

UTF-8 history (2003)

https://doc.cat-v.org/bell_labs/utf-8_history
85•mikecarlton•3d ago•33 comments

CIA Freedom of Information Act Electronic Reading Room

https://www.cia.gov/readingroom
151•bookofjoe•12h ago•35 comments

Writing an operating system kernel from scratch – RISC-V/OpenSBI/Zig

https://popovicu.com/posts/writing-an-operating-system-kernel-from-scratch/
86•popovicu•3d ago•3 comments

Implicit ODE solvers are not universally more robust than explicit ODE solvers

https://www.stochasticlifestyle.com/implicit-ode-solvers-are-not-universally-more-robust-than-exp...
97•cbolton•11h ago•32 comments

Development of the MOS Technology 6502: A Historical Perspective (2022)

https://www.EmbeddedRelated.com/showarticle/1453.php
58•jason_s•10h ago•8 comments

Bertrand Russell to Oswald Mosley (1962)

https://lettersofnote.com/2016/02/02/every-ounce-of-my-energy/
177•giraffe_lady•8h ago•84 comments