Skip to content

Instantly share code, notes, and snippets.

@NSExceptional
Last active August 20, 2021 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NSExceptional/2d8c4a4081390e908d7df8ffc037ade6 to your computer and use it in GitHub Desktop.
Save NSExceptional/2d8c4a4081390e908d7df8ffc037ade6 to your computer and use it in GitHub Desktop.
Manually get and set settings with "Inspect popup" console on the extension
{
"applyToListedOnly": false,
"automation": "",
"changeBrowserTheme": false,
"customThemes": [
{
"theme": {
"brightness": 100,
"contrast": 80,
"darkSchemeBackgroundColor": "#181a1b",
"darkSchemeTextColor": "#e8e6e3",
"engine": "svgFilter",
"fontFamily": "Helvetica Neue",
"grayscale": 0,
"lightSchemeBackgroundColor": "#dcdad7",
"lightSchemeTextColor": "#181a1b",
"mode": 1,
"scrollbarColor": "",
"selectionColor": "auto",
"sepia": 0,
"styleSystemControls": true,
"stylesheet": "",
"textStroke": 0.2,
"useFont": false
},
"url": [
"www.google.com"
]
},
{
"theme": {
"brightness": 150,
"contrast": 80,
"darkSchemeBackgroundColor": "#181a1b",
"darkSchemeTextColor": "#e8e6e3",
"engine": "svgFilter",
"fontFamily": "Helvetica Neue",
"grayscale": 0,
"lightSchemeBackgroundColor": "#dcdad7",
"lightSchemeTextColor": "#181a1b",
"mode": 1,
"scrollbarColor": "",
"selectionColor": "auto",
"sepia": 0,
"styleSystemControls": true,
"stylesheet": "",
"textStroke": 0.2,
"useFont": false
},
"url": [
"stackoverflow.com"
]
},
{
"theme": {
"brightness": 150,
"contrast": 80,
"darkSchemeBackgroundColor": "#181a1b",
"darkSchemeTextColor": "#e8e6e3",
"engine": "svgFilter",
"fontFamily": "Helvetica Neue",
"grayscale": 0,
"lightSchemeBackgroundColor": "#dcdad7",
"lightSchemeTextColor": "#181a1b",
"mode": 1,
"scrollbarColor": "",
"selectionColor": "auto",
"sepia": 0,
"styleSystemControls": true,
"stylesheet": "",
"textStroke": 0.2,
"useFont": false
},
"url": [
"twitter.com"
]
},
{
"theme": {
"brightness": 120,
"contrast": 70,
"darkSchemeBackgroundColor": "#181a1b",
"darkSchemeTextColor": "#e8e6e3",
"engine": "cssFilter",
"fontFamily": "Helvetica Neue",
"grayscale": 0,
"lightSchemeBackgroundColor": "#dcdad7",
"lightSchemeTextColor": "#181a1b",
"mode": 1,
"scrollbarColor": "",
"selectionColor": "auto",
"sepia": 0,
"styleSystemControls": true,
"stylesheet": "",
"textStroke": 0.2,
"useFont": false
},
"url": [
"idmsa.apple.com"
]
},
{
"theme": {
"brightness": 120,
"contrast": 80,
"darkSchemeBackgroundColor": "#181a1b",
"darkSchemeTextColor": "#e8e6e3",
"engine": "svgFilter",
"fontFamily": "Helvetica Neue",
"grayscale": 0,
"lightSchemeBackgroundColor": "#dcdad7",
"lightSchemeTextColor": "#181a1b",
"mode": 1,
"scrollbarColor": "",
"selectionColor": "auto",
"sepia": 0,
"styleSystemControls": true,
"stylesheet": "",
"textStroke": 0.2,
"useFont": false
},
"url": [
"www.instagram.com"
]
},
{
"theme": {
"brightness": 110,
"contrast": 90,
"darkSchemeBackgroundColor": "#181a1b",
"darkSchemeTextColor": "#e8e6e3",
"engine": "svgFilter",
"fontFamily": "Helvetica Neue",
"grayscale": 0,
"lightSchemeBackgroundColor": "#dcdad7",
"lightSchemeTextColor": "#181a1b",
"mode": 1,
"scrollbarColor": "",
"selectionColor": "auto",
"sepia": 0,
"styleSystemControls": true,
"stylesheet": "",
"textStroke": 0.2,
"useFont": false
},
"url": [
"gist.github.com"
]
},
{
"theme": {
"brightness": 120,
"contrast": 85,
"darkSchemeBackgroundColor": "#181a1b",
"darkSchemeTextColor": "#e8e6e3",
"engine": "svgFilter",
"fontFamily": "Helvetica Neue",
"grayscale": 0,
"lightSchemeBackgroundColor": "#dcdad7",
"lightSchemeTextColor": "#181a1b",
"mode": 1,
"scrollbarColor": "",
"selectionColor": "auto",
"sepia": 0,
"styleSystemControls": true,
"stylesheet": "",
"textStroke": 0.2,
"useFont": false
},
"url": [
"github.com"
]
},
{
"theme": {
"brightness": 100,
"contrast": 90,
"darkSchemeBackgroundColor": "#181a1b",
"darkSchemeTextColor": "#e8e6e3",
"engine": "staticTheme",
"fontFamily": "Helvetica Neue",
"grayscale": 0,
"lightSchemeBackgroundColor": "#dcdad7",
"lightSchemeTextColor": "#181a1b",
"mode": 1,
"scrollbarColor": "",
"selectionColor": "auto",
"sepia": 0,
"styleSystemControls": true,
"stylesheet": "",
"textStroke": 0.2,
"useFont": false
},
"url": [
"news.ycombinator.com"
]
},
{
"theme": {
"brightness": 120,
"contrast": 95,
"darkSchemeBackgroundColor": "#181a1b",
"darkSchemeTextColor": "#e8e6e3",
"engine": "dynamicTheme",
"fontFamily": "Helvetica Neue",
"grayscale": 0,
"lightSchemeBackgroundColor": "#dcdad7",
"lightSchemeTextColor": "#181a1b",
"mode": 1,
"scrollbarColor": "",
"selectionColor": "auto",
"sepia": 0,
"styleSystemControls": true,
"stylesheet": "",
"textStroke": 0.2,
"useFont": false
},
"url": [
"code.visualstudio.com"
]
},
{
"theme": {
"brightness": 120,
"contrast": 95,
"darkSchemeBackgroundColor": "#181a1b",
"darkSchemeTextColor": "#e8e6e3",
"engine": "dynamicTheme",
"fontFamily": "Helvetica Neue",
"grayscale": 0,
"lightSchemeBackgroundColor": "#dcdad7",
"lightSchemeTextColor": "#181a1b",
"mode": 1,
"scrollbarColor": "",
"selectionColor": "auto",
"sepia": 0,
"styleSystemControls": true,
"stylesheet": "",
"textStroke": 0.2,
"useFont": false
},
"url": [
"nshipster.com"
]
},
{
"theme": {
"brightness": 100,
"contrast": 80,
"darkSchemeBackgroundColor": "#181a1b",
"darkSchemeTextColor": "#e8e6e3",
"engine": "cssFilter",
"fontFamily": "Helvetica Neue",
"grayscale": 0,
"lightSchemeBackgroundColor": "#dcdad7",
"lightSchemeTextColor": "#181a1b",
"mode": 1,
"scrollbarColor": "",
"selectionColor": "auto",
"sepia": 0,
"styleSystemControls": true,
"stylesheet": "",
"textStroke": 0.2,
"useFont": false
},
"url": [
"developer.apple.com"
]
},
{
"theme": {
"brightness": 100,
"contrast": 90,
"darkSchemeBackgroundColor": "#181a1b",
"darkSchemeTextColor": "#e8e6e3",
"engine": "svgFilter",
"fontFamily": "Helvetica Neue",
"grayscale": 0,
"lightSchemeBackgroundColor": "#dcdad7",
"lightSchemeTextColor": "#181a1b",
"mode": 1,
"scrollbarColor": "",
"selectionColor": "auto",
"sepia": 0,
"styleSystemControls": true,
"stylesheet": "",
"textStroke": 0.2,
"useFont": false
},
"url": [
"bugs.swift.org"
]
},
{
"theme": {
"brightness": 100,
"contrast": 80,
"darkSchemeBackgroundColor": "#181a1b",
"darkSchemeTextColor": "#e8e6e3",
"engine": "svgFilter",
"fontFamily": "Helvetica Neue",
"grayscale": 0,
"lightSchemeBackgroundColor": "#dcdad7",
"lightSchemeTextColor": "#181a1b",
"mode": 1,
"scrollbarColor": "",
"selectionColor": "auto",
"sepia": 0,
"styleSystemControls": true,
"stylesheet": "",
"textStroke": 0.2,
"useFont": false
},
"url": [
"forums.swift.org"
]
},
{
"theme": {
"brightness": 120,
"contrast": 95,
"darkSchemeBackgroundColor": "#181a1b",
"darkSchemeTextColor": "#e8e6e3",
"engine": "staticTheme",
"fontFamily": "Helvetica Neue",
"grayscale": 0,
"lightSchemeBackgroundColor": "#dcdad7",
"lightSchemeTextColor": "#181a1b",
"mode": 1,
"scrollbarColor": "",
"selectionColor": "auto",
"sepia": 0,
"styleSystemControls": true,
"stylesheet": "",
"textStroke": 0.2,
"useFont": false
},
"url": [
"mirror.informatimago.com"
]
},
{
"theme": {
"brightness": 120,
"contrast": 95,
"darkSchemeBackgroundColor": "#181a1b",
"darkSchemeTextColor": "#e8e6e3",
"engine": "dynamicTheme",
"fontFamily": "Helvetica Neue",
"grayscale": 0,
"lightSchemeBackgroundColor": "#dcdad7",
"lightSchemeTextColor": "#181a1b",
"mode": 1,
"scrollbarColor": "",
"selectionColor": "auto",
"sepia": 0,
"styleSystemControls": true,
"stylesheet": "",
"textStroke": 0.2,
"useFont": false
},
"url": [
"app.slack.com"
]
},
{
"theme": {
"brightness": 50,
"contrast": 150,
"darkSchemeBackgroundColor": "#181a1b",
"darkSchemeTextColor": "#e8e6e3",
"engine": "dynamicTheme",
"fontFamily": "Helvetica Neue",
"grayscale": 0,
"lightSchemeBackgroundColor": "#dcdad7",
"lightSchemeTextColor": "#181a1b",
"mode": 1,
"scrollbarColor": "",
"selectionColor": "auto",
"sepia": 100,
"styleSystemControls": true,
"stylesheet": "",
"textStroke": 0.2,
"useFont": false
},
"url": [
"www.bestbuy.com"
]
},
{
"theme": {
"brightness": 100,
"contrast": 100,
"darkSchemeBackgroundColor": "#181a1b",
"darkSchemeTextColor": "#e8e6e3",
"engine": "dynamicTheme",
"fontFamily": "Helvetica Neue",
"grayscale": 0,
"lightSchemeBackgroundColor": "#dcdad7",
"lightSchemeTextColor": "#181a1b",
"mode": 1,
"scrollbarColor": "",
"selectionColor": "auto",
"sepia": 0,
"styleSystemControls": true,
"stylesheet": "",
"textStroke": 0.2,
"useFont": false
},
"url": [
"www.typescriptlang.org"
]
},
{
"theme": {
"brightness": 100,
"contrast": 85,
"darkSchemeBackgroundColor": "#181a1b",
"darkSchemeTextColor": "#e8e6e3",
"engine": "svgFilter",
"fontFamily": "Helvetica Neue",
"grayscale": 0,
"lightSchemeBackgroundColor": "#dcdad7",
"lightSchemeTextColor": "#181a1b",
"mode": 1,
"scrollbarColor": "",
"selectionColor": "auto",
"sepia": 0,
"styleSystemControls": true,
"stylesheet": "",
"textStroke": 0.2,
"useFont": false
},
"url": [
"www.advancedinstaller.com"
]
},
{
"theme": {
"brightness": 120,
"contrast": 80,
"darkSchemeBackgroundColor": "#181a1b",
"darkSchemeTextColor": "#e8e6e3",
"engine": "svgFilter",
"fontFamily": "Helvetica Neue",
"grayscale": 0,
"lightSchemeBackgroundColor": "#dcdad7",
"lightSchemeTextColor": "#181a1b",
"mode": 1,
"scrollbarColor": "",
"selectionColor": "auto",
"sepia": 0,
"styleSystemControls": true,
"stylesheet": "",
"textStroke": 0.2,
"useFont": false
},
"url": [
"www.icloud.com"
]
}
],
"enableForPDF": false,
"enableForProtectedPages": true,
"enabled": true,
"location": {
"latitude": null,
"longitude": null
},
"notifyOfNews": false,
"presets": [],
"previewNewDesign": true,
"readNews": [
"v4-9",
"attention",
"dr-5-announcement",
"2m-users",
"automation",
"product-hunt-golden-kitty-2018",
"time-settings",
"safari",
"500k-users",
"stylish",
"product-hunt",
"custom-site-settings",
"thanks-for-contribution",
"dynamic-theme",
"v4-9-16"
],
"siteList": [
"www.reddit.com",
"ghostbin.co",
"twitter.com",
"app.slack.com",
"^github.com",
"www.point.app",
"localhost:3000",
"docs.github.com",
"app-privacy-policy-generator.firebaseapp.com",
"app.diagrams.net",
"www.whitehouse.gov"
],
"siteListEnabled": [],
"syncSettings": false,
"syncSitesFixes": true,
"theme": {
"brightness": 100,
"contrast": 100,
"darkSchemeBackgroundColor": "#181a1b",
"darkSchemeTextColor": "#e8e6e3",
"engine": "dynamicTheme",
"fontFamily": "Helvetica Neue",
"grayscale": 0,
"lightSchemeBackgroundColor": "#dcdad7",
"lightSchemeTextColor": "#181a1b",
"mode": 1,
"scrollbarColor": "",
"selectionColor": "auto",
"sepia": 0,
"styleSystemControls": true,
"stylesheet": "",
"textStroke": 0.2,
"useFont": false
},
"time": {
"activation": "18:00",
"deactivation": "9:00"
}
}
// https://github.com/darkreader/darkreader/issues/666#issuecomment-413560768
// Get settings, update this gist
chrome.storage.sync.get(null, (settings) => console.log(JSON.stringify(settings, null, 4)));
// Paste the function below in the console
// Requires this chrome extension to be installed and turned on to bypass CORS:
// https://chrome.google.com/webstore/detail/disable-content-security/ieelmcmcagommplceebfedjlakkhpden?hl=en
function getJSON(url) {
const req = new XMLHttpRequest();
req.open("GET", url, false);
req.send(null);
return req.responseText;
}
// Set settings
const settingsURL = "https://gist.githubusercontent.com/NSExceptional/2d8c4a4081390e908d7df8ffc037ade6/raw/dark-reader.json";
chrome.storage.sync.set(JSON.parse(getJSON(settingsURL)), () => console.log(chrome.runtime.lastError || 'OK'));
// Update
chrome.runtime.reload();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment