1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
DanielnetoDotCom 2021-01-02 11:06:01 -03:00
parent ca1debca39
commit ce8b96a151

View file

@ -152,7 +152,7 @@ class ADs extends PluginAbstract {
static function giveGoogleATimeout($adCode){ static function giveGoogleATimeout($adCode){
if(preg_match("/adsbygoogle/i", $adCode)){ if(preg_match("/adsbygoogle/i", $adCode)){
$adCode = str_replace("(adsbygoogle = window.adsbygoogle || []).push({});", "clearTimeout(adsbygoogleTimeout); adsbygoogleTimeout = setTimeout(function () {(adsbygoogle = window.adsbygoogle || []).push({});},5000);", trim($adCode)); $adCode = str_replace("(adsbygoogle = window.adsbygoogle || []).push({});", "clearTimeout(adsbygoogleTimeout); adsbygoogleTimeout = setTimeout(function () {(adsbygoogle = window.adsbygoogle || []).push({});},5000);", trim($adCode));
$adCode = "<div style='min-width:300px;min-height:90px;'>{$adCode}</div>"; $adCode = "<div style='min-width:250px;min-height:90px;'>{$adCode}</div>";
} }
return $adCode; return $adCode;
} }