To activate GitHub official dark mode you don't need to install any add-ons or scripts anymore. You just need to open yout GitHub profile and togle the dark mode switcher on the right top corner.