Fixed Moment.js (File extension and detection of resource name)

This commit is contained in:
nobody42 2020-03-24 08:11:03 +01:00
parent 447c6d2c97
commit 274351ed3c
No known key found for this signature in database
GPG Key ID: AB5145CF05BFE119
5 changed files with 11 additions and 1 deletions

View File

@ -85,7 +85,7 @@ var files = {
'resources/modernizr/2.8.3/modernizr.min.jsm': true,
// Moment.js
'resources/moment.js/2.24.0/moment.min.js': true,
'resources/moment.js/2.24.0/moment.min.jsm': true,
// MooTools
'resources/mootools/1.6.0/mootools-core.min.jsm': true,

View File

@ -76,6 +76,7 @@ var mappings = {
'jqueryui/{version}/jquery-ui.min.js': resources.jQueryUI,
'modernizr/{version}/modernizr.': resources.modernizr,
'moment.js/{version}/moment.': resources.moment,
'moment.js/{version}/moment.min.': resources.moment,
'mootools/{version}/mootools-core': resources.mootools,
'scriptaculous/{version}/scriptaculous.': resources.scriptaculous,
'swfobject/{version}/swfobject.': resources.swfobject,
@ -156,6 +157,7 @@ var mappings = {
'jquery.ui/{version}/jquery-ui.js': resources.jQueryUI,
'jquery.ui/{version}/jquery-ui.min.js': resources.jQueryUI,
'momentjs/{version}/moment.': resources.moment,
'momentjs/{version}/moment.min.': resources.moment,
'mootools/{version}/mootools-': resources.mootools,
'swfobject/{version}/swfobject.': resources.swfobject,
'underscorejs/{version}/underscore.': resources.underscore,
@ -176,6 +178,7 @@ var mappings = {
'jquery-ui/{version}/jquery-ui.min.js': resources.jQueryUI,
'modernizr/{version}/modernizr.': resources.modernizr,
'momentjs/{version}/moment.': resources.moment,
'momentjs/{version}/moment.min.': resources.moment,
'prototype/{version}/prototype.': resources.prototypeJS,
'scriptaculous/{version}/scriptaculous.': resources.scriptaculous,
'swfobject/{version}/swfobject.': resources.swfobject,
@ -196,6 +199,7 @@ var mappings = {
'jquery-ui/{version}/jquery-ui.min.js': resources.jQueryUI,
'modernizr/{version}/modernizr.': resources.modernizr,
'momentjs/{version}/moment.': resources.moment,
'momentjs/{version}/moment.min.': resources.moment,
'prototype/{version}/prototype.': resources.prototypeJS,
'scriptaculous/{version}/scriptaculous.': resources.scriptaculous,
'swfobject/{version}/swfobject.': resources.swfobject,
@ -216,6 +220,7 @@ var mappings = {
'jqueryui/{version}/jquery-ui.js': resources.jQueryUI,
'jqueryui/{version}/jquery-ui.min.js': resources.jQueryUI,
'moment/{version}/moment.': resources.moment,
'moment/{version}/moment.min.': resources.moment,
'mootools/{version}/mootools-yui-compressed.': resources.mootools,
'prototype/{version}/prototype.': resources.prototypeJS,
'scriptaculous/{version}/scriptaculous.': resources.scriptaculous,
@ -240,6 +245,7 @@ var mappings = {
'jqueryui/{version}/jquery-ui.js': resources.jQueryUI,
'jqueryui/{version}/jquery-ui.min.js': resources.jQueryUI,
'moment/{version}/moment.': resources.moment,
'moment/{version}/moment.min.': resources.moment,
'mootools/{version}/mootools-yui-compressed.': resources.mootools,
'prototype/{version}/prototype.': resources.prototypeJS,
'scriptaculous/{version}/scriptaculous.': resources.scriptaculous,
@ -412,6 +418,7 @@ var mappings = {
'jqueryui/{version}/jquery-ui.min.js': resources.jQueryUI,
'modernizr/{version}/modernizr.': resources.modernizr,
'moment.js/{version}/moment.': resources.moment,
'moment.js/{version}/moment.min.': resources.moment,
'mootools/{version}/mootools-yui-compressed.': resources.mootools,
'prototype/{version}/prototype.': resources.prototypeJS,
'scriptaculous/{version}/scriptaculous.': resources.scriptaculous,

View File

@ -222,6 +222,8 @@ helpers.determineResourceName = function (filename) {
return 'lozad.js';
case 'modernizr.min.jsm':
return 'Modernizr';
case 'moment.min.jsm':
return 'Modernizr';
case 'mootools-yui-compressed.jsm':
return 'MooTools';
case 'prototype.jsm':

View File

@ -26,6 +26,7 @@
<li>Added lozad v1.14.0</li>
<li>Added Findify v6.9.15</li>
<li>Added detection of framework-bundles (e.g. Findify)</li>
<li>Fixed Moment.js (File extension and detection of resource name)</li>
</ul>
<div class="topic-label">
Please update your uBlock/uMatrix rules