<?php
$str = '<head><script src="//s.ytimg.com/yts/jsbin/scheduler-vflcamh30/scheduler.js" type="text/javascript" name="scheduler/scheduler"></script>
<link rel="stylesheet" href="//s.ytimg.com/yts/cssbin/www-core-2x-webp-vfl3iP9Qf.css" name="www-core">
<link rel="stylesheet" href="//s.ytimg.com/yts/cssbin/www-home-c4-2x-webp-vfl_GJYCY.css" name="www-home-c4">
<link rel="stylesheet" href="//s.ytimg.com/yts/cssbin/www-pageframe-2x-webp-vflE-hEYP.css" name="www-pageframe">
<link rel="stylesheet" href="//s.ytimg.com/yts/cssbin/www-guide-2x-webp-vflZfXyUk.css" name="www-guide">
<title>YouTube</title><link rel="search" type="application/opensearchdescription+xml" href="https://www.youtube.com/opensearch?locale=en_US" title="YouTube Video Search"><link rel="shortcut icon" href="https://s.ytimg.com/yts/img/favicon-vflz7uhzw.ico" type="image/x-icon"> <link rel="icon" href="//s.ytimg.com/yts/img/favicon_32-vfl8NGn4k.png" sizes="32x32"><link rel="icon" href="//s.ytimg.com/yts/img/favicon_48-vfl1s0rGh.png" sizes="48x48"><link rel="icon" href="//s.ytimg.com/yts/img/favicon_96-vfldSA3ca.png" sizes="96x96"><link rel="icon" href="//s.ytimg.com/yts/img/favicon_144-vflWmzoXw.png" sizes="144x144"><link rel="canonical" href="https://www.youtube.com/"><link rel="alternate" media="handheld" href="https://m.youtube.com/?"><link rel="alternate" media="only screen and (max-width: 640px)" href="https://m.youtube.com/?"><meta name="description" content="Share your videos with friends, family, and the world"><meta name="keywords" content="video, sharing, camera phone, video phone, free, upload"> <meta property="og:image" content="//s.ytimg.com/yts/img/yt_1200-vfl4C3T0K.png">
<meta property="fb:app_id" content="87741124305">
<link rel="publisher" href="https://plus.google.com/115229808208707341778">
<link rel="alternate" href="android-app://com.google.android.youtube/http/www.youtube.com/">
<link rel="alternate" href="ios-app://544007664/vnd.youtube/www.youtube.com/">
</head>';
$regx = '/(src|href|data[\-a-z]+)="([^"]*)"/i';
$out = preg_replace($regx,'https://s.ytimg.com',$str);
echo $out;
?>
- Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.34, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
- <head><script https://s.ytimg.com type="text/javascript" name="scheduler/scheduler"></script>
<link rel="stylesheet" https://s.ytimg.com name="www-core">
<link rel="stylesheet" https://s.ytimg.com name="www-home-c4">
<link rel="stylesheet" https://s.ytimg.com name="www-pageframe">
<link rel="stylesheet" https://s.ytimg.com name="www-guide">
<title>YouTube</title><link rel="search" type="application/opensearchdescription+xml" https://s.ytimg.com title="YouTube Video Search"><link rel="shortcut icon" https://s.ytimg.com type="image/x-icon"> <link rel="icon" https://s.ytimg.com sizes="32x32"><link rel="icon" https://s.ytimg.com sizes="48x48"><link rel="icon" https://s.ytimg.com sizes="96x96"><link rel="icon" https://s.ytimg.com sizes="144x144"><link rel="canonical" https://s.ytimg.com><link rel="alternate" media="handheld" https://s.ytimg.com><link rel="alternate" media="only screen and (max-width: 640px)" https://s.ytimg.com><meta name="description" content="Share your videos with friends, family, and the world"><meta name="keywords" content="video, sharing, camera phone, video phone, free, upload"> <meta property="og:image" content="//s.ytimg.com/yts/img/yt_1200-vfl4C3T0K.png">
<meta property="fb:app_id" content="87741124305">
<link rel="publisher" https://s.ytimg.com>
<link rel="alternate" https://s.ytimg.com>
<link rel="alternate" https://s.ytimg.com>
</head>
preferences:
233.72 ms | 407 KiB | 341 Q