Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

AngerDanger

Graphics
Original poster
Staff member
Dec 9, 2008
5,464
29,131
I came up with an adequate approach to adding a dark mode.

Caveats
  • It's inefficient
  • It hides GIFs for optimization
  • Embedded videos appear inverted (but play really well?!)
Download a user style manager, like Stylish, and paste this code into a new script:

Code:
img[src*="gif"] {
    display: none;
}
body,img,h2.title{
    filter: invert(100%);
}
#mainContainer{
    background-color:white;
}
body[style="zoom: 1;"]{
    background-color:black;
    background-image:none;
}

Make sure to set its apply rule to "Regexp" and "macrumors.com"

Screen Shot 2018-12-13 at 9.32.43 PM.png


You can now turn dark mode on and off by clicking on the icon the browser extension added and toggling on and off the script. Here are a couple sample images:

Screen Shot 2018-12-14 at 10.03.50 AM.png
Screen Shot 2018-12-14 at 10.03.31 AM.png
 
Last edited:
Perfect! I was wondering how to soak up those spare CPU cycles and struggle to read text on a forum, but you anticipated my need.

I was hoping you could also write a command to automatically create and dynamically resize a blank file in real-time. I’ve got some pesky free hard drive space that I just can’t fill.

I tried that last app you sent me but it was just a GIF of you dancing on my dock icons and eating various fruits suggestively. I’m not sure why I expected anything different.
 
Perfect! I was wondering how to soak up those spare CPU cycles and struggle to WRITE text on a forum, but you anticipated my need.
FTFY :mad:

I was hoping you could also write a command to automatically create and dynamically resize a blank file in real-time. I’ve got some pesky free hard drive space that I just can’t fill.

I tried that last app you sent me but it was just a GIF of you dancing on my dock icons and eating various fruits suggestively. I’m not sure why I expected anything different.
Yeah, I'm just surprised to managed to see a difference, considering your icons were already me dancing while "eating" MS Painted fruit. I never did figure out where you got those original images…

Anyway, as per the judge's ruling—yes, me in a frilly wig is a judge—you shouldn't be bringing this stuff up in public. I don't even know why you're allowed to contact me.

But I'm glad you got the app.
 
The script now works on the main page and hides GIFs to keep everything up to speed.

Seriously, who even uses GIFs anymore? :rolleyes:
 
  • Like
Reactions: Weaselboy
Perfect! I was wondering how to soak up those spare CPU cycles and struggle to read text on a forum, but you anticipated my need.

I was hoping you could also write a command to automatically create and dynamically resize a blank file in real-time. I’ve got some pesky free hard drive space that I just can’t fill.

I tried that last app you sent me but it was just a GIF of you dancing on my dock icons and eating various fruits suggestively. I’m not sure why I expected anything different.

LOL!!!!!!!!!!!!! This is just amazing.
 
  • Like
Reactions: AngerDanger
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.