Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

Could part of the problem be that each subreddit can set its own CSS? You can disable this (once you have an account) by unticking Preferences > allow subreddits to show me custom styles


sort by: page size:

I could see this being an issue on sites that allow custom css (reddit)

It appears someone is able to change the custom CSS at will for multiple subreddits. He also claims he has access to all reddit accounts and he's selling the 0-day for BTC.

Gaming, AdviceAnimals, fffffuuuu and iama are affected.

For example, try accessing http://reddit.com/r/gaming and you'll see a black screen with the words "Half Life 3 confirmed". Nearly gave me a heart attack.

Code for the full-screen overlay: <form action="#" class="usertext" onsubmit="return post_form(this, 'editusertext')" id="form-t5_2qh03d4n"><input type="hidden" name="thing_id" value="t5_2qh03"><div class="usertext-body"><div class="md"><p><a href="https://twitter.com/officialnea">Half Life 3 confirmed.</a></p> </div> </div></form>

Disabling custom CSS styles in your user settings will do nothing to prevent it.

EDIT: This has been posted by alienth a few days ago: http://www.reddit.com/r/modnews/comments/205tik/mods_are_being_targeted_for_account_breakins_part/


I am guessing it is just an issue with the custom CSS on this subreddit.

EDIT: Nevermind, after investigating the issue does not seem to be the CSS.


It's been that way for many years so, no, the admins won't fix it. Try a HN app or custom CSS.

Thanks, will check the css solution.

In the case of reddit, the custom CSS could not reference off-reddit resources (images were uploaded), so this technique would not work.

It also doesn't look right if you turn off CSS styling.

It's a bug that we need to fix. I've seen similar things in other threads, but it doesn't come up that often. If anyone has ideas about what's going on here, emailing them to hn@ycombinator.com might help speed up the fixing process. (The core HN programmers have a... somewhat fraught relationship with CSS.)

It really is quite an annoying problem. Does anyone know why the owners of the site don't fix it? I feel like I could submit fixed CSS in a few hours.

Thanks for this! I've been dealing with this issue for a while now and somehow didn't think to use CSS to fix it (despite having a number of custom stylesheets for various sites).

Isn't this only an issue on sites that allow custom css? There aren't many of these sites around (the only one I know of is reddit). In most cases if you're in a position to tamper with the css you can also tamper with the js directly.

thanks for the information, the sharing section was added just now actually so probably the style.css file got cached in your browser, try refreshing the page or clearing cache, this should help I hope. thanks again for sharing!

Aside from disabling custom CSS being an option, I haven't ever stumbled into that problem.

Could you link to an example? In curious :)


Thank you Robert! We have now resolved this issue now, turns out some of our servers didnt have the proper css file.

Enable legacy customizations and fix it in userchrome.css.

I can't say mine is the definitive answer by any means, but it's in my GitHub if you want an example.

https://github.com/torstenvl/userChrome.css


I think this is a solved problem with user styles.

HN design has stayed mostly the same for years, I've been running this userstyle on it [1] for years without issue.

[1] https://github.com/Poorchop/userstyles/tree/master/HackerNew...


Could we get a source on this? It's very hard to believe Reddit is rolling out a change that removes CSS.

EDIT: Source - https://www.reddit.com/r/modnews/comments/66q4is/the_web_red...

We’re designing a new set of tools to address the challenges with CSS but continue to allow communities to express their identities. These tools will allow moderators to select customization options for key areas of their subreddit across platforms. For example, header images and flair colors will be rendered correctly on desktop and mobile.

We know great things happen when we give users as much flexibility as possible. The menu of options we’ll provide for customization is still being determined. Our starting point is to replicate as many of the existing uses that already exist, and to expand beyond as we evolve.

Sounds like they're trying to keep the same flexibility as the existing CSS options, which is a bit different than removing styling.

On the other hand, there are a lot of concerns with the approach Reddit is taking: https://www.reddit.com/r/modnews/comments/66q4is/the_web_red...


Thanks for letting me know, some others have had similar issues, so I think I have some css bugs to fix.

If that is your only issue could you not add your own custom css on top of it?
next

Legal | privacy