mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2024-12-22 08:04:10 +01:00
Added "ajax.cloudflare.com" and "Rocket Loader"
This commit is contained in:
parent
b14e0ef9ba
commit
496398de46
@ -96,6 +96,9 @@ var files = {
|
||||
// page.js
|
||||
'resources/page.js/1.7.1/page.min.jsm': true,
|
||||
|
||||
// Cloudflare Rocket Loader
|
||||
'resources/rocket-loader/latest/rocket-loader.min.jsm': true,
|
||||
|
||||
// Scriptaculous
|
||||
'resources/scriptaculous/1.9.0/scriptaculous.jsm': true,
|
||||
|
||||
|
@ -445,9 +445,10 @@ var mappings = {
|
||||
},
|
||||
// MaxCDN Bootstrap
|
||||
'maxcdn.bootstrapcdn.com': {
|
||||
'/bootstrap/': {
|
||||
'{version}/js/bootstrap.min.': resources.bootstrapJS,
|
||||
'{version}/css/bootstrap.min.': resources.bootstrapCSS
|
||||
'/': {
|
||||
'bootstrap/{version}/js/bootstrap.min.': resources.bootstrapJS,
|
||||
'bootstrap/{version}/css/bootstrap.min.': resources.bootstrapCSS,
|
||||
'font-awesome/{version}/css/font-awesome.min.': resources.fontawesome4
|
||||
}
|
||||
},
|
||||
// NetDNA Bootstrap
|
||||
@ -462,8 +463,13 @@ var mappings = {
|
||||
'/releases/v': {
|
||||
'{version}/css/all.css': resources.fontawesome5
|
||||
}
|
||||
},
|
||||
// Cloudflare Rocket-Loader
|
||||
'ajax.cloudflare.com': {
|
||||
'/': {
|
||||
'cdn-cgi/scripts/7089c43e/cloudflare-static/rocket-loader.min.': resources.cfRocketLoader
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
// Geekzu Public Service [Mirror]
|
||||
|
@ -130,6 +130,11 @@ var resources = {
|
||||
'path': 'resources/prototype/{version}/prototype.jsm',
|
||||
'type': 'application/javascript'
|
||||
},
|
||||
// Cloudflare Rocket Loader
|
||||
'cfRocketLoader': {
|
||||
'path': 'resources/rocket-loader/latest/rocket-loader.min.jsm',
|
||||
'type': 'application/javascript'
|
||||
},
|
||||
// Scriptaculous
|
||||
'scriptaculous': {
|
||||
'path': 'resources/scriptaculous/{version}/scriptaculous.jsm',
|
||||
|
@ -183,6 +183,8 @@ helpers.determineCdnName = function (domainName) {
|
||||
return 'MaxCDN Bootstrap CDN';
|
||||
case 'use.fontawesome.com':
|
||||
return 'Font Awesome CDN';
|
||||
case 'ajax.cloudflare.com':
|
||||
return 'Cloudflare CDN';
|
||||
default:
|
||||
return 'Unknown';
|
||||
}
|
||||
@ -204,6 +206,12 @@ helpers.determineResourceName = function (filename) {
|
||||
return 'AngularJS Touch';
|
||||
case 'backbone-min.jsm':
|
||||
return 'Backbone.js';
|
||||
case 'bootstrap.min.cssm':
|
||||
return 'Bootstrap CSS';
|
||||
case 'bootstrap.min.jsm':
|
||||
return 'Bootstrap JS';
|
||||
case 'bootstrap-slider.min.cssm':
|
||||
return 'bootstrap-slider';
|
||||
case 'dojo.jsm':
|
||||
return 'Dojo';
|
||||
case 'ember.min.jsm':
|
||||
@ -230,6 +238,8 @@ helpers.determineResourceName = function (filename) {
|
||||
return 'page.js';
|
||||
case 'prototype.jsm':
|
||||
return 'Prototype';
|
||||
case 'rocket-loader.min.jsm':
|
||||
return 'Rocket Loader'
|
||||
case 'scriptaculous.jsm':
|
||||
return 'Scriptaculous';
|
||||
case 'swfobject.jsm':
|
||||
@ -240,12 +250,6 @@ helpers.determineResourceName = function (filename) {
|
||||
return 'Web Font Loader';
|
||||
case 'vue.jsm':
|
||||
return 'Vue.js';
|
||||
case 'bootstrap.min.cssm':
|
||||
return 'Bootstrap CSS';
|
||||
case 'bootstrap.min.jsm':
|
||||
return 'Bootstrap JS';
|
||||
case 'bootstrap-slider.min.cssm':
|
||||
return 'bootstrap-slider';
|
||||
default:
|
||||
return 'Unknown';
|
||||
}
|
||||
|
@ -289,13 +289,13 @@ popup._createInjectionElement = function (injection) {
|
||||
nameTextNode = document.createTextNode(`- ${name}`);
|
||||
injectionElement.appendChild(nameTextNode);
|
||||
|
||||
noteElement = document.createElement('span');
|
||||
noteElement.setAttribute('class', 'side-note');
|
||||
|
||||
noteTextNode = document.createTextNode(` v${injection.version}`);
|
||||
|
||||
noteElement.appendChild(noteTextNode);
|
||||
injectionElement.appendChild(noteElement);
|
||||
if (injection.version !== null) {
|
||||
noteElement = document.createElement('span');
|
||||
noteElement.setAttribute('class', 'side-note');
|
||||
noteTextNode = document.createTextNode(` v${injection.version}`);
|
||||
noteElement.appendChild(noteTextNode);
|
||||
injectionElement.appendChild(noteElement);
|
||||
}
|
||||
|
||||
return injectionElement;
|
||||
};
|
||||
|
@ -31,6 +31,7 @@
|
||||
<li>Fixed file extensions to prevent warnigns of Mozillas validation tests</li>
|
||||
<li>Added new endpoint for webfont</li>
|
||||
<li>Added new endpoint for bootstrap-slider</li>
|
||||
<li>Added "ajax.cloudflare.com" and "Rocket Loader" (<a href="https://gitlab.com/nobody42/localcdn/-/issues/24">"#24"</a>)</li>
|
||||
</ul>
|
||||
<div class="topic-label">
|
||||
Please update your uBlock/uMatrix rules
|
||||
|
1
resources/rocket-loader/latest/rocket-loader.min.jsm
Normal file
1
resources/rocket-loader/latest/rocket-loader.min.jsm
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user