[FacebookBridge] Remove videos and views
This commit adds filters to remove embedded videos and view counts from all posts. This doesn't remove the preview image for videos, which are embedded separately.
This commit is contained in:
parent
104ae2298e
commit
68ee24d6bd
1 changed files with 10 additions and 0 deletions
|
@ -577,6 +577,16 @@ EOD;
|
||||||
|
|
||||||
$content = $post->find('.userContentWrapper', 0);
|
$content = $post->find('.userContentWrapper', 0);
|
||||||
|
|
||||||
|
// Remove embedded videos (the preview image remains)
|
||||||
|
foreach($content->find('._5mly') as $video) {
|
||||||
|
$video->outertext = '';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Remove "Views ..."
|
||||||
|
foreach($content->find('._2ezg') as $subject) {
|
||||||
|
$subject->outertext = '';
|
||||||
|
}
|
||||||
|
|
||||||
// Remove origin information (i.e. "YOUTUBE.COM") from embedded media
|
// Remove origin information (i.e. "YOUTUBE.COM") from embedded media
|
||||||
foreach($content->find('._59tj') as $subject) {
|
foreach($content->find('._59tj') as $subject) {
|
||||||
$subject->outertext = '';
|
$subject->outertext = '';
|
||||||
|
|
Loading…
Reference in a new issue