mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 01:02:08 +01:00
parent
0e8ff10e92
commit
12a9245164
1 changed files with 0 additions and 25 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue