Git Product home page Git Product logo

twitter-danmu's Introduction

twitter-danmu

Play youtube with damu using realtime twitter search results

HOWTO

  • Add the following bookmarklet in your browser
  • Copy the Youtube Video Id that you want to play (Live video is also supported)
  • Search live tweets using keywords or hashtag on Twitter
  • Click the bookmarklet and paste Video Id in prompt

Bookmarklet

javascript:$('body').css('overflow-x', 'hidden');var videoId = prompt("Please enter the YouTube Id", "FpkDL3G7AoY");$('#page-container h1').html('<iframe height="'+(innerHeight-$('.global-nav-inner').innerHeight())+'" width="'+$('#page-container h1').innerWidth()+'" data-src="https://www.youtube.com/embed/'+videoId+'" frameborder="0" scrolling="no" allowtransparency="true" src="https://www.youtube.com/embed/'+videoId+'?autoplay=1&amp;auto_play=true"></iframe><ul><li class="popup" style="position:absolute; top:50px; text-align: left;"></li><li class="popup" style="position:absolute; top:75px; text-align: left;"></li><li class="popup" style="position:absolute; top:100px; text-align: left;"></li></li><li class="popup" style="position:absolute; top:125px; text-align: left;"></li></li><li class="popup" style="position:absolute; top:150px; text-align: left;"></li></li><li class="popup" style="position:absolute; top:175px; text-align: left;"></li></li><li class="popup" style="position:absolute; top:200px; text-align: left;"></li></ul>');setInterval(function(){$('.new-tweets-bar').click();$('.popup:empty').first().each(function(idx, el){tweet = $('.js-stream-item').first();$(el).animate({left: innerWidth}, 0).html($(tweet).find('.tweet-text').text());$(el).animate({left: -$(el).innerWidth()}, ($(el).innerWidth()+innerWidth)*(10*Math.random()+3), 'linear',function(){$(el).html('')});tweet.remove();});}, 1000);

SCREEN SHOT

SCREEN SHOT

WHAT IS DANMU

Google danmu

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.