News for hackers. Stuff that matters.
Re:HN: Thank you for being fast, ad-free and text only by amelius on Tuesday January 24, 2023 @11:16AM (#34505578)
But ... these job postings are difficult to discern from other posts. At least Google puts "Ad" in front of ads ...
Re:HN: Thank you for being fast, ad-free and text only by guntherhermann on Tuesday January 24, 2023 @11:31AM (#34505868)
A giveaway is that you can't comment on them :)
Re:HN: Thank you for being fast, ad-free and text only by capableweb on Tuesday January 24, 2023 @11:55AM (#34506284)
Nor do they have points, you can't upvote or flag them. They do stick out a bit and are easy to ignore.
Re:HN: Thank you for being fast, ad-free and text only by bambax on Tuesday January 24, 2023 @11:58AM (#34506342)
You can hide them though.
Re:HN: Thank you for being fast, ad-free and text only by dredmorbius on Tuesday January 24, 2023 @11:54AM (#34506267)
There are several userscripts to block those.

<https://github.com/brownie-in-motion/hn-adblock>, discussed: <https://news.ycombinator.com/item?id=31597486>

Another: <https://gist.github.com/pxeger/4aed4baaa87028a2ecc6441a84a1f...>

(I've used neither.)

I've briefly looked into managing these through CSS alone. Not obviously that I can tell, though the text of job listings should match the pattern:

  <company> (YC <class> ) Is Hiring <position>
I think CSS can act based on content, but need to look at selectors for that.

SO suggests not: <https://stackoverflow.com/questions/1520429/is-there-a-css-s...>

HN doesn't assign a distinctive class to these posts, though the "votelinks" class is missing, which can be used to highlight the listings. E.g.:

  /* HN startup job ads */

  .athing td:nth-of-type(2):not(.votelinks) {
      background: #fcc;
  }

  .athing td:nth-of-type(2):not(.votelinks):before {
      content: "Ad";
      position: relative;
      left: 0.4em;
      color: #000;
  } 
(Other properties might be set.)

I'd need to futz with this some more to see if the entire entry could be dropped, though I'd prefer to simply have them stand out, I think...

Re:HN: Thank you for being fast, ad-free and text only by eipi10_hn on Thursday January 26, 2023 @08:54AM (#34531588)
If you are using ublock, you can use these filters

    news.ycombinator.com##.athing:not(:has(.votelinks))
    news.ycombinator.com##.athing:not(:has(.votelinks)) + tr
    news.ycombinator.com##.athing:not(:has(.votelinks)) + tr + tr
Re:HN: Thank you for being fast, ad-free and text only by _Algernon_ on Tuesday January 24, 2023 @12:41PM (#34507075)
Putting an ad with text color #FEFEFE on a white background doesn't do much.
Re:HN: Thank you for being fast, ad-free and text only by eliasdaler on Tuesday January 24, 2023 @05:35PM (#34511562)
FTC actually has guidelines and rules for online advertising. Here’s a doc from them saying that the ads should be clearly marked as ads: https://www.ftc.gov/system/files/documents/plain-language/bu...

Strange it doesn’t seem to be respected on HN.

Re:HN: Thank you for being fast, ad-free and text only by roflyear on Tuesday January 24, 2023 @11:58PM (#34514597)
Lots of stuff isn't. They don't let you delete your account or delete old comments.