1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-05 11:37:01 +02:00

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,