Hacker News new | ask | show | jobs
by aftbit 2289 days ago
Super lazy night mode, paste this in your console:

    var strokeTable = {
      "#000000": "#AEAEAE",
      "#F5F5F5": "#252525",
      "#FAFAFA": "#2A2A2A",
    }
    Object.entries(strokeTable).forEach(([o, n])=>Array.from(document.querySelectorAll(`[stroke="${o}"]`)).forEach((e)=>e.style.stroke = n))
    Object.entries(strokeTable).forEach(([o, n])=>Array.from(document.querySelectorAll(`[fill="${o}"]`)).forEach((e)=>e.style.fill = n))
    document.body.style.backgroundColor = "#050505"
    document.getElementById("test").style.backgroundColor = "#050505"
1 comments

Not only is it very beautiful, but you made me use the browser console for the first time in my life and it feels great! Thank you.

Off to read some of my bookmarklets, quarantine-style rabbit-hole time!