Remove outdated, unused scriptlet

Related commit:
2b2e0fcb14
This commit is contained in:
Raymond Hill 2024-01-31 11:30:52 -05:00
parent 0e8ff10e92
commit 12a9245164
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -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,