mirror of https://github.com/gorhill/uBlock.git
fine tuning popunder filtering: ignore is target URL was clicked by user
This commit is contained in:
parent
9fd4189ee7
commit
1d448b85b2
|
@ -606,8 +606,10 @@ vAPI.tabs.onPopupUpdated = (function() {
|
||||||
var popupType = 'popup';
|
var popupType = 'popup';
|
||||||
var result = popupMatch(openerURL, targetURL, µb.mouseURL, popupType);
|
var result = popupMatch(openerURL, targetURL, µb.mouseURL, popupType);
|
||||||
|
|
||||||
// Popunder test.
|
// Popunder test. Ignore if the target URL was opened by clicking on
|
||||||
if ( result === '' ) {
|
// a link, or else this could prevent opening a legitimate site for
|
||||||
|
// which there is a very broad popunder filter.
|
||||||
|
if ( result === '' && targetURL !== µb.mouseURL ) {
|
||||||
var tmp = openerTabId; openerTabId = targetTabId; targetTabId = tmp;
|
var tmp = openerTabId; openerTabId = targetTabId; targetTabId = tmp;
|
||||||
popupType = 'popunder';
|
popupType = 'popunder';
|
||||||
result = popupMatch(targetURL, openerURL, µb.mouseURL, popupType);
|
result = popupMatch(targetURL, openerURL, µb.mouseURL, popupType);
|
||||||
|
|
Loading…
Reference in New Issue