Last active
April 1, 2019 08:21
-
-
Save twilight-sparkle-irl/43ed77688bd5ef42f6b26ce4a9994c43 to your computer and use it in GitHub Desktop.
reenable light theme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// i have no clue who the original source for this code was, but originally it enabled developer settings | |
// i've hacked it so that it sets light theme enabled, even when the april fools experiment is running. | |
// it might take a moment, but just click into Settings > Appearance and maybe toggle from light to dark to light if it's particularly slow | |
(async()=>{let r=await new Promise(r=>{let a=[[],{_:(a,b,c)=>r(c)},[["_"]]];typeof webpackJsonp==="object"?webpackJsonp.push(a):webpackJsonp(...a)});delete r.m["_"];delete r.c["_"];for(let i in r.c) {if(r.c.hasOwnProperty(i)){let m=r.c[i].exports;if(m&&(typeof(m)=="object")){if(("getExperimentId" in m)&&m.getExperimentId()==="2019-04_april_fools"){Object.defineProperty(r.c[i].exports,"inExperiment",{get:_=>false,set:_=>_,configurable:true})}else{if(("disableGamesTab" in m)){let g=m.getAllSettings();g.theme="light";m._actionHandlers.USER_SETTINGS_UPDATE({settings:g})}}}}}})() | |
// it's magic joel, it's magic |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When you have to write code to moddify application who has UI designers that failed to raise concerns about people with visual impairments. Slow Clap