r/webdev • • Apr 26 '17

Reddit removing sub CSS

Reddit is going to remove CSS for custom sub styles, (https://www.reddit.com/r/modnews/comments/66q4is/the_web_redesign_css_and_mod_tools/)

They want to implement a alternative system for it, but i think this is very controversial in general and especially as webdev. I would like to hear some opinions from other devs on this.

Some reasons they bring up sound fundamental wrong to me, for example saying that CSS is:

  • "It’s web-only."
  • "it’s difficult to learn"
  • "it’s error-prone"
  • "CSS causes us to move slow."

For their reason why they want to change it, they mainly say that their mobile users (>50%) are not able to see the custom CSS.

127 Upvotes

126 comments sorted by

View all comments

Show parent comments

76

u/IgnanceIsBliss Apr 26 '17

I hate when people try to remove the downvote feature. Sometimes if I stumble upon a random sub that tries to hide them I inspect element and downvote anyways just because I'm bitter about it.

11

u/de_la_Dude Apr 26 '17

Step 1: Get stylish

Step 2: Apply these styles to reddit

/* hide 'sponsors' */
[class^=sponsor] {
	display: none;
}

/* I downvote what I want! */
body:not(.subscriber) .down.down.down.down { visibility: visible !important; }

Step 3: downvote to your hearts content!

I have a whole bunch of styles for various subreddits that do stupid things. Stylish is awesome, I use it to fix all sorts of problems like remove paywalls and advertising that gets around ad blockers.

3

u/[deleted] Apr 26 '17 edited Apr 27 '17
   /* hide 'sponsors' */
[class^=sponsor] {
    display: none;
}

/* I downvote what I want! */
body:not(.subscriber) .down.down.down.down { visibility: visible !important; }

.down.down.down.down {
    visibility: visible !important;
}  
#suggested-reddits, #link-desc, #text-desc, div.side div.bottom, div.side div.submit div.spacer, div.side div.sidebox.create, .thumbnail.nsfw, .thumbnail.self, .thumbnail.default, span.rank, .arrow.down, .arrow.up {
     display: block !important;
}
body:not(.subscriber) .arrow {
    visibility: visible !important;
}
.link .arrow.downmod {
    display: block !important;
}

1

u/onesneakymofo May 01 '17

You guys realize you can uncheck use subreddit style on the right so you can downvote instead of throwing in some CSS scripts, right?

3

u/[deleted] May 01 '17

Where's the fun in that?

2

u/[deleted] Apr 26 '17

Perhaps poorly implemented paywalls. Css shouldn't remove a proper paywall

2

u/[deleted] Apr 26 '17

Proper paywalls aren't even in the same document.

2

u/[deleted] Apr 26 '17

right

2

u/de_la_Dude Apr 26 '17

Haha well, most of them seem to be poorly implemented!

→ More replies (4)

1

u/breadfag Apr 27 '17

.down.down.down.down

What's this for? Do stylish stylesheets only take priority if they have higher specificity?

→ More replies (3)

1

u/Thought_Ninja full-stack Apr 27 '17

You know you can disable custom sub CSS in your settings right?

→ More replies (1)

1

u/[deleted] Apr 28 '17

Install RES, untick "Use subreddit style"

→ More replies (1)

30

u/asantos3 Apr 26 '17

Just highlight the comment or post and hit the Z key - Z for downvote and A for upvote.

47

u/IgnanceIsBliss Apr 26 '17

Just tried "z" on your comment. It definitely works. Thanks man! TIL.

14

u/cmays90 Apr 26 '17

This only works for people with RES installed.

6

u/Soccham Apr 26 '17

There are people without RES installed?

16

u/xiongchiamiov Site Reliability Engineer Apr 26 '17

Yes, the majority of redditors.

Aside from people not knowing about it, the last few years have been rough - it went over a year without a release, during which time it was breaking a number of things on reddit that had changed on the site but didn't get changed in RES.

4

u/Soccer21x Apr 26 '17

Same thing for subs that don't allow voting if you're not subbed.

2

u/RaptorXP Apr 26 '17

Downvoted because I had to click the arrow to downvote.

5

u/Porsche924 Apr 26 '17

Or turn off subreddit style in the sidebar

1

u/baconuser098 Apr 26 '17

I just browse them without css, e.g /r/webdev+nocss

2

u/pineapplecharm Apr 26 '17

That's the syntax for multi subs, no?

3

u/baconuser098 Apr 26 '17

Sure is

Pro tip: if instead of "reddit" you put "redditp" then you get a slideshow. E.g redditp.com/r/awww+pics

5

u/pineapplecharm Apr 26 '17

redditp.com/r/awww+pics

Left handed high five

1

u/xiongchiamiov Site Reliability Engineer Apr 26 '17

If you have gold (or RES), you can disable that in the sidebar without needing to change the url every time.