2013-12-17 41 views
0

我想用下面的jquery編寫YouTube視頻,但在此視頻中添加了顯示內容。如何從YouTube視頻中刪除添加

   <object type="application/x-shockwave-flash" data="http://localhost/YoutubeChop/video/chop.swf" width="900" height="440"> 
       <param name="flashvars" value="vurl=lUcRiho-a7Q" /> 
       <param name="allowscriptaccess" value="always" /> 
       <!--<![endif]--> 
       <a href="http://www.adobe.com/go/getflashplayer"> 
        <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /> 
       </a> 
       <!--[if !IE]>--> 
      </object> 

enter image description here

有人建議我要除去你管的視頻添加。使用上面的代碼。

謝謝

回答

2
// ==UserScript== 
// @name   remove Youtube adds 
// @namespace  youtubetads 
// @version  1.1 
// @author   FDisk 
// @description Remove youtube ads from the right side of the screen and from the embeded video 
// @include  http://*.youtube.com/watch?* 
// @include  http://youtube.com/watch?* 
// @require  http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js 
// @require  http://jquery.lukelutman.com/plugins/flash/jquery.flash.js 
// @require  http://usocheckup.redirectme.net/74961.js 
// ==/UserScript== 

//Check for updates 

$('#homepage-sidebar-ads').remove(); 

$('#google_companion_ad_div, #watch-channel-brand-div, #watch-channel-brand-div').remove(); 
var video = 'https://www.youtube-nocookie.com/v/'+$('#watch-mfu-button').attr('data-video-id'); 
$('#watch-player').empty().flash(
    { 
     height: 1280, 
     width: 720, 
     src : video+'?version=1&amp;autoplay=0&amp;fs=1&amp;hd=1'   
    } 
); 

來源:http://userscripts.org/scripts/review/74961 否則插件查找瀏覽器插件Adblock的一樣+

0

嘗試增值的cookie(source

的document.cookie =「VISITOR_INFO1_LIVE = oKckVSqvaGw; path = /; domain = .youtube.com「;

現在有效,但行爲可以在將來更改

相關問題