| Version 0.4.2
Adjusted a box height in list pages,because the watch button is out of bounds in videos which has a long description like 'HANGRY & ANGRY Angelia'
HANGRY & ANGRY Angeliaのように説明文の長いビデオで、Watch Videoボタンが枠をはみ出していたので、枠の高さを調整しました。
1. List pages
This script can use only in video thumbnail list like following pages.
Also includes a video list in watch pages.
以下のようなビデオリストのページで利用することが出来ます。
また、視聴ページ内のビデオリストも含みます。

- (1) Download
If you want to download the video, click this link.
ビデオをダウンロードしたい場合、このリンクをクリックしてください。
- (2) 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 420 pixel .
The player size in watch pages is this size.
横幅480ピクセルで高さ420ピクセルに設定した場合、次のようになります。
ちなみに、視聴ページのプレーヤーはこのサイズです。

- (2) Auto resize
e.g. The resolusion of the original video is 360 x 337 pixel.
The embed code of all videos is set this size.
元のビデオの解像度が横幅360ピクセルで高さ337ピクセルの場合、次のようになります。
すべてのビデオのエンベッドコードはこのサイズになっています。

- (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.
The following dialog(sorry it is for japanese edition) will be displayed.
But if you already set the process about the file type, this dialog won't apear.
'Download video' ボタンのクリックでプレビュービデオをダウンロードする事ができます。
次のようなダイアログが表示されます。ただし、「今後この種類のファイルは同様に処理する」を指定済のファイルの種類の場合は、その設定に従って動作しますのでダイアログは表示されないでしょう。

- (5) 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を見て、設定してください。
- (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'ボタンをクリックしてください。
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を参照してください。

- (1) 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を参照してください。
4. User script command menu4-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 to the following video type.
'Download' リンクを追加したい場合、ビデオの種類を選択してください。
| | Watch button |
If you want to add the Watch video button, check this.
Watch video ボタンを追加したい場合、これにチェックを付けてください。
|
- (2) Video panel
If you want to set up about the video panel, click this tab.
ビデオパネルの設定をしたい場合、このタブをクリックしてください。

- About watching video
| 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 360 x 337 pixel.
プレーヤが表示されたときに自動的に元のビデオサイズにリサイズしたい場合、これにチェックを付けてください。
サイズは当該ビデオのembedコードから取得されます。
ただし、おそらくすべてのプレビュービデオのサイズは360×337ピクセルです。
| | 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.
Player widthとPlayer heightは有効範囲内の値を指定してください。
- (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.
You need to specify color code like red,blue,#E97300,etc.
テキスト表示色を指定してください。
red,blue,#E97300のような色コードで指定してください。
| | Background color |
Input background color code.
You need to specify color code like red,blue,#E97300,etc.
背景色を指定してください。
red,blue,#E97300のような色コードで指定してください。
|
| | 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: #E97300
background color: transparent

(b) Text type (Default setting)
text color: #FFFFFF
background color: #E97300

(c) Image type
URL: http://i35.tinypic.com/25hd2tc.jpg

You can use this URL.
(4) Script control
If you want to set up about the control of this script, click this 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.
アップデートチェッカーの設定をしたい場合、このタブをクリックしてください。

- 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
水曜日で最初にスクリプトが読み込まれた時
| | Thursday | at the first loading on Thursday
木曜日で最初にスクリプトが読み込まれた時
| | Friday | at the first loading on Friday
金曜日で最初にスクリプトが読み込まれた時
| | Saturday | at 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) AutoPager
This script set the addEventListener to the div node having ID of "dual_list".
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).
"Wrapper" というIDを持つdivノードに対してaddEventListenerを設定しています。
したがって、AutoPagerを使う場合、コンテンツXPathはこのノード配下のノードを指すXPathを指定してください。
e.g. List page
Regex: true
URL pattern: ^http://www\.dohhhup\.com/*
Link XPath: //tr/td[3]//a[@class='Link_Movie_v2']
Content XPath: //div[@id='Top_RN_New']

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