mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2024-12-22 16:12:13 +01:00
Prepared v2.4.1
This commit is contained in:
parent
6dc5d75372
commit
66e4e8dd6f
11
core/main.js
11
core/main.js
@ -81,13 +81,10 @@ main._showReleaseNotes = function (details) {
|
||||
[Setting.LAST_MAPPING_UPDATE]: lastMappingUpdate
|
||||
}, function() {
|
||||
if (!items.hideReleaseNotes) {
|
||||
// ********************************************************************************
|
||||
// TODO: Change me in v2.4.1
|
||||
// chrome.tabs.create({
|
||||
// 'url': chrome.extension.getURL('pages/updates/updates.html?mappingupdate=' + mappingUpdate),
|
||||
// 'active': false
|
||||
// });
|
||||
// ********************************************************************************
|
||||
chrome.tabs.create({
|
||||
'url': chrome.extension.getURL('pages/updates/updates.html?mappingupdate=' + mappingUpdate),
|
||||
'active': false
|
||||
});
|
||||
}
|
||||
});
|
||||
} else {
|
||||
|
@ -1,25 +0,0 @@
|
||||
// ********************************************************************************
|
||||
// TODO: Remove me in v2.4.1
|
||||
chrome.runtime.onInstalled.addListener(function(details) {
|
||||
if (details.reason === chrome.runtime.OnInstalledReason.UPDATE) {
|
||||
chrome.storage.sync.get(null, function(items) {
|
||||
// Workaround for https://codeberg.org/nobody/LocalCDN/issues/102
|
||||
setTimeout(function() {
|
||||
chrome.storage.local.set(items, function() {
|
||||
chrome.runtime.reload();
|
||||
});
|
||||
}, 5000);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
chrome.storage.local.get('extensionReloaded', function(items) {
|
||||
if (!('extensionReloaded' in items)) {
|
||||
chrome.tabs.create({
|
||||
'url': chrome.extension.getURL('pages/updates/updates.html?mappingupdate=true'),
|
||||
'active': false
|
||||
});
|
||||
chrome.storage.local.set({'extensionReloaded': true});
|
||||
}
|
||||
});
|
||||
// ********************************************************************************
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"manifest_version": 2,
|
||||
"name": "LocalCDN",
|
||||
"version": "2.4.0",
|
||||
"version": "2.4.1",
|
||||
"browser_specific_settings": {
|
||||
"gecko": {
|
||||
"id": "{b86e4813-687a-43e6-ab65-0bde4ab75758}",
|
||||
|
@ -5,12 +5,6 @@
|
||||
<meta charset="utf-8" />
|
||||
</head>
|
||||
<body>
|
||||
<!-- ********************************************************************************
|
||||
TODO: Remove me in v2.4.1
|
||||
-->
|
||||
<script src="../../core/migrate.js"></script>
|
||||
<!-- ******************************************************************************** -->
|
||||
|
||||
<script src="../../core/constants.js"></script>
|
||||
<script src="../../core/storage-manager.js"></script>
|
||||
|
||||
|
@ -18,17 +18,6 @@
|
||||
<body>
|
||||
<img src="../images/logo.svg" alt="Decentraleyes" class="logo"/>
|
||||
<div class="container">
|
||||
<!-- ********************************************************************************
|
||||
TODO: Remove me in v2.4.1
|
||||
-->
|
||||
<div class="notice subtle-hint important">
|
||||
<h1 style="font-weight: bold;">Please notice</h1>
|
||||
<p><strong>1.) Do you use Firefox/Chromium Sync or your own sync server?</strong></p>
|
||||
<p>In LocalCDN v2.4.0 the default storage type has been changed from <em>sync</em> to <em>local</em>. If you want to change this, you can do this in the settings. Please recognize that not all data are synced. More information can be found in the <a href="../help/help.html#sync">FAQs</a></p>
|
||||
<p><strong>2.) Extension settings</strong></p>
|
||||
<p>Your extension settings should be automatically transferred from <em>sync</em> to <em>local</em>, but in some cases the migration may fail. If you want, you can <input type="button" id="export" value="export"/> your extension settings to a file and import them on the options page.</p>
|
||||
</div>
|
||||
<!-- ******************************************************************************** -->
|
||||
<h1>Release notes</h1>
|
||||
<div class="notice">
|
||||
<div class="subtle-hint">
|
||||
@ -36,30 +25,7 @@
|
||||
New in LocalCDN:
|
||||
</div>
|
||||
<ul>
|
||||
<li>Added CDN: gitcdn.github.io (<a href="https://codeberg.org/nobody/LocalCDN/issues/90">#90</a>)</li>
|
||||
<li>Added: Bootstrap Toggle v2.2.2 (<a href="https://codeberg.org/nobody/LocalCDN/issues/90">#90</a>)</li>
|
||||
<li>Implemented: Open options in new tab (<a href="https://codeberg.org/nobody/LocalCDN/issues/91">#91</a>)</li>
|
||||
<li>Implemented: Storage handler (<a href="https://codeberg.org/nobody/LocalCDN/issues/92">#92</a>)</li>
|
||||
<li>Updated: Options page (<a href="https://codeberg.org/nobody/LocalCDN/issues/93">#93</a>)</li>
|
||||
<li>Updated: Google Material Icons (<a href="https://codeberg.org/nobody/LocalCDN/issues/94">#94</a>)</li>
|
||||
<li>Added: P2P Media Loader Hls.js (v0.6.2) (<a href="https://codeberg.org/nobody/LocalCDN/issues/95">#95</a>)</li>
|
||||
<li>Fixed: Rocket Loader (<a href="https://codeberg.org/nobody/LocalCDN/issues/99">#99</a>)</li>
|
||||
<li>Added: videojs-seek-buttons v1.6.0 (<a href="https://codeberg.org/nobody/LocalCDN/issues/99">#99</a>)</li>
|
||||
<li>Added: baguetteBox.js v1.11.1 (<a href="https://codeberg.org/nobody/LocalCDN/issues/100">#100</a>)</li>
|
||||
<li>Added: jQuery Easing Plugin v1.4.1 (<a href="https://codeberg.org/nobody/LocalCDN/issues/101">#101</a>)</li>
|
||||
<li>Updated: popper.js v2.4.4 (<a href="https://codeberg.org/nobody/LocalCDN/issues/103">#103</a>)</li>
|
||||
<li>Added: AnchorJS v3.2.2 & v4.2.2 (<a href="https://codeberg.org/nobody/LocalCDN/issues/104">#104</a>)</li>
|
||||
<li>Fixed: Import user settings (<a href="https://codeberg.org/nobody/LocalCDN/issues/102">#102</a>)</li>
|
||||
<li>Implemented: Rules for AdGuard (<a href="https://codeberg.org/nobody/LocalCDN/issues/105">#105</a>)</li>
|
||||
<li>Updated: AngularJS v1.3.15 -> v1.3.20 (<a href="https://codeberg.org/nobody/LocalCDN/issues/107">#107</a>)</li>
|
||||
<li>Added: AngularJS Translate v2.7.2 (<a href="https://codeberg.org/nobody/LocalCDN/issues/107">#107</a>)</li>
|
||||
<li>Added: Lodash v3.10.1 (<a href="https://codeberg.org/nobody/LocalCDN/issues/107">#107</a>)</li>
|
||||
<li>Updated: Angular Material v0.x -> v1.1.21 (<a href="https://codeberg.org/nobody/LocalCDN/issues/107">#107</a>)</li>
|
||||
<li>Added: Angular Material in cdnjs.cloudflare.com (<a href="https://codeberg.org/nobody/LocalCDN/issues/107">#107</a>)</li>
|
||||
<li>Fixed: File name conversion (FontAwesomeJS, SwiperJS)</li>
|
||||
<li>Added: Slick in cdn.jsdelivr.net (<a href="https://codeberg.org/nobody/LocalCDN/issues/108">#108</a>)</li>
|
||||
<li>Added: Slick Lightbox v0.2.12 (<a href="https://codeberg.org/nobody/LocalCDN/issues/108">#108</a>)</li>
|
||||
<li>Updated: Waypoints v4.0.0 -> v4.0.1 (and used the whole package) (<a href="https://codeberg.org/nobody/LocalCDN/issues/108">#108</a>)</li>
|
||||
<li></li>
|
||||
</ul>
|
||||
<div id="generator-section">
|
||||
<div class="topic-label">
|
||||
@ -91,6 +57,33 @@
|
||||
</div>
|
||||
<div id="history"><span id="history-indicator">+</span> Previous Versions</div>
|
||||
<div id="history-release-notes" style="display: none;">
|
||||
<p class='release-date'>2020-09-19 (v2.4.0)</p>
|
||||
<ul>
|
||||
<li>Added CDN: gitcdn.github.io (<a href="https://codeberg.org/nobody/LocalCDN/issues/90">#90</a>)</li>
|
||||
<li>Added: Bootstrap Toggle v2.2.2 (<a href="https://codeberg.org/nobody/LocalCDN/issues/90">#90</a>)</li>
|
||||
<li>Implemented: Open options in new tab (<a href="https://codeberg.org/nobody/LocalCDN/issues/91">#91</a>)</li>
|
||||
<li>Implemented: Storage handler (<a href="https://codeberg.org/nobody/LocalCDN/issues/92">#92</a>)</li>
|
||||
<li>Updated: Options page (<a href="https://codeberg.org/nobody/LocalCDN/issues/93">#93</a>)</li>
|
||||
<li>Updated: Google Material Icons (<a href="https://codeberg.org/nobody/LocalCDN/issues/94">#94</a>)</li>
|
||||
<li>Added: P2P Media Loader Hls.js (v0.6.2) (<a href="https://codeberg.org/nobody/LocalCDN/issues/95">#95</a>)</li>
|
||||
<li>Fixed: Rocket Loader (<a href="https://codeberg.org/nobody/LocalCDN/issues/99">#99</a>)</li>
|
||||
<li>Added: videojs-seek-buttons v1.6.0 (<a href="https://codeberg.org/nobody/LocalCDN/issues/99">#99</a>)</li>
|
||||
<li>Added: baguetteBox.js v1.11.1 (<a href="https://codeberg.org/nobody/LocalCDN/issues/100">#100</a>)</li>
|
||||
<li>Added: jQuery Easing Plugin v1.4.1 (<a href="https://codeberg.org/nobody/LocalCDN/issues/101">#101</a>)</li>
|
||||
<li>Updated: popper.js v2.4.4 (<a href="https://codeberg.org/nobody/LocalCDN/issues/103">#103</a>)</li>
|
||||
<li>Added: AnchorJS v3.2.2 & v4.2.2 (<a href="https://codeberg.org/nobody/LocalCDN/issues/104">#104</a>)</li>
|
||||
<li>Fixed: Import user settings (<a href="https://codeberg.org/nobody/LocalCDN/issues/102">#102</a>)</li>
|
||||
<li>Implemented: Rules for AdGuard (<a href="https://codeberg.org/nobody/LocalCDN/issues/105">#105</a>)</li>
|
||||
<li>Updated: AngularJS v1.3.15 -> v1.3.20 (<a href="https://codeberg.org/nobody/LocalCDN/issues/107">#107</a>)</li>
|
||||
<li>Added: AngularJS Translate v2.7.2 (<a href="https://codeberg.org/nobody/LocalCDN/issues/107">#107</a>)</li>
|
||||
<li>Added: Lodash v3.10.1 (<a href="https://codeberg.org/nobody/LocalCDN/issues/107">#107</a>)</li>
|
||||
<li>Updated: Angular Material v0.x -> v1.1.21 (<a href="https://codeberg.org/nobody/LocalCDN/issues/107">#107</a>)</li>
|
||||
<li>Added: Angular Material in cdnjs.cloudflare.com (<a href="https://codeberg.org/nobody/LocalCDN/issues/107">#107</a>)</li>
|
||||
<li>Fixed: File name conversion (FontAwesomeJS, SwiperJS)</li>
|
||||
<li>Added: Slick in cdn.jsdelivr.net (<a href="https://codeberg.org/nobody/LocalCDN/issues/108">#108</a>)</li>
|
||||
<li>Added: Slick Lightbox v0.2.12 (<a href="https://codeberg.org/nobody/LocalCDN/issues/108">#108</a>)</li>
|
||||
<li>Updated: Waypoints v4.0.0 -> v4.0.1 (and used the whole package) (<a href="https://codeberg.org/nobody/LocalCDN/issues/108">#108</a>)</li>
|
||||
</ul>
|
||||
<p class='release-date'>2020-08-23 (v2.3.1)</p>
|
||||
<ul>
|
||||
<li>Fixed: Blocked Google Fonts in Chromium (<a href="https://codeberg.org/nobody/LocalCDN/issues/80">#80</a>)</li>
|
||||
|
@ -39,13 +39,9 @@ updates._openHistoryReleaseNotes = function () {
|
||||
};
|
||||
|
||||
updates._onDocumentLoaded = function () {
|
||||
// ********************************************************************************
|
||||
// TODO: Remove me in v2.4.1
|
||||
document.getElementById('export').addEventListener('click', updates._export);
|
||||
// ********************************************************************************
|
||||
|
||||
document.getElementById('generate-ublock-rules').checked = false;
|
||||
document.getElementById('generate-umatrix-rules').checked = false;
|
||||
document.getElementById('generate-adguard-rules').checked = false;
|
||||
|
||||
let updateElements = {
|
||||
['ruleSets']: document.getElementsByName('rule-sets'),
|
||||
@ -66,21 +62,5 @@ updates._onDocumentLoaded = function () {
|
||||
document.getElementById('generator-section').style.display = 'block';
|
||||
}
|
||||
};
|
||||
// ********************************************************************************
|
||||
// TODO: Remove me in v2.4.1
|
||||
updates._export = function () {
|
||||
let filename = new Date().toISOString();
|
||||
filename = filename.substring(0, 10) + '_localcdn_backup.txt';
|
||||
|
||||
chrome.storage.sync.get(null, function (items) {
|
||||
let element = document.createElement('a');
|
||||
element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(JSON.stringify(items, null, ' ')));
|
||||
element.setAttribute('download', filename);
|
||||
element.style.display = 'none';
|
||||
document.body.appendChild(element);
|
||||
element.click();
|
||||
document.body.removeChild(element);
|
||||
});
|
||||
};
|
||||
// ********************************************************************************
|
||||
document.addEventListener('DOMContentLoaded', updates._onDocumentLoaded);
|
||||
|
Loading…
Reference in New Issue
Block a user