gtoolkit icon indicating copy to clipboard operation
gtoolkit copied to clipboard

YouTube snippet shows address bar

Open zeniko opened this issue 8 months ago • 0 comments

Originally reported as https://github.com/feenkcom/lepiter/issues/16:

The YouTube snippet shows the GtWebView address bar above the video.

Under Windows, this address bar contains a data: URL which is quite large (spanning several lines), taking away screen space. Under OS X, the address bar contains about:blank and clicking reload indeed blanks out the video.

As a work-around, I've added the following to my startup.st:

LeYoutubeReferenceElement compile:
	((LeYoutubeReferenceElement methodNamed: #updatePicture) sourceCode
		copyReplaceAll: '</iframe>'' ' with: '</iframe>''; removeChildAt: 1 ').

which hackily removes the address bar element, as I haven't found a more elegant way of hiding it through GtWebView's API.

Thanks for the fix.

zeniko avatar May 26 '25 14:05 zeniko