possible window.open conflict with popup blocker add-on
Posted: Tue Nov 22, 2016 1:19 pm
I am working on a popup blocker extension for Chrome browser. To block all popups, the extension overwrites the unprotected window.open on document_start using:
When AdBlock Plus is installed, web pages can bypass the popup blocker although the is still overwritten.
Example: First click on when browser window is cleared.
Any idea how to prevent this?
Code: Select all
Object.defineProperty(window, 'open', {
writable: false,
configurable: false,
value: function () {
}
);
Code: Select all
window.open
Example: First click on
Code: Select all
http://vidtodo.com/03pbhekfsihm
Any idea how to prevent this?