Fixed file extensions to prevent warnings of Mozillas validation tests

This commit is contained in:
nobody42 2020-03-24 09:42:24 +01:00
parent 172dda4429
commit f45a67b083
No known key found for this signature in database
GPG Key ID: AB5145CF05BFE119
49 changed files with 27 additions and 26 deletions

View File

@ -34,15 +34,15 @@ var files = {
'resources/backbone.js/1.4.0/backbone-min.jsm': true,
// Bootstrap.js
'resources/bootstrap.js/3.3.7/bootstrap.min.js': true,
'resources/bootstrap.js/4.4.1/bootstrap.min.js': true,
'resources/bootstrap.js/3.3.7/bootstrap.min.jsm': true,
'resources/bootstrap.js/4.4.1/bootstrap.min.jsm': true,
// Bootstrap.css
'resources/bootstrap.css/3.3.7/bootstrap.min.css': true,
'resources/bootstrap.css/4.4.1/bootstrap.min.css': true,
'resources/bootstrap.css/3.3.7/bootstrap.min.cssm': true,
'resources/bootstrap.css/4.4.1/bootstrap.min.cssm': true,
// bootstrap-slider
'resources/bootstrap-slider/10.6.2/bootstrap-slider.min.css': true,
'resources/bootstrap-slider/10.6.2/bootstrap-slider.min.cssm': true,
// Dojo
'resources/dojo/1.14.1/dojo/dojo.jsm': true,
@ -56,18 +56,18 @@ var files = {
'resources/ext-core/3.1.0/ext-core.jsm': true,
// Finify bundle
'resources/findify-bundle/6.9.15/bundle.js': true,
'resources/findify-bundle/6.9.15/components.js': true,
'resources/findify-bundle/6.9.15/config.js': true,
'resources/findify-bundle/6.9.15/initializer.js': true,
'resources/findify-bundle/6.9.15/polyfill.js': true,
'resources/findify-bundle/6.9.15/vendors~components~initializer.js': true,
'resources/findify-bundle/6.9.15/vendors~initializer.js': true,
'resources/findify-bundle/6.9.15/vendors~sentry.js': true,
'resources/findify-bundle/6.9.15/bundle.jsm': true,
'resources/findify-bundle/6.9.15/components.jsm': true,
'resources/findify-bundle/6.9.15/config.jsm': true,
'resources/findify-bundle/6.9.15/initializer.jsm': true,
'resources/findify-bundle/6.9.15/polyfill.jsm': true,
'resources/findify-bundle/6.9.15/vendors~components~initializer.jsm': true,
'resources/findify-bundle/6.9.15/vendors~initializer.jsm': true,
'resources/findify-bundle/6.9.15/vendors~sentry.jsm': true,
// Font Awesome
'resources/fontawesome/4.7.0/css/font-awesome.min.css': true,
'resources/fontawesome/5.7.2/css/all.css': true,
'resources/fontawesome/4.7.0/css/font-awesome.min.cssm': true,
'resources/fontawesome/5.7.2/css/all.cssm': true,
// jQuery
'resources/jquery/1.8.3/jquery.min.jsm': true,

View File

@ -126,7 +126,7 @@ requestAnalyzer._findLocalTarget = function (resourceMappings, basePath, channel
bundle = helpers.determineBundle(channelPath);
if(bundle !== '') {
filename = channelPath.split('/').pop();
targetPath = targetPath + filename;
targetPath = targetPath + filename + 'm';
}
// Prepare and return a local target.

View File

@ -47,17 +47,17 @@ var resources = {
},
// Bootstrap.js
'bootstrapJS': {
'path': 'resources/bootstrap.js/{version}/bootstrap.min.js',
'path': 'resources/bootstrap.js/{version}/bootstrap.min.jsm',
'type': 'application/javascript'
},
// Bootstrap.css
'bootstrapCSS': {
'path': 'resources/bootstrap.css/{version}/bootstrap.min.css',
'path': 'resources/bootstrap.css/{version}/bootstrap.min.cssm',
'type': 'text/css'
},
// bootstrap-slider (Slider for Bootstrap 3)
'bootstrapSlider': {
'path': 'resources/bootstrap-slider/{version}/bootstrap-slider.min.css',
'path': 'resources/bootstrap-slider/{version}/bootstrap-slider.min.cssm',
'type': 'text/css'
},
// Dojo
@ -82,12 +82,12 @@ var resources = {
},
// Font Awesome
'fontawesome4': {
'path': 'resources/fontawesome/{version}/css/font-awesome.min.css',
'path': 'resources/fontawesome/{version}/css/font-awesome.min.cssm',
'type': 'text/css'
},
// Font Awesome
'fontawesome5': {
'path': 'resources/fontawesome/{version}/css/all.css',
'path': 'resources/fontawesome/{version}/css/all.cssm',
'type': 'text/css'
},
// jQuery

View File

@ -210,9 +210,9 @@ helpers.determineResourceName = function (filename) {
return 'Ember.js';
case 'ext-core.jsm':
return 'Ext Core';
case 'font-awesome.min.css':
case 'font-awesome.min.cssm':
return 'Font Awesome';
case 'all.css':
case 'all.cssm':
return 'Font Awesome';
case 'jquery.min.jsm':
return 'jQuery';
@ -240,11 +240,11 @@ helpers.determineResourceName = function (filename) {
return 'Web Font Loader';
case 'vue.jsm':
return 'Vue.js';
case 'bootstrap.min.css':
case 'bootstrap.min.cssm':
return 'Bootstrap CSS';
case 'bootstrap.min.js':
case 'bootstrap.min.jsm':
return 'Bootstrap JS';
case 'bootstrap-slider.min.css':
case 'bootstrap-slider.min.cssm':
return 'bootstrap-slider';
default:
return 'Unknown';

View File

@ -28,6 +28,7 @@
<li>Added detection of framework-bundles (e.g. Findify)</li>
<li>Fixed Moment.js (File extension and detection of resource name)</li>
<li>Added Vue.js v1.0.28 and page.js v1.7.1</li>
<li>Fixed file extensions to prevent warnigns of Mozillas validation tests</li>
</ul>
<div class="topic-label">
Please update your uBlock/uMatrix rules