From 12a9245164372afcb97bb5c1cca9ff0d0d6c4001 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Wed, 31 Jan 2024 11:30:52 -0500 Subject: [PATCH] Remove outdated, unused scriptlet Related commit: https://github.com/uBlockOrigin/uAssets/commit/2b2e0fcb14d65ca0ceada69bb86e76fe21d9c54e --- assets/resources/scriptlets.js | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/assets/resources/scriptlets.js b/assets/resources/scriptlets.js index 7aae194c3..1e3d87d16 100644 --- a/assets/resources/scriptlets.js +++ b/assets/resources/scriptlets.js @@ -2892,31 +2892,6 @@ function noWebrtc() { /******************************************************************************/ -builtinScriptlets.push({ - name: 'golem.de.js', - fn: golemDe, -}); -// https://github.com/uBlockOrigin/uAssets/issues/88 -function golemDe() { - const rael = window.addEventListener; - window.addEventListener = function(a, b) { - rael(...arguments); - let haystack; - try { - haystack = b.toString(); - } catch(ex) { - } - if ( - typeof haystack === 'string' && - /^\s*function\s*\(\)\s*\{\s*window\.clearTimeout\(r\)\s*\}\s*$/.test(haystack) - ) { - b(); - } - }.bind(window); -} - -/******************************************************************************/ - builtinScriptlets.push({ name: 'disable-newtab-links.js', fn: disableNewtabLinks,