Disabling YouTube’s “feature”
-
YouTube has introduced an idiotic new “feature” that results in adult-themed videos being hawked at the end of your embedded videos. (read more in the MU forums)
If you’re using the Viper Video Quicktags plugin, this is what you need to do to disable YouTube’s new feature. It took me a little effort to figure this out, so I’ll post it here for others.
Open
vipers-video-quicktags.php
(NOT.js
).Around line 662, make this hack. You can tell from my commenting what you need to do. The original lines are commented out, with my inserts following where appropriate.
if ( 'youtube' == $params['type'] ) { $url = $linktext = 'http://www.youtube.com/watch?v=' . $data['videoid'] . '&rel=0'; // adam's hack: deleted #$url = $linktext = 'http://www.youtube.com/watch?v=' . $data['videoid'] . '&rel=0'; // adam's hack: add &rel=0 #$this->jsoutput .= ' vvq_youtube("' . $objectid . '", "' . $data['width'] . '", "' . $data['height'] . '", "' . $data['videoid'] . '");' . "\n"; // adam's hack: deleted $this->jsoutput .= ' vvq_youtube("' . $objectid . '", "' . $data['width'] . '", "' . $data['height'] . '", "' . $data['videoid'] . '&rel=0");' . "\n"; // adam's hack: add &rel=0 } elseif ( 'googlevideo' == $params['type'] ) {
Good luck.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Disabling YouTube’s “feature”’ is closed to new replies.