Adds a link to download video for XVIDEOS.COM

By charmy Last update Jan 30, 2010 — Installed 8,434 times.


Script Summary: Adds a link to download video,information and a button to watch a video for XVIDEOS.COM and XNXX.COM. You can watch a video in list pages. ダウンロード用のリンクとビデオ情報を追加します。リストページでビデオを見ることができます。

Version: 0.2.0

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

Version 0.2.0

Added the function to remove the sponsor box on the player.

プレーヤ上に表示されるスポンサーの表示ボックスを取り除く機能を追加しました。



Please add your review in order to enhance this script in the future if you have your acount of this site.

このサイトのアカウントをお持ちでしたら、今後のエンハンスのためにレビューをお願いします。



1. List pages

This script can use only in video thumbnail list like following pages.
Also includes a video list in watch pages.

以下のようなビデオリストのページで利用することが出来ます。
また、視聴ページ内のビデオリストも含みます。

I used the filter to the image file in order to upload it to this site.

このサイトへイメージファイルをアップロードするためにフィルターをかけました。

(a) XVIDEOS.COM

List page XVIDEOS.COM


(b) XNXX.COM

List page XNXX.COM


  • (1) Download
    If you want to download the video, click this link.

    ビデオをダウンロードしたい場合、このリンクをクリックしてください。

  • (2) Video informations(ビデオ情報)
    You can display uploaded date(only XNXX.COM),comments,and ratings(Good and Bad).

    登録日(XNXX.COMのみ)、コメント数、評価数(Good および Bad)を表示できます。

  • (3) Watch Video
    If you want to watch the video,click this button. The video panel will be displayed.

    リスト画面でプレビュービデオを見たい場合、このボタンをクリックしてください。ビデオパネルが現れます。

    You can control these functions.
    You can customize text color and font-size,etc.,but you have to edit the source code at your own risk.
    See 4-1. Set up this script

    これらは設定画面で表示制御ができます。
    色やフォントサイズなどをカスタマイズしたい場合は、自己責任でソースを直接書き換えてください。
    4-1. Set up this scriptを見てください。



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) Customized size
    e.g. width is 480 pixel and height is 376 pixel.
    The player size in watch pages is this size.

    横幅480ピクセルで高さ376ピクセルに設定した場合、次のようになります。
    ちなみに、視聴ページのプレーヤーはこのサイズです。

    I used the filter to the image file in order to upload it to this site.

    このサイトへイメージファイルをアップロードするためにフィルターをかけました。

    (a) XVIDEOS.COM

    480x376 XVIDEOS.COM

    (b) XNXX.COM

    480x376 XNXX.COM


  • (2) Auto resize
    e.g. The resolusion of the original video is 612 x 480 pixel.
    The embed code of all videos is set this size.

    元のビデオの解像度が横幅612ピクセルで高さ480ピクセルの場合、次のようになります。
    すべてのビデオのエンベッドコードはこのサイズになっています。

    I used the filter to the image file in order to upload it to this site.

    このサイトへイメージファイルをアップロードするためにフィルターをかけました。

    Auto resize

  • (3) Drag & Drop
    You can move the video panel by using drag and 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.

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

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

    'Download video' ボタンのクリックでプレビュービデオをダウンロードする事ができます。


  • (5) Resize
    Drag the Resize box box at the lower right corner to change the size of the video panel dynamically.
    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

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

  • (6) 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'ボタンに変わり、プレーヤーを移動できるようになります。
    リサイズ機能はロックされません。

  • (7) Status bar
    In the status bar,the following status is displayed.
    Resolution and aspect ratio of the video and player size and aspect ratio of the current player.
    But the actual video's ratio is fixed irrespective of the player's ratio.

    ステータスバーに、以下のステータスが表示されます。
    元のプレビュービデオの解像度とアスペクト比、およびプレーヤーのサイズとアスペクト比。
    ただし、表示されるプレーヤーのアスペクト比に関係なく、ビデオ自体のアスペクト比は一定です。


  • (8) Close
    If you want to close the video panel, click the 'X' button at the upper right corner.

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

  • (9) Sponsor box
    If you want to remove the sponsor box on the player, see 4-1. Set up this script

    プレーヤ上のスポンサー表示を自動的に取り除きたい場合、4-1. Set up this scriptを参照してください。

    (a) Video with the sponsor box.

    スポンサーボックス付きのビデオ。

    Video with the sponsor box


    (b) Video without the sponsor box.

    スポンサーボックスを取り除いたビデオ。

    Video without the sponsor box




3. Watch pages

You can add download buttons.
You can set up this. See 4-1. Set up this script

ダウンロードボタンを視聴ページに追加できます。
また、これを設定することができます。設定は4-1. Set up this scriptを参照してください。

I used the filter to the image file in order to upload it to this site.

このサイトへイメージファイルをアップロードするためにフィルターをかけました。


(a) XVIDEOS.COM

Watch page XVIDEOS.COM

(b) XNXX.COM

Watch page XNXX.COM


  • (1) Download button
    Download button

    If you want to download the video, click the 'Download' button.
    You can customize the button. See 4-1. Set up this script

    ビデオをダウンロードしたい場合、'Download'ボタンをクリックしてください。
    このボタン(文字色、背景色など)はカスタマイズができます。 4-1. Set up this scriptを参照してください。

  • (2) Sponsor box
    If you want to remove the sponsor box on the player, see 4-1. Set up this script

    プレーヤ上のスポンサー表示を自動的に取り除きたい場合、4-1. Set up this scriptを参照してください。




4. User script command menu

4-1. Set up this script
  • ##### Set up this script(XVIDEOS.COM) #####
    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.

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

    List page tab


    • About link and button
      Download link if you want to add the Download link, check to the following video type.

      Download リンクを追加したい場合、ビデオの種類を選択してください。

      Text If you want to change the link text,change this.

      ダウンロード用のリンクの表示文字列を変更したい場合、この文字列を変更してください。
      Watch button If you want to add the Watch video button, check this.

      Watch video ボタンを追加したい場合、これにチェックを付けてください。

      Text If you want to change the button text,change this.

      視聴用のボタンの表示文字列を変更したい場合、この文字列を変更してください。

    • About video informations
      Upload If you want to add an upload date, check this.

      登録日を追加したい場合、これにチェックを付けてください。
      Comments If you want to add a number of comments, check this.

      コメント数を追加したい場合、これにチェックを付けてください。
      Rating If you want to add vote numbers of rating, check this.
      Good rating and Bad rating are displayed.

      評価の投票数を追加したい場合、これにチェックを付けてください。
      GoodとBadのそれぞれの投票数が表示されます。
      Percentage of Good rating If you want to add the value of percentage of Good ratings, check this.
      This is only available when 'Rating' is available.

      Goodへの評価投票の割合(%)を追加したい場合、これにチェックを付けてください。
      評価の投票数の表示がある場合のみ有効です。

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

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

    Video panel tab

    • About player
      Auto Resize If you want to resize automatically when the video panel was opened, check this.
      The resolution of videos is gotton from embed code.
      But maybe,the resolution of all videos is 612 x 480 pixel.

      プレーヤが表示されたときに自動的に元のビデオサイズにリサイズしたい場合、これにチェックを付けてください。
      サイズは当該ビデオのembedコードから取得されます。
      ただし、おそらくすべてのプレビュービデオのサイズは612 x 480ピクセルです。
      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.

      プレーヤの高さの有効範囲を指定したい場合、これにピクセル値で最小値と最大値を設定してください。
      Remove sponsor box If you want to remove the sponsor box on the player, check this.

      プレーヤ上のスポンサー表示を自動的に取り除きたい場合、これにチェックを付けてください。

      The player width and height have to be set between the useful range.

      Player widthとPlayer heightは有効範囲内の値を指定してください。

    • About items on the panel
      Download link If you want to add the Download Video link, check this.

      Download Video リンクを追加したい場合、これにチェックを付けてください。

      Text If you want to change the link text,change this.

      ダウンロード用のリンクの表示文字列を変更したい場合、この文字列を変更してください。

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

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

    Watch page tab

    • About button
      Download button If you want to add DOWNLOAD button, check this.

      DOWNLOADボタンを追加したい場合は、これにチェックを付けてください。

      Text If you want to change the button text,change this.

      ボタンの表示文字列を変更したい場合、この文字列を変更してください。
      Text color Input text color code.
      You need to specify color code like red,blue,#2F73AF,rgb(255,255,255),etc.

      テキスト表示色を指定してください。
      red,blue,#2F73AF,rgb(255,255,255)のようなカラーコードで指定してください。
      Background color Input background color code.
      You need to specify color code like red,blue,#2AA8D9,rgb(255,255,255),etc.

      背景色を指定してください。
      red,blue,#2AA8D9,rgb(255,255,255)のようなカラーコードで指定してください。
      Background image If you want to use backgroudn image,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.
      If you specify the background image,the background color will be ignored.


      ボタンの背景にイメージを使用したい場合、イメージファイルのURLを指定してください。
      ボタンに使用するイメージを作成して、どこかのウェブサーバにアップロードしてください。
      サンプルイメージを使うこともできます。
      Background imageを指定した場合、Background colorは無効になります。

      e.g.
      (a) Without background image
      Text color: #FFFFFF
      Background color: #FF3333
      Background image:
      Text type
      <
      (b) With background image
      Text color: #FFFFFF
      Background color:
      Background image: http://i1205.photobucket.com/albums/bb428/charm...
      Image type


      If you want to use a sample image of the image link,you can use these images.

      背景イメージのサンプルを使用したい場合、以下のイメージを使用できます。
      Sample image http://i1205.photobucket.com/albums/bb428/charm...
      Sample image http://i1205.photobucket.com/albums/bb428/charm...
      Sample image http://i1205.photobucket.com/albums/bb428/charm...
      Sample image http://i1205.photobucket.com/albums/bb428/charm...
      Sample image http://i1205.photobucket.com/albums/bb428/charm...
      Sample image http://i1205.photobucket.com/albums/bb428/charm...



    • About player
      Remove sponsor box If you want to remove the sponsor box on the player, check this.

      プレーヤ上のスポンサー表示を自動的に取り除きたい場合、これにチェックを付けてください。


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

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

    Script control tab

    • About queue control
      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まで指定できます。ただし、リトライしてもエラーになる可能性が高いです。

    • About video title
      Title lines If you want to specify the number of lines gotten for the title attribute, set the value in this text box.
      The initial value is 2.
      The value has to be specified between 1 to 5.
      The title is used the video panel and the title attribute(displayed as balloon) of the download link. And it is used as the filename attribute for "5. Information (2) Cooperate with Irvine ContextMenu add-on".

      タイトルとして取得する行数を設定したい場合、テキストボックスに行数を指定してください。
      初期値は2です。
      値は 1 から 5 で指定してください.
      タイトルは、ビデオパネルのビデオタイトルおよび、ダウンロードリンクのtitle属性(バルーン表示用)として使用します。また、"5. Information の (2) Cooperate with Irvine ContextMenu add-on"で使用するfilename属性でも使用します。
      Title separator If you want to specify the separator to concatinate the title lines, set the separator in this text box. This value is only effective when 2 or more lines are specified. The initial value is a blank.

      タイトル行を結合するためのセパレータを指定したい場合、テキストボックスにセパレータを指定してください。行数に2以上を指定した場合にのみ有効です。初期値は半角空白です。

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

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

    Update checker 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)
        旧版を使っている場合(最新版がリリースされている)
        Older version


        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)
        最新版を使っている場合(手動チェック時のみ)
        Latest version

      • Error
        エラーになった場合
        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) AutoPager
    This script set the addEventListener to the table node of the ancestor of the anchor having the class of "miniature".
    Therefore if you use AutoPager,set the content XPath a node under it.
    Maybe,it is set in default of AutoPager(it exists in mine).

    "miniature" というクラスを持つanchorノードの先祖のtableノードに対してaddEventListenerを設定しています。
    したがって、AutoPagerを使う場合、コンテンツXPathはこのノード配下のノードを指すXPathを指定してください。

    e.g. List page for XVIDEOS.COM
    Regex: true
    URL pattern: ^http://www\.xvideos\.com/
    Link XPath: //a[@class='nP' and (text()='Next')]
    Content XPath: //body/div[@align="center"]/table[2]

    AutoPager XVIDEOS.COM


    e.g. List page for XNXX.COM
    XNXX.COM was already set by Mr. mark.
    Regex: true
    URL pattern: ^http://(?:[^.]+\.)*?xnxx\.com/
    Link XPath: //a[@class='nP' and (text()='Next')]
    Content XPath: //div[@align="center"]/table[3]

    AutoPager XNXX.COM


  • (2) 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"属性を追加しています。
    DohhhUP!の場合、動画にタイトルがないので、ビデオ説明の部分の2行分をファイル名に格納しています。
    この属性はアドオンのIrvine ContextMenuとの連携に必要です。
    ただし、Irvine ContextMenuはそのままでは、受け取ってくれません。
    したがって、Irvineにファイル名(保存用)を受け取らせたい場合、Irvine ContextMenuのソースを改造する必要があります。
    改造内容を書くのが面倒なので、修正済のソースが必要な方は、ご連絡ください。

  • (3) Autoplay
    I tried some method,but it didn't work.

    いろいろ試しましたが、うまくいきませんでした。




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"ボタンの色などをカスタマイズできるようにするつもりです。