// ==UserScript== // @name AdGuard Popup Blocker // @name:ar AdGuard Popup Blocker // @name:cs Blok. vyskak. oken AdGuard // @name:da AdGuard Popup Blocker // @name:de AdGuard Pop-up-Blocker // @name:es Bloqueador de popup de AdGuard // @name:fa مسدودساز پاپ-آپ AdGuard // @name:fr Bloqueur de fenêtres pop-up de AdGuard // @name:id AdGuard Popup Blocker // @name:it Blocco Pop-Up di AdGuard // @name:ja AdGuard ポップアップブロッカー // @name:no AdGuards popup-blokkerer // @name:pl Bloker wyskakujących okienek przez AdGuard // @name:pt AdGuard Bloqueador de Pop-ups // @name:pt-PT AdGuard Popup Blocker // @name:ru Блокировщик всплывающей рекламы от AdGuard // @name:sl AdGuard Blokirnik pojavnih oken // @name:tr AdGuard Popup Blocker // @name:uk Блокувальник спливаючої реклами AdGuard // @name:zh AdGuard 弹窗拦截器 // @name:zh-TW AdGuard 彈出式視窗封鎖器 // @namespace AdGuard // @description Blocks popup ads on web pages // @description:ar لحظر الإعلانات المنبثقة على صفحات الويب // @description:cs Blokuje vyskakovací reklamy na webových stránkách // @description:da Blokerer pop-up reklamer på websider // @description:de Blockiert Anzeige-Pop-ups auf Webseiten // @description:es Bloquea elementos emergentes en sitios web // @description:fa مسدودسازی تبلیغات پاپ آپ در صفحات وب. // @description:fr Bloque les fenêtres pop-up avec publicités intrusives sur les pages web // @description:id Blokir iklan popup di halaman web // @description:it Blocca gli annunci di popup nelle pagine internet // @description:ja Webページでポップアップ広告をブロックします。 // @description:no Blokker popup-annonser på nettsider // @description:pl Blokuje wyskakujące okienka z reklamami na stronach internetowych // @description:pt Bloqueia anúncios pop-ups dentro dos sites // @description:pt-PT Bloqueia anúncios popup em páginas da web. // @description:ru Блокирует всплывающую рекламу на страницах // @description:sl Blokira pojavne oglase na spletnih straneh // @description:tr Web sayfalarında açılan pencere reklamları engeller // @description:uk Блокує спливаючу рекламу на веб-сторінках // @description:zh 拦截网页弹窗广告 // @description:zh-TW 封鎖於網頁上之彈出式視窗廣告 // @version 2.5.11 // @license LGPL-3.0; https://github.com/AdguardTeam/PopupBlocker/blob/master/LICENSE // @supportURL https://github.com/AdguardTeam/PopupBlocker/issues // @homepageURL https://popupblocker.adguard.com/ // @match http://*/* // @match https://*/* // @grant GM_getValue // @grant GM_setValue // @grant GM_listValues // @grant GM_getResourceURL // @grant unsafeWindow // @icon https://cdn.adguard.com/public/Userscripts/AdguardPopupBlocker/2.5/assets/128.png // @resource ./assets/fonts/bold/OpenSans-Bold.woff https://cdn.adguard.com/public/Userscripts/AdguardPopupBlocker/2.5/assets/fonts/bold/OpenSans-Bold.woff // @resource ./assets/fonts/bold/OpenSans-Bold.woff2 https://cdn.adguard.com/public/Userscripts/AdguardPopupBlocker/2.5/assets/fonts/bold/OpenSans-Bold.woff2 // @resource ./assets/fonts/regular/OpenSans-Regular.woff https://cdn.adguard.com/public/Userscripts/AdguardPopupBlocker/2.5/assets/fonts/regular/OpenSans-Regular.woff // @resource ./assets/fonts/regular/OpenSans-Regular.woff2 https://cdn.adguard.com/public/Userscripts/AdguardPopupBlocker/2.5/assets/fonts/regular/OpenSans-Regular.woff2 // @resource ./assets/fonts/semibold/OpenSans-Semibold.woff https://cdn.adguard.com/public/Userscripts/AdguardPopupBlocker/2.5/assets/fonts/semibold/OpenSans-Semibold.woff // @resource ./assets/fonts/semibold/OpenSans-Semibold.woff2 https://cdn.adguard.com/public/Userscripts/AdguardPopupBlocker/2.5/assets/fonts/semibold/OpenSans-Semibold.woff2 // @run-at document-start // @exclude https://www.linkedin.com/* // @exclude https://*.facebook.com/* // @exclude https://*.google.tld/* // @exclude https://*.youtube.com/* // @exclude *://disqus.com/embed/* // @exclude https://vk.com/* // @exclude https://*.vk.com/* // @exclude https://vimeo.com/* // @exclude https://*.vimeo.com/* // @exclude *://*.coub.com/* // @exclude *://coub.com/* // @exclude *://*.googlesyndication.com/* // @exclude *://*.naver.com/* // @exclude *://*.yandex.tld/* // @exclude https://*.twitch.tv/* // @exclude https://tinder.com/* // @exclude *://*.yahoo.com/* // @exclude *://chat.chatovod.ru/* // @exclude *://vc.ru/* // @exclude *://tjournal.ru/* // @exclude *://amanice.ru/* // @exclude *://ka-union.ru/* // @exclude *://*.ssgdfm.com/* // @exclude *://*.brainpop.com/* // @exclude *://*.taobao.com/* // ==/UserScript== var n,aa="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},ba;if("function"==typeof Object.setPrototypeOf)ba=Object.setPrototypeOf;else{var ca;a:{var da={na:!0},ea={};try{ea.__proto__=da;ca=ea.na;break a}catch(a){}ca=!1}ba=ca?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var fa=ba;var ha=Element.prototype.matches||Element.prototype.msMatchesSelector,ia="closest"in Element.prototype?function(a,b){return a.closest(b)}:function(a,b){for(;a;){if(ha.call(a,b))return a;a=a.parentElement}return null},ja=(Object.getOwnPropertyDescriptor(window,"frameElement")||Object.getOwnPropertyDescriptor(Window.prototype,"frameElement")).get,ka="attachShadow"in Element.prototype;var la=Object.prototype.toString;function p(a){return"undefined"===typeof a};var q=Object.defineProperty,r=Object.getOwnPropertyDescriptor,ma=Object.create,na=Object.keys,oa=Object.prototype.hasOwnProperty,pa=Function.prototype.apply,qa=Function.prototype.call,t=Function.prototype.bind,ra=Function.prototype.toString,sa=window.Proxy;if(sa)var ta=Reflect.apply; var ua=window.MutationObserver||window.WebKitMutationObserver,va=window.MessageChannel,wa=window.setTimeout.bind(window),xa=r(HTMLIFrameElement.prototype,"contentWindow").get,ya=r(HTMLIFrameElement.prototype,"contentDocument").get,za=r(MessageEvent.prototype,"source").get,Aa=Error.captureStackTrace; function vc(a,b){a.prototype=aa(b.prototype);a.prototype.constructor=a;if(fa)fa(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.wa=b.prototype} function wc(a,b){function c(){}c.prototype=b.prototype;a.wa=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.za=function(a,c,f){for(var d=Array(arguments.length-2),e=2;edocument.documentMode&&(a.src="javascript:document.write('