From 509f2212c636e787f1bc09afc79d2b0a59c34247 Mon Sep 17 00:00:00 2001 From: nobody Date: Mon, 23 May 2022 06:15:27 +0200 Subject: [PATCH] Plugins excluded (#999) --- README.md | 1 + core/request-analyzer.js | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/README.md b/README.md index 2c3ae96e..7b1aaf3e 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ LocalCDN is a fork of Decentraleyes and a web browser extension that emulates Co * AngularJS, AngularJS-Animate, AngularJS-Sanitize, AngularJS-Cookies and AngularJS-Touch * React, Vue.js, Chart.js and many other frameworks/libraries * MathJax (minimal) +* TinyMCE (without plugins) * Internal statistics about CDNs and frameworks (day, week, month, year) * Export/Import your config (day, week, month, year) * Prepared rules for uBlock Origin, uMatrix, AdGuard and NoScript diff --git a/core/request-analyzer.js b/core/request-analyzer.js index 54595c35..4d730ad1 100644 --- a/core/request-analyzer.js +++ b/core/request-analyzer.js @@ -258,6 +258,13 @@ requestAnalyzer._getPathOfBundle = function (initiator, channelHost, channelPath } if (bundle === 'TinyMCE (Bundle)' && filename !== 'tinymce.min.js') { filename = channelPath.replace(Resource.TINYMCE, ''); + if (filename.startsWith('plugins/')) { + console.warn(`${LogString.PREFIX} ${LogString.MISSING_RESOURCE} ${channelHost + channelPath}`); + log.append(initiator, channelHost + channelPath, '-', true); + return { + 'result': false, + }; + } } return helpers.formatFilename(filename.endsWith('.js') ? `${targetPath + filename}m`