Skip to content

Commit fe985f8

Browse files
committed
Publish 2023-11-22
1 parent 6d552b1 commit fe985f8

7 files changed

Lines changed: 175 additions & 2 deletions

File tree

images/tips/bug-4-9-69-detect.png

8.11 KB
Loading

images/tips/bug-4-9-69-page.png

15.6 KB
Loading

tips/console-err-ff/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h1 id="how-to-check-for-errors-in-firefox-console">How to check for errors in F
3232
<li><p>Open <strong>Console</strong> tab.</p>
3333
<img src="/images/tips/cons-errFFX-cons.png" alt="Console" style="width: 24rem;" loading="lazy" /></li>
3434
</ol>
35-
<p>Check if there are any errors and send to <a href="mailto:&#115;&#117;&#112;&#x70;&#x6f;&#114;&#x74;&#64;&#x64;&#97;&#114;&#107;&#114;&#x65;&#97;&#100;&#101;&#x72;&#46;&#111;&#x72;&#x67;">&#115;&#117;&#112;&#x70;&#x6f;&#114;&#x74;&#64;&#x64;&#97;&#114;&#107;&#114;&#x65;&#97;&#100;&#101;&#x72;&#46;&#111;&#x72;&#x67;</a> if necessary.</p>
35+
<p>Check if there are any errors and send to <a href="mailto:&#x73;&#x75;&#112;&#x70;&#x6f;&#x72;&#x74;&#64;&#x64;&#x61;&#114;&#x6b;&#114;&#101;&#97;&#x64;&#x65;&#114;&#x2e;&#x6f;&#x72;&#x67;">&#x73;&#x75;&#112;&#x70;&#x6f;&#x72;&#x74;&#64;&#x64;&#x61;&#114;&#x6b;&#114;&#101;&#97;&#x64;&#x65;&#114;&#x2e;&#x6f;&#x72;&#x67;</a> if necessary.</p>
3636

3737

3838
<p>

tips/index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@
7373
</a>
7474
</li>
7575

76+
<li>
77+
<a class="tip-link" href="restore-site-list-v4.9.69/">
78+
How to restore a missing Site List after v4.9.69 update
79+
</a>
80+
</li>
81+
7682
</ul>
7783
</nav>
7884
</body>
Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="utf-8" />
6+
<title>How to restore a missing Site List after v4.9.69 update – Dark Reader tips & tricks</title>
7+
<meta name="viewport" content="width=device-width, initial-scale=1" />
8+
<link rel="shortcut icon" href="/images/icon-256.png" />
9+
<link rel="stylesheet" type="text/css" href="/styles/tips-topic.css" />
10+
<meta name="theme-color" content="#141e24" />
11+
<meta property="og:type" content="article" />
12+
<meta property="og:url" content="https://darkreader.org/tips/restore-site-list-v4.9.69/" />
13+
<meta property="og:title" content="How to restore a missing Site List after v4.9.69 update – Dark Reader tips & tricks" />
14+
<meta property="og:image" content="https://darkreader.org/images/darkreader-screenshot-v5-preview.png" />
15+
<meta property="og:description" content="Tech tips for dark mode lovers" />
16+
</head>
17+
18+
<body class="page-grid-body">
19+
<header class="page-grid-header">
20+
<a class="header-logo" href="../"></a>
21+
</header>
22+
<main class="page-grid-content">
23+
<article>
24+
<h1 id="how-to-restore-a-missing-site-list-after-v4969-update">How to restore a missing Site List after v4.9.69 update</h1>
25+
<p>There was an error in version <strong>4.9.69</strong>: users who had a very big <strong>Site List</strong> may have it disappeared 🤷.
26+
Only Google Chrome users could have this update.
27+
Here are some instructions for restoring a part of the Site List.</p>
28+
<h3 id="storage">Storage</h3>
29+
<p>There are 2 types of extension&#39;s storage:</p>
30+
<ul>
31+
<li><strong><code>sync</code></strong> synchronizes settings across devices (default).</li>
32+
<li><strong><code>local</code></strong> stores the settings locally.</li>
33+
</ul>
34+
<p>When users hit a <strong>size limit</strong>, they are switched from <code>sync</code> to <code>local</code> storage.
35+
Due to <strong>The Bug</strong> the Site List was removed from the <code>local</code> storage.
36+
But some websites could be still saved in the <code>sync</code> storage.</p>
37+
<h2 id="restoring-the-site-list">Restoring the Site List</h2>
38+
<h3 id="opening-the-extensions-background-console">Opening the extensions&#39; background Console</h3>
39+
<ol>
40+
<li>Go to <a href="chrome://extensions">chrome://extensions</a> page.</li>
41+
<li>Enable <strong>Developer mode</strong>.</li>
42+
<li>Find <strong>Dark Reader</strong> and click <a href="background/index.html">background/index.html</a>.</li>
43+
<li>Open <strong>Console</strong> tab.</li>
44+
</ol>
45+
<img src="/images/tips/bug-4-9-69-page.png" alt="Chrome Extensions page" style="width: 24rem;" loading="lazy" />
46+
47+
<h3 id="viewing-the-stored-site-list">Viewing the stored Site List</h3>
48+
<style>
49+
pre {
50+
background-color: #090e10;
51+
color: #53b26f;
52+
}
53+
</style>
54+
55+
<p>First let&#39;s see if the settings synchronization is turned off.
56+
Put the cursor after <strong><code>&gt;</code></strong> mark, copy/paste the following code block and press <strong>Enter</strong> to run it.
57+
If you see <strong><code>syncSettings: false</code></strong> it means it is turned off:</p>
58+
<pre><code>chrome.storage.local.get(
59+
{
60+
syncSettings: true,
61+
},
62+
settings =&gt; {
63+
console.log(settings);
64+
},
65+
);
66+
</code></pre>
67+
<p>Lets see if there are any sites in the <code>sync</code> storage:</p>
68+
<pre><code>chrome.storage.sync.get(
69+
{
70+
enabledFor: [],
71+
disabledFor: [],
72+
},
73+
sites =&gt; {
74+
console.log(sites);
75+
},
76+
);
77+
</code></pre>
78+
<p>This should display the sites from the <code>local</code> storage:</p>
79+
<pre><code>chrome.storage.local.get(
80+
{
81+
enabledFor: [],
82+
disabledFor: [],
83+
},
84+
sites =&gt; {
85+
console.log(sites);
86+
},
87+
);
88+
</code></pre>
89+
<h3 id="moving-sites-from-sync-to-local-storage">Moving sites from Sync to Local storage</h3>
90+
<p>The following code snippet copies the sites from the Sync storage into the Local storage and reloads the extension:</p>
91+
<pre><code>chrome.storage.sync.get(
92+
{
93+
enabledFor: [],
94+
disabledFor: [],
95+
},
96+
sites =&gt; {
97+
chrome.storage.sync.set(
98+
sites,
99+
() =&gt; {
100+
chrome.runtime.reload();
101+
},
102+
);
103+
},
104+
);
105+
</code></pre>
106+
<h3 id="enabling-settings-synchronization">Enabling settings synchronization</h3>
107+
<p>The following code snippet enables the settings synchronization:</p>
108+
<pre><code>chrome.storage.local.set(
109+
{
110+
syncSettings: true,
111+
},
112+
() =&gt; {
113+
chrome.runtime.reload();
114+
},
115+
);
116+
</code></pre>
117+
<h2 id="reducing-the-site-list">Reducing the Site List</h2>
118+
<p>Please consider the following options to avoid the Site List becoming large:</p>
119+
<ol>
120+
<li><strong>Detect Dark Theme</strong> option.</li>
121+
</ol>
122+
<img src="/images/tips/bug-4-9-69-detect.png" alt="Detect Dark Theme" style="width: 16rem;" loading="lazy" />
123+
124+
<ol start="2">
125+
<li><strong>Invert listed only</strong> mode.</li>
126+
</ol>
127+
<img src="/images/help/darkreader-site-list.png" alt="Dark Reader Site List" style="width: 16rem;" loading="lazy" />
128+
129+
<p>We are sorry for this error. Thanks for using Dark Reader!</p>
130+
131+
132+
<p>
133+
<darkreader-donate-mascot></darkreader-donate-mascot>
134+
<script type="module" src="/elements/donate-mascot.js"></script>
135+
</p>
136+
</article>
137+
</main>
138+
<aside class="page-grid-inside">
139+
<darkreader-backers-header></darkreader-backers-header>
140+
<script type="module" src="/elements/backers-top.js"></script>
141+
</aside>
142+
<aside class="page-grid-side">
143+
<darkreader-backers-side></darkreader-backers-side>
144+
<script type="module" src="/elements/backers-right.js"></script>
145+
</aside>
146+
<aside class="page-grid-ios">
147+
<darkreader-ios-side></darkreader-ios-side>
148+
<script type="module" src="/elements/ios.js"></script>
149+
</aside>
150+
<script>
151+
document.querySelectorAll('video').forEach((video) => {
152+
video.addEventListener('click', () => {
153+
if (video.paused) {
154+
video.play();
155+
} else {
156+
video.pause();
157+
}
158+
});
159+
});
160+
</script>
161+
</body>
162+
163+
</html>

tips/topics.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,9 @@
3030
{
3131
"id": "configure-toggle-automation",
3232
"title": "How to configure Automation and Site Toggling"
33+
},
34+
{
35+
"id": "restore-site-list-v4.9.69",
36+
"title": "How to restore a missing Site List after v4.9.69 update"
3337
}
3438
]

tips/ui-errors/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ <h1 id="how-to-check-for-ui-errors-firefox">How to check for UI errors (Firefox)
3535
<li><p>Press <strong>F12</strong> and see if there are any errors.</p>
3636
<img src="/images/tips/UI-err-console.png" alt="Dark Reader UI console" style="width: 16rem;" loading="lazy" /></li>
3737
</ol>
38-
<p>If you find something please email to our support team <a href="mailto:&#115;&#x75;&#x70;&#x70;&#x6f;&#x72;&#x74;&#64;&#x64;&#x61;&#x72;&#107;&#x72;&#101;&#97;&#100;&#x65;&#114;&#46;&#x6f;&#114;&#103;">&#115;&#x75;&#x70;&#x70;&#x6f;&#x72;&#x74;&#64;&#x64;&#x61;&#x72;&#107;&#x72;&#101;&#97;&#100;&#x65;&#114;&#46;&#x6f;&#114;&#103;</a> and we will try to help you!</p>
38+
<p>If you find something please email to our support team <a href="mailto:&#115;&#x75;&#x70;&#x70;&#111;&#114;&#116;&#x40;&#x64;&#97;&#114;&#107;&#x72;&#x65;&#x61;&#100;&#x65;&#x72;&#46;&#x6f;&#114;&#103;">&#115;&#x75;&#x70;&#x70;&#111;&#114;&#116;&#x40;&#x64;&#97;&#114;&#107;&#x72;&#x65;&#x61;&#100;&#x65;&#x72;&#46;&#x6f;&#114;&#103;</a> and we will try to help you!</p>
3939

4040

4141
<p>

0 commit comments

Comments
 (0)