diff --git a/src/js/firstparties/google.js b/src/js/firstparties/google.js index 3863d296c5..4013b8f98b 100644 --- a/src/js/firstparties/google.js +++ b/src/js/firstparties/google.js @@ -1,5 +1,4 @@ /* globals findInAllFrames:false */ -(function() { let wrapped_link = "a[onmousedown^='return rwt(this,'], a[ping]"; // Remove excessive attributes and event listeners from link a @@ -11,7 +10,7 @@ function cleanLink(a) { a.removeAttribute(attr.name); } } - a.rel = "noreferrer"; + a.rel = "noreferrer noopener"; // block event listeners on the link a.addEventListener("click", function (e) { e.stopImmediatePropagation(); }, true); @@ -23,4 +22,3 @@ function cleanLink(a) { findInAllFrames(wrapped_link).forEach((link) => { cleanLink(link); }); -}()); diff --git a/src/js/firstparties/hangouts.js b/src/js/firstparties/hangouts.js index a1ed4e5529..f3d32b1ec2 100644 --- a/src/js/firstparties/hangouts.js +++ b/src/js/firstparties/hangouts.js @@ -1,5 +1,4 @@ /* globals URL_REGEX:false */ -(function() { let hangouts_wrapped_link = "a[href^='https://www.google.com/url?']"; // Unwrap a Hangouts tracking link @@ -29,4 +28,3 @@ function unwrapAll() { } setInterval(unwrapAll, 2000); -}());