![]() ![]() Open a new popup tab when document's "base" element set to target="_blank" Open a new popup window by adding target="_blank" attribute to a link Open a popup using reference to the original window on DOM creation (immediate access with contentDocument) Open a popup using reference to the original window on DOM creation (immediate access with contentWindow) Open a popup using reference to the original window on DOM creation (document.write) Open a popup using reference to the original window on DOM creation (replaceChild) Open a popup using reference to the original window on DOM creation (innerHTML) Open a popup using reference to the original window on DOM creation (insertAdjacentHTML) Open a popup using reference to the original window on DOM creation (insertAdjacentElement) Open a popup using reference to the original window on DOM creation (insertBefore) Open a popup using reference to the original window on DOM creation (appendChild) Open a popup using reference to the original window on DOM creation (before) Open a popup using reference to the original window on DOM creation (after) Open a popup using reference to the original window on DOM creation (append) Open a popup using reference to the original window on DOM creation (prepend) Open a new popup window and pass several arguments to it Same as test #2.1 test, but uses a pre-defined pointer for window.open(.) to prevent dynamic object overwrites Open a new popup tab using window.open(.) method Open a new about:blank popup window and control the document body from parent's context (simple example) ![]() Open a new about:blank popup window and control the document body from parent's context (complex example) Unit test for dev build is here.Test the effectiveness of your popup blocker plugin. Development buildĭevelopment builds have logging enabled and overrides significantly more browser apis to introspect behavior of popup/popunder script. You can help us with translating Popup Blocker into other languages! Our project on Crowdin is open for public contributions. To report a bug, go to this page and create a new issue. You can manage a list of allowlisted domains and silenced domain on a dedicated options page: Make sure one of them is installed in your browser to be able to use the Popup Blocker (just enter the script URL into the address bar, it will be automatically detected by the manager). On the other hand, Popup Blocker is an independent project, you can use it with any other userscript manager like Greasemonkey, Tampermonkey or Violentmonkey. This way you can use it in literally any browser. If you are an AdGuard user, go to Settings – Extensions – Add Extension and enter the desired Popup Blocker. Popup Blocker is being developed by the same team that develops AdGuard, and AdGuard for Windows can serve as a userscript manager. This prevents any possible circumvention of Popup Blocker. Other scripts on the page can not detect that Popup Blocker is being used, other than by actually trying to open a pop-up. Self-explanatory but important: if a click would cause a pop-up to show, not only the pop-up is blocked, but also the initial click is processed as it would be without the pop-up. That allows to block pop-ups even on websites that try to bypass regular ad blockers by using WebRTC or varying the ad servers. This way, these APIs can only be called when caused by a manual input, and not by pop-up/pop-under scripts. Instead, it adds an additional layer on top of browser's native APIs that are used to create pop-ups. Popup Blocker doesn't apply the filtering rules approach to pop-up detection. Exceptions are some of the oldest browsers that do not support the API we use, the script may not be fully functional there. Works in Chrome, Firefox, Edge, Safari, IE10+ etc, basically in any browser that supports userscript managers. Popup Blocker by AdGuard is a userscript that blocks all unwanted pop-up windows in different browsers. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |