internet
Why does YouTube hide &quot;Ad displayed&quot; or &quot;Ad can be skipped messages&quot; under the header?
<p>Scrolling about one day I noticed some text beneath the header of the YouTube page:</p>

<p><a href="https://i.stack.imgur.com/bbIqn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bbIqn.png" alt="screenshot described"></a></p>

<p>When I release the scroll, the underlay of the page returns to normal and the text is hidden once more.</p>

<p>Are they legally required to do this, or is there some other reason for putting this text on the page? And, if it is required by law, how do they get away with hiding it as such?</p>

<p>There is probably no legal reason for this message.</p>

<p>These aren't the only two messages that can be displayed. If you look at the source, you see this:</p>

<pre><code>{'ADDTO_CREATE_NEW_PLAYLIST': "Create new 
playlist\n",'ADDTO_CREATE_PLAYLIST_DYNAMIC_TITLE': " 
$dynamic_title_placeholder (create new)\n",'ADDTO_WATCH_LATER': "Watch
Later",'ADDTO_WATCH_LATER_ADDED': "Added",'ADDTO_WATCH_LATER_ERROR':
"Error",'ADDTO_WATCH_QUEUE': "Watch Queue",'ADDTO_WATCH_QUEUE_ADDED':
"Added",'ADDTO_WATCH_QUEUE_ERROR': "Error",'ADDTO_TV_QUEUE':
"Queue",'ADS_INSTREAM_FIRST_PLAY': "A video ad is
playing.",'ADS_INSTREAM_SKIPPABLE': "Video ad can be
skipped.",'ADS_OVERLAY_IMPRESSION': "Ad displayed."
</code></pre>

<p>Looks to me like some messages to help with debugging.</p>
