Adds a link to download video for VReel

By charmy Last update Nov 12, 2009 — Installed 752 times. Daily Installs: 1, 3, 2, 10, 6, 3, 3, 1, 1, 6, 8, 4, 0, 2, 2, 1, 2, 0, 5, 0, 4, 3, 5, 5, 2, 3, 1, 4, 0, 4, 0, 2
Script Summary:
Adds a link to download videos and some video information. You can watch a video in list pages. ダウンロード用のリンクとビデオ情報を追加します。リストページでビデオを見ることができます。
Version: 1.10.3
Recently Updated TopicsPosts
Changelog24

this script has 1 topic, 24 posts

This script has no reviews.

Thumb Thumb Thumb Thumb Thumb Thumb Thumb Thumb Thumb Thumb Thumb Thumb Thumb Thumb Thumb

Version 1.10.3

Fixed the bug about parsing of the script page for update cheker.

アップデートチェッカーのページ解析部分のバグを修正しました。



1. List pages

You can add download links and video informations like publisher,file size, resolution and views below the video title.
You can set up these informations. See 4-1. Set up this script
Also includes a video list in watch pages.

ダウンロード用のリンクや、登録者、ファイルサイズ、ビデオ画像サイズ、視聴数、登録日のようなビデオ情報をリストページに追加できます。
また、これらの情報は設定することができます。設定は4-1. Set up this scriptを参照してください。
また、視聴ページ内のビデオリストも含みます。

  • (1) Channel page
    You can add download link,publisher name with link,video length,resolution,views and added date.

    ダウンロード用のリンクや、登録者、ビデオの長さ(時間)、ビデオ画像サイズ、視聴数、登録日の表示を追加できます。



  • (2) Profile page
    You can see download link,video length, resolution, views and added date.

    ダウンロード用のリンクや、ビデオの長さ(時間)、ビデオ画像サイズ、視聴数、登録日の表示を追加できます。



  • (3) Community group page
    You can see download link,publisher name with link, resolution, views and added date.

    ダウンロード用のリンクや、登録者、ファイルサイズ、ビデオ画像サイズ、視聴数、登録日の表示を追加できます。



  • (4) Search results page
    You can see download link,video length and resolution

    ダウンロード用のリンクや、ビデオの長さ(時間)、ビデオ画像サイズの表示を追加できます。



  • (5) Top page
    You can add download link,publisher name with link,video length,resolution,views and added date.

    ダウンロード用のリンクや、登録者、ビデオの長さ(時間)、ビデオ画像サイズ、視聴数、登録日の表示を追加できます。






2. Video panel.

Click the 'Watch video' button added below the video informations if you want to watch a video in list pages.
The video panel will be displayed.
You can set up this function. See 4-1. Set up this script

リスト画面でビデオを見たい場合、ビデオ情報の下に追加される'Watch video'ボタンをクリックしてください。
ビデオパネルが現れます。
この機能の設定をする場合は、4-1. Set up this scriptを参照してください。

  • (1) Player default size
    Default width is 710 px.
    Default height is 405 px.
    These size are same as the player in watch pages.

    プレーヤーのデフォルトの横幅は 710 ピクセルです。
    プレーヤーのデフォルトの高さは 405 ピクセルです。
    これらのサイズはビデオページのプレーヤーと同じ値です。



  • (2) Customized size
    e.g. width is 410 pixel and height is 234 pixel.

    横幅410ピクセルで高さ234ピクセルに設定した場合、次のようになります。



  • (3) Auto resize
    e.g. The resolusion of the original video is 720 x 480 pixel.

    元のビデオの解像度が横幅720ピクセルで高さ480ピクセルの場合、次のようになります。



  • (4) Drag & Drop
    You can move the video panel by using drag & drop.
    Do drag & drop by gripping the black area(opacity 90%) around the player.
    In this area,the mouse pointer will change to move cursor type.

    ビデオパネルはドラッグ&ドロップで移動できます。
    プレーヤーの周囲の領域を掴んで移動させてください。
    この領域ではマウスカーソルが移動の形状(上下左右の矢印を組み合わせた形状)になります。

  • (5) Download video
    You can download video by clicking the 'Download video' button.

    'Download video' ボタンのクリックでダウンロードする事ができます。

  • (6) Close
    If you want to close this box, click the 'X' button at the upper right corner.

    ビデオパネルを閉じる時は、右上角にある'X'ボタンをクリックしてください。

  • (7) Resize
    If you want to change the size of the video panel dynamically, drag the box at the lower right corner.
    The mouse pointer will change to se-resize cursor type on this box.
    You can resize the player between the useful range.
    You can set up the range. See 4-1. Set up this script

    ビデオパネルのサイズを動的に変化させたい場合は、右下角にある をドラッグしてください。
    このボックス上ではマウスカーソルが右下リサイズの形状(左上向きと右下向きの矢印を組み合わせた形状)になります。
    有効範囲内の大きさでリサイズする事ができます。
    有効範囲は、4-1. Set up this scriptを見て、設定してください。

  • (8) Lock/Unlock
    If you want to keep the position of the player, click the 'Lock' button beside the 'X' button.
    This button will change the 'Unlock' button, and you will not be able to move it.
    If you don't want to keep the position of the player, click the 'Unlock' button.
    It will change the 'Lock' button, and you will be able to move it.
    The resize function is not locked.

    プレーヤーの表示位置を固定したい場合、'Lock'ボタンをクリックしてください。
    ボタンが'Unlock'ボタンに変わり、プレーヤーを移動できなくなります。
    プレーヤーの表示位置を移動可能にしたい場合、'Unlock'ボタンをクリックしてください。
    ボタンが'Lock'ボタンに変わり、プレーヤーを移動できるようになります。
    リサイズ機能はロックされません。

  • (9) Status bar
    In the status bar,the following status is displayed.
    Resolution and aspect ratio of the original video and player size and aspect ratio of the current player.

    ステータスバーに、以下のステータスが表示されます。
    元ビデオの解像度とアスペクト比、およびプレーヤーのサイズとアスペクト比。



  • (10) Lock aspect ratio
    Above the status bar,the check box of "Lock aspect ratio" is displayed.
    If you want to lock aspect ratio when you are resizing, check it.
    About default setting, see 4-1. Set up this script.

    ステータスバーの上部に、アスペクト比をロックするチェックボックスが表示されます。
    リサイズ時にアスペクト比を変化させたくない場合にチェックしてください。
    初期設定については、4-1. Set up this scriptを参照してください。



3. Watch pages

You can add a download button and video informations like file size and added date.
You can set up these informations. See 4-1. Set up this script

ダウンロードボタンや、ファイルサイズ、登録日のようなビデオ情報を視聴ページに追加できます。
また、これらの情報は設定することができます。設定は4-1. Set up this scriptを参照してください。

  • (1) Download


    If you want to download video in watch pages,
    click the 'DOWNLOAD VIDEO' button.
    You can customize this button. See 4-1. Set up this script.

    ビデオページでビデオをダウンロードしたい場合にDOWNLOAD VIDEOクリックしてください。
    このボタンはカスタマイズが可能です。 4-1. Set up this scriptを参照してください。

  • (2) Video Informations
    You can add video file size and added date in the 'About this video' area.
    See 4-1. Set up this script

    ビデオページの'About this video'のところに、ビデオのファイルサイズや登録日を追加表示できます。
    4-1. Set up this scriptを参照してください。

    BeforeAfter

    • (a) File size
      You can add the video file size about videos in video*.vreel.net, but you can not add it about videos in ne.edgecastcdn.net.
      Because that server is checking a referer in the http request header, but Greasemonkey can not send a referer.
      Therefore, if you want to show the video file size in ne.edgecastcdn.net, you have to use an add-on like RefControl.

      video*.vreel.netにあるビデオはファイルサイズの表示を追加できますが、
      ne.edgecastcdn.netにあるビデオはそのままでは表示を追加できません。
      これは、サーバがRefererのチェックを行っているからですが、GreasemonkeyのスクリプトはRefererを送出できません。
      したがって、ne.edgecastcdn.netにあるビデオのファイルサイズを表示したい場合は、
      RefControlなどのアドオンを使用してください。

    • (b) Added date
      You can add the uploded date of the videos in ne.edgecastcdn.net.
      About the videos in video*.vreel.net,the last-modified date of the preview image is displayed instead of uploaded date.

      ne.edgecastcdn.netにあるビデオは登録日の表示を追加できます。
      video*.vreel.netにあるビデオについては、プレビュー画像の最終更新日を表示します。

    • (c) About RefControl add-on
      URL:https://addons.mozilla.org/en-US/firefox/addon/953
      If you use RefControl,set following parameters.
      Site: ne.edgecastcdn.net
      Action: Custom http://beta.vreel.net/watch_

      RefControlアドオンを使用する場合、次のパラメータを設定してください。
      サイト: ne.edgecastcdn.net
      動作: カスタム http://beta.vreel.net/watch_

    • (d) About Server
      If the video page number is smaller than 23642(watch_23642.html), the video is put in ne.edgecastcdn.net.
      If the video page number is bigger than 23643(watch_23643.html), the video is put in video*.vreel.net.
      It seems that there are no video about 23642 and 23643.
      Now,VReel is moving videos from edgecastcdn to vreel and they have issue about it.
      So almost videos of edgecastcdn are displayed error message.
      When all videos are moved to the vreel domain,delete the setting of RefControl for this script.

      ビデオ番号が23642より小さいビデオはne.edgecastcdn.netに置かれています。
      ビデオ番号が23643より大きいビデオはvideo*.vreel.netに置かれています。
      23642と23643は調べた時には存在しませんでした。
      現在、VReelはedgecastcdnのサーバーのビデオをVreelのサーバに移し換えていますが、トラブルを抱えているようで、
      edgecastcdnの殆どのビデオはエラーになるようです。というか、DBの情報が更新されていないだけのような気もしますが。
      全ビデオがvreelドメインに移ったらRefControlのこのスクリプト用の設定を削除してください。


4. User script command menu

4-1. Set up this script
  • If you want to set up this script, select this menu.
    The setup panel including four tabs is displayed.
    At first,the tab of List page is selected.
    In order to change a tab,click the tab what you want to set up.

    ビデオ一覧の設定をしたい場合、このメニューを選択してください。
    4つのタブを含む設定パネルが表示されます。
    最初に、リストページのタブが選択されています。
    設定したい項目のタブをクリックして切り換えてください。

  • (1) List page
    If you want to set up about list pages, click this tab.

    リストページの設定をしたい場合、このタブをクリックしてください。



    • About adding link and button

    • Download link If you want to add the download link,check this.

      ダウンロード用のリンクを追加したい場合、これにチェックを付けてください。
      Watch video If you want to add this button, check this.

      ビデオ視聴ボタンを追加したい場合、これにチェックを付けてください。

    • About adding video informations

    • User name If you want to add the user name,check this.

      登録者を追加したい場合、これにチェックを付けてください。
      Length If you want to add the video length, check this.

      ビデオの長さ(時間)を追加したい場合、これにチェックを付けてください。
      Resolution If you want to add the video resolution, check this.

      ビデオ画像サイズを追加したい場合、これにチェックを付けてください。
      Views If you want to add the number of views, check this.

      視聴数を追加したい場合、これにチェックを付けてください。
      Added date If you want to add the added date, check this.
      This added date is the last modified date of the preview image.
      So this date will be different with actual uploaded date.

      登録日時を追加したい場合、これにチェックを付けてください。
      登録日時はプレビューイメージの最終更新日時を表示します。
      従って、実際のアップロード日時と異なることがあります。

  • (2) Video panel
    If you want to set up about the video panel, click this tab.

    ビデオパネルの設定をしたい場合、このタブをクリックしてください。



    • About watch video

    • Autoplay If you want to play automatically when the video panel opened,check this.

      プレーヤが表示されたときに自動再生したい場合、これにチェックを付けてください。
      Auto resize If you want to resize automatically according to the original video size when the video panel opened,check this.

      プレーヤが表示されたときに自動的に元のビデオサイズにリサイズしたい場合、これにチェックを付けてください。
      Lock aspect ratio If you want to lock aspect ratio while resizing,check this. This is a starting setting when the video panel is opened.

      リサイズしている時にプレーヤのアスペクト比を固定したい場合、これにチェックを付けてください。ビデオパネルが開いた時の初期設定になります。
      Player width If you want to specify the player width,set this with pixel.
      If "Auto resize" is checked,this value will be ignored.

      プレーヤの横幅を指定したい場合、これにピクセル値を設定してください。
      Auto resizeが有効な場合、この値は無視されます。
      Player height If you want to specify the player height,set this with pixel.
      If "Auto resize" is checked,this value will be ignored.

      プレーヤの高さを指定したい場合、これにピクセル値を設定してください。
      Auto resizeが有効な場合、この値は無視されます。
      Fit aspect ratio If you want to fit the aspect ratio of the video when you specified the player width and height without checking "Auto Resize",check this.
      Player width is the specified value.
      Player height will be calculated according to the aspect ratio of the video.

      Auto Resizeでない場合に、プレーヤーの高さを自動的にビデオのアスペクト比に合わせて計算したい場合、これにチェックを付けてください。
      プレーヤの横幅は指定した値になります。
      プレーヤの高さはビデオのアスペクト比(embed情報より計算)から計算されます。
      Useful range(width) If you want to specify the useful range of the player about the width,set minimum value and maximum value with pixel.

      プレーヤの横幅の有効範囲を指定したい場合、これにピクセル値で最小値と最大値を設定してください。
      Useful range(height) If you want to specify the useful range of the player about the height,set minimum value and maximum value with pixel.

      プレーヤの高さの有効範囲を指定したい場合、これにピクセル値で最小値と最大値を設定してください。

      The player width and height have to be set between the useful range.
      When Auto resize is checked,if the original video resolution is over the useful range,the player size will be adjusted in the range of these values automatically.


      Player widthとPlayer heightは有効範囲内の値を指定してください。
      Auto resizeが有効で、元のビデオの解像度が有効範囲を超えている場合、プレーヤーのサイズは有効範囲内に自動調整されます。

  • (3) Watch page
    If you want to set up about watch pages, click this tab.

    視聴ページの設定をしたい場合、このタブをクリックしてください。



    • About DOWNLOAD button

    • Text type If you want to use text link, select this.

      テキスト形式のリンク表示にする場合は、これに選択してください。
      Text color input text color code.

      テキスト表示色を指定してください。
      Background color Input background color code.
      You need to specify color code like red,blue,#FFFFFF,etc.

      背景色を指定してください。
      red,blue,#FFFFFFのような色コードで指定してください。
      Image type If you want to use image link, select this.

      イメージ形式のリンク表示にする場合は、これに選択してください。
      URL Specify the URL of the image file.
      You have to make an image file and upload on a web server.
      You can use sample image.

      イメージファイルのURLを指定してください。
      ボタンに使用するイメージを作成して、どこかのウェブサーバにアップロードしてください。
      サンプルイメージを使うこともできます。

      e.g.
      (a) Text type
      text color: #FFFFFF
      background color: #02B4F9


      (b) Image type
      URL:http://i40.tinypic.com/2afgwmt.jpg


      If you want a sample image of the image link,use this image.
      イメージタイプのサンプルを使用したい場合、以下のイメージを使用してください。




    • About adding video informations

    • Video file size If you want to add the video file size, check this.

      ビデオのファイルサイズを追加したい場合、これにチェックを付けてください。
      Added date If you want to add the added date, check this.

      ビデオの登録日時を追加したい場合、これにチェックを付けてください。

    • About player

    • Autoplay If you want to play automatically when a watch page opened, check this.

      ページが表示された時に自動再生したい場合、これにチェックを付けてください。


  • (4) Script control
    If you want to set up about the control of this script, click this tab.

    このスクリプトの制御についての設定をしたい場合、このタブをクリックしてください。



    • About queue control

    • If you want to control the queue to get video informations,set up this.
      Adjust the values,because it makes the process of the web browser heavy or the process does not start soon by the value.

      ビデオ情報取得用キューの制御をしたい場合、これを設定してください。
      値によっては、ブラウザがすごく重くなったり、処理がなかなかはじまらなかったりしますので値を調整してください。

      Check interval If you want to specify the check interval of added videos in the page, set the value of interval.
      The unit is "seconds" and you can specify from 3 to 60.

      キューの状態のチェック間隔を指定したい場合、この値を指定してください。
      単位は秒で3から60までが指定できます。
      Check interval after finished the process of all videos Same above but after processed all of videos, set the value of interval.
      The unit is "seconds" and you can specify from 3 to 60.

      上と同じですが、全てのビデオ情報を取得し終わったと認識した後のチェック間隔を指定します。
      単位は秒で3から60までが指定できます。
      Upper limit of sending HTTP request This script sends HTTP request to get video informations up to this value at the same time.
      You can specify from 1 to 25. But a big value makes the process of the web browser heavy.

      ビデオ情報を取得するために同時に送信するHTTPリクエストの上限値を指定します。
      1から25まで指定できます。同時送信が多いと処理が重くなります。
      Upper limit of waiting HTTP response This script waits HTTP response until this value.
      The unit is "seconds" and you can specify from 30 to 300.

      HTTPレスポンスをいつまで待つかという上限値を指定します。
      単位は秒で30から300までが指定できます。
      Upper limit of retrying This script retries getting video informations up to this value.
      The unit is "times".The unit is "sec" and you can specify from 0 to 10.
      But I think it will be error again.

      ビデオ情報の取得に失敗していると判定したビデオのリトライ回数を指定できます。
      単位は回数で0から10まで指定できます。ただし、リトライしてもエラーになる可能性が高いです。


  • (5) Update checker
    If you want to check even if the script updated, click this tab.

    アップデートチェッカーの設定をしたい場合、このタブをクリックしてください。



    • About check pattern

    • No check If you don't want to check, select this.

      アップデートのチェックをしない場合、これを選択してください。
      Every loading If you want to check on every loading, select this.

      スクリプトが読み込まれる度にチェックをしたい場合、これを選択してください。
      Once a day If you want to check on first loading on a day, select this.

      日の最初にスクリプトが読み込まれた時にのみチェックをしたい場合、これを選択してください。
      Once a week If you want to check on first loading on a week or specified day, select this.

      週の最初にスクリプトが読み込まれた時にのみチェックをしたい場合、これを選択してください。

      Any day at the first loading on a week

      週の最初にスクリプトが読み込まれた時(曜日は問わない)
      Sunday at the first loading on Sunday

      日曜日で最初にスクリプトが読み込まれた時
      Monday at the first loading on Monday

      月曜日で最初にスクリプトが読み込まれた時
      Tuesday at the first loading on Tuesday

      火曜日で最初にスクリプトが読み込まれた時
      Wednesday at the first loading on Wednesday

      水曜日で最初にスクリプトが読み込まれた時
      Thursdayat the first loading on Thursday

      木曜日で最初にスクリプトが読み込まれた時
      Fridayat the first loading on Friday

      金曜日で最初にスクリプトが読み込まれた時
      Saturdayat the first loading on Saturday

      土曜日で最初にスクリプトが読み込まれた時
      Once a month If you want to check on first loading on a month, select this.

      月の最初にスクリプトが読み込まれた時にのみチェックをしたい場合、これを選択してください。

    • Check now
    • If you want to check manually, click the 'Check now' button.

      手動でチェック処理を呼び出したい場合、'Check now'をクリックしてください。

    • Message panel
    • If you use the latest version, a message is not displayed without checking manually.
      You need to go to the target site of this script to execute this checker.

      手動によるチェック時を除いて、最新版を使用している場合、メッセージは表示されません。
      また、更新チェッカーを作動させるためには、このスクリプトの対象サイトに行く必要があります。

      • In the case of using an older version(the latest version is released)
        旧版を使っている場合(最新版がリリースされている)


        If you want to install the latest version, click 'the script page' link.

        最新版に更新したい場合、'the script page' をクリックしてスクリプトページへ行ってください.

      • In the case of using the latest version(only manual checking)
        最新版を使っている場合(手動チェック時のみ)


      • Error
        エラーになった場合


      If you want to change the checker setting, click 'Set up' button.
      If you want to close the message, click 'X' button.

      設定を変更したい場合、'Set up' ボタンをクリックしてください。
      メッセージボックスを閉じたい場合、'X' ボタンをクリックしてください。



  • (6) Save or abort
    If you want to save the setting, click the 'OK' button.
    If you want to abort, click the 'Cancel' button.

    設定変更を確定し保存する場合、'OK'をクリックしてください。
    設定変更を破棄する場合、'Cancel'をクリックしてください。





  • 5. Information

    • (1) Download link
      Maybe,the target URL is available in a few minutes.
      So if you want to download the video, you should download it in the time limit.
      If it overed the time limit and error happened,reload the page.
      And multiple downloading is not available.

      ダウンロードのリンクは数分間しか有効ではありません。
      ダウンロードする場合は有効期限内にダウンロードしてください。
      有効期限を過ぎてエラーになった場合は、リロード(ページの更新)してください。
      また、複数ファイルのダウンロードは制限されているようです。

    • (2) AutoPager
      This script set the addEventListener to the div node having the ID of "left-wide" or the class of "left".
      Therefore if you use AutoPager,set the content XPath a node under them.

      "contentInner" または "contentHolder"というIDを持つdivノードに対してaddEventListenerを設定しています。
      したがって、AutoPagerを使う場合、コンテンツXPathはこれらのノード配下のノードを指すXPathを指定してください。

      e.g. Browse page and search result
      Regex: true
      URL pattern: ^http://beta.vreel.net/index.php*
      Link XPath: //div[@id='pagination']/a[(text()='next')]
      Content XPath: //div[@id='content']




    • (3) Cooperate with Irvine ContextMenu add-on
      This function is for Irvine users.
      Irvine is a downloader made in Japan.
      If you can't understand Japanese,it might be difficult to use it.
      This script adds "filename" attribute to generated download links.
      This attribute is necessary to cooperate with Irvine ContextMenu add-on.
      But original Irvine ContextMenu does not get this property.
      So if you want to receive the filename(for save as) with Irvine, you have to edit the source code of Irvine ContextMenu.
      If you need the source code modified by me,contact me.

      この機能はIrvineユーザ用です。
      このスクリプトは生成したダウンロードリンクに"filename"属性を追加しています。
      この属性はアドオンのIrvine ContextMenuとの連携に必要です。
      ただし、Irvine ContextMenuはそのままでは、受け取ってくれません。
      したがって、Irvineにファイル名(保存用)を受け取らせたい場合、Irvine ContextMenuのソースを改造する必要があります。
      改造内容を書くのが面倒なので、修正済のソースが必要な方は、ご連絡ください。



    6. To-Do / Doing List

    • (1) Cutomize download button,etc.
      I'm going to add the new setup items to customize the color,etc. of "Download" links and "Watch Video" buttons.

      "Download"リンクや"Watch Video"ボタンの色などをカスタマイズできるようにするつもりです。