AdBlock 有时无法阻止弹出窗口,因此使用 Greasemonkey 我想使用 jQuery 编写自己的弹出窗口阻止程序。
有没有办法可以拦截点击并检测它是否会打开一个弹出窗口?
$('.popupLauncher').each(function(){
if( /* $(this) will open a popup */ ){
return false;
}
});
我可以用什么代替/* $(this) will open a popup */
?