|
| 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'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' 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's see if the settings synchronization is turned off. |
| 56 | +Put the cursor after <strong><code>></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 => { |
| 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 => { |
| 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 => { |
| 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 => { |
| 97 | + chrome.storage.sync.set( |
| 98 | + sites, |
| 99 | + () => { |
| 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 | + () => { |
| 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> |
0 commit comments