<p>LocalCDN is a web browser extension that emulates Content Delivery Networks to improve your online privacy. It intercepts traffic, finds supported frameworks/libraries locally, and injects them into the website. Feel free to use the following <ahref="https://www.localcdn.org/test"rel="nofollow noopener noreferrer">testing utility</a> to find out if you are properly protected. For more information read the <ahref="https://www.localcdn.org/tutorial"rel="nofollow noopener noreferrer">tutorial</a> or our <ahref="https://codeberg.org/nobody/LocalCDN/wiki"target="_blank"rel="nofollow noopener noreferrer">Wiki pages</a>.</p>
<p>In most cases LocalCDN can easily replace embedded frameworks and improves privacy. In some cases the website may try to prevent this by setting certain options in the HTML source code. LocalCDN reads the HTML source code before it is displayed in the browser and removes these options.</p>
<p>Unfortunately, it sometimes happens that special characters are then displayed incorrectly. In this case you can deactivate the setting again, to display the umlauts correctly.</p>
<divclass="subtle-hint"><divclass="topic-label">Some websites look strange or are not easy to use</div>
<p>There are two possible reasons: Either a framework/library is required that LocalCDN doesn't (yet) deliver or an SOP.</p><p>A SOP (Same origin policy) is a security mechanism that determines what data the browser is allowed to load. It helps to isolate malicious documents and thus reduce possible attack vectors. This policy prevents the browser from loading the external frameworks of LocalCDN.</p>
<p>If the layout of a website is incorrect or cannot be used, then it is usually due to this policy, even though the add-on works flawlessly. Unfortunately there is no solution for this at the moment.</p>
<p>LocalCDN can replace "Google Material Icons". To catch the connection, uBlock/uMatrix must allow the request. LocalCDN listens on these requests and if the query contains "Google Material Icons", the resource will be replaced. If you uncheck the "Block requests for missing content" option, non-existent resources will be allowed to pass and "Google Fonts" will be loaded, because "Google Material Icons" and "Google Fonts" use the same domain. If you don't want this, you can block "Google Fonts" on LocalCDN.</p>
<divclass="subtle-hint"><divclass="topic-label">What about the statistics? Is anything transferred to any servers?</div>
<p>Don't panic, nothing will be transmitted. It would be against all my principles. The statistics (JSON format) contains the following information: Date, CDN+counter and framework+counter. That's all. I've an example here:</p>
<pre>
"2020-08-10": {
"frameworks": {
"resources/jquery/1.12.4/jquery.min.jsm": 5
},
"cdns": {
"ajax.googleapis.com": 5
}
}
</pre>
<p>The statistics contain no information about the browser, operating system, requesting website, IP addresses or any other information. Just date, CDN+counter and framework+counter. It shows you which frameworks are replaced by LocalCDNs how often and which CDNs were requested.</p>
<p><em>How do I know that's true?</em></p>
<p>The extension storage can be viewed directly with the Firefox browser. Open the URL "about:debugging", switch to "Storage" and select "Extension Storage". Under the key "internalStatisticsData" you will find the collected data. Just copy it and put it into a JSON PrettyPrinter to make it more readable. Please note that you have to remove the first and last quotation mark and the key to it. You should be able to see this clearly in <ahref="https://www.localcdn.org/view-extension-storage.mp4">this video</a>.</p>
<divclass="subtle-hint"><divclass="topic-label color-purple">What will be synchronized when I select "sync" as storage type?</div>
<p>Sync will only work if you are logged in with a Firefox account on the device and have allowed add-ons to sync in the settings. A separate sync server under your control will also work. This will synchronize most of the settings of LocalCDN across all devices.</p>
<p>If you don't have a sync account, nothing will be synchronized. In that case it makes no difference what type of storage you have selected.</p>
<p>Things that are never synchronized:</p>
<ul>
<li>Amount injected <em>(Numbers of injections)</em></li>
<li>Internal statistics <em>(Data)</em></li>
</ul>
<p>Settings that will be synchronized:</p>
<ul>
<li>Display injection counts on icon <em>(Yes, No)</em></li>
<li>Disable release notes <em>(Yes, No)</em></li>
<li>Disable link prefetching <em>(Yes, No)</em></li>
<li>Strip metadata from allowed requests <em>(Yes, No)</em></li>
<li>Internal statistics <em>(Yes, No)</em></li>
<li>Deactivate LocalCDN for these domains <em>(Yes, No, URLs)</em></li>
<li>Block requests for missing resources <em>(Yes, No)</em></li>
<li>Block Google Fonts <em>(Yes, No, URLs)</em></li>
<li>Enable logging in browser console <em>(Yes, No)</em></li>
<li>Apply HTML filter for these domains <em>(Yes, No, URLs)</em></li>
<li>Invert HTML filter <em>(Yes, No)</em></li>
<li>Choose an icon for this extension <em>(Default, Light, Blue/Grey)</em></li>