GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   How to block popunders from embedded tube videos? (https://gfy.com/showthread.php?t=1269415)

jimstones22 06-28-2017 12:40 PM

How to block popunders from embedded tube videos?
 
Is there any way to embed videos from tube sites without getting intrusive popunders for your visitors to deal with when they click on a video. Anyone know of a way to block their popunders for site visitors by editing the embed code?

Are there any tube sites with no popunders anyone can recommend?

tomash999 06-28-2017 02:40 PM

You can try something like this:
1. Change the iframe to point to your server. If you load it via Javascript then do the next steps on the client side.
2. On your server add an endpoint for iframe. This URL will load the original iframe and inject Javascript.
3. In the injected code (for the iframe only), override the `window.open` function
Code:

window.open = function(strUrl, strWindowName, [strWindowFeatures]){
  // your custom code
}

// or just ignore all the popups in the iframe
window.open = null



All times are GMT -7. The time now is 03:17 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc