no title [bookmarklet]

    
      
  • // ==UserScript==
    // @name           YouTubeのビデオIDをローカルサーバーに送る
    // @namespace      youtube-videoid
    // @include        http://www.youtube.com/*
    // @require        http://stevenlevithan.com/demo/parseuri/js/assets/parseuri.js
    // ==/UserScript==
    
    var videoId = parseUri(location.href).queryKey.v;
    var img = document.createElement('img');
    img.setAttribute('src', 'http://localhost:5000?video_id=' + videoId);
    document.body.appendChild('img');
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2012/03/06 16:02:25 - 2012-03-06
  2. 2012/03/06 15:59:22 - 2012-03-06