[GUIDE] Dark Mode [Desktop] [Update #1]

Discussion in 'Site and Forum Feedback' started by AngerDanger, Dec 11, 2018.

  1. AngerDanger, Dec 11, 2018
    Last edited: Dec 14, 2018

    AngerDanger macrumors 68040

    AngerDanger

    Joined:
    Dec 9, 2008
    #1
    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
     
  2. keysofanxiety macrumors G3

    keysofanxiety

    Joined:
    Nov 23, 2011
    #2
    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.
     
  3. AngerDanger thread starter macrumors 68040

    AngerDanger

    Joined:
    Dec 9, 2008
    #3
    FTFY :mad:

    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.
     
  4. decafjava macrumors 68030

    decafjava

    Joined:
    Feb 7, 2011
    Location:
    Geneva
    #4
    I needed the laugh this morning-thanks.
     
  5. AngerDanger thread starter macrumors 68040

    AngerDanger

    Joined:
    Dec 9, 2008
    #5
    The script now works on the main page and hides GIFs to keep everything up to speed.

    Seriously, who even uses GIFs anymore? :rolleyes:
     
  6. matt_and_187_like_this macrumors newbie

    Joined:
    Dec 8, 2015
    #6
    Or just download "Dark mode for safari" from the App Store. But that would be too convenient, I guess.
     
  7. eyoungren macrumors Core

    eyoungren

    Joined:
    Aug 31, 2011
    Location:
    ten-zero-eleven-zero-zero by zero-two
    #7
    What if you don't use Safari?
     
  8. mcfrazieriv macrumors 6502a

    mcfrazieriv

    Joined:
    Jan 30, 2012
    Location:
    Irvine, CA
    #8
    LOL!!!!!!!!!!!!! This is just amazing.
     

Share This Page