summaryrefslogtreecommitdiffstats
path: root/src/js/contentscript.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/js/contentscript.js31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/js/contentscript.js b/src/js/contentscript.js
index 8f3a4cf..95dbdb6 100644
--- a/src/js/contentscript.js
+++ b/src/js/contentscript.js
@@ -462,28 +462,6 @@ vAPI.SafeAnimationFrame = class {
/******************************************************************************/
/******************************************************************************/
-/******************************************************************************/
-
-vAPI.injectScriptlet = function(doc, text) {
- if ( !doc ) { return; }
- let script, url;
- try {
- const blob = new self.Blob([ text ], { type: 'text/javascript; charset=utf-8' });
- url = self.URL.createObjectURL(blob);
- script = doc.createElement('script');
- script.async = false;
- script.src = url;
- (doc.head || doc.documentElement || doc).appendChild(script);
- } catch (ex) {
- }
- if ( url ) {
- if ( script ) { script.remove(); }
- self.URL.revokeObjectURL(url);
- }
-};
-
-/******************************************************************************/
-/******************************************************************************/
/*******************************************************************************
The DOM filterer is the heart of uBO's cosmetic filtering.
@@ -1298,7 +1276,6 @@ vAPI.DOMFilterer = class {
const {
noSpecificCosmeticFiltering,
noGenericCosmeticFiltering,
- scriptletDetails,
} = response;
vAPI.noSpecificCosmeticFiltering = noSpecificCosmeticFiltering;
@@ -1320,14 +1297,6 @@ vAPI.DOMFilterer = class {
vAPI.userStylesheet.apply();
}
- if ( scriptletDetails && typeof self.uBO_scriptletsInjected !== 'string' ) {
- self.uBO_scriptletsInjected = scriptletDetails.filters;
- if ( scriptletDetails.mainWorld ) {
- vAPI.injectScriptlet(document, scriptletDetails.mainWorld);
- vAPI.injectedScripts = scriptletDetails.mainWorld;
- }
- }
-
if ( vAPI.domSurveyor ) {
if ( Array.isArray(cfeDetails.genericCosmeticHashes) ) {
vAPI.domSurveyor.addHashes(cfeDetails.genericCosmeticHashes);