zhuzemin / anime1_danmaku

盗版站播放正版弹幕.user.js
5 stars 1 forks source link

anime1_danmaku

Compatibility:
Firefox/Chrome,
Tampermonkey <--- !!!Attention: Greasemonkey 4 was not support!

This script display and post danmaku in www.bimibimi.me / video.eyny.com / www.tucao.one,
danmaku from bilibili.com / ani.gamer.com.tw / acfun.cn.

Usage:
1: Click button "Search Danmaku",
2: Wait for search complete,
3: Click button "Load Player",
4: Enjoy anime.

Other command:
(*Command type in text input inside player)
5: Download danmaku: after "Load Player", "Download Danmaku" button will be ready, it's use for download danmaku as ".ass" file.
6: Volume adjust: ↑↓(arrow key).
7: Danmaku speed adjust(100-200%): !dmspd:*
8: Post danmaku: !dm:****

9: Post danmaku with specify mode/size/color: !dm:**{{mode,size,color}}
Mode: right/bottom/top
Size: 12/16/18/25/36/45/64
*Color: black/blue/green/orange/pink/purple/red/silver/yellow/white/gold
10: Open this userscript greasyfork page: !fork
11: Open current anime wiki page: !wiki
12: Search current anime theme song: !music
13: Danmaku source page: !source
14: Search anime in pixiv: !pixiv

Notice:
Double click "Search Input" will show all search result, you can select one to display(or download).
you can not use "Search Danmaku", instead paste "url" in Input, then will directly "Load Player".
"url" like:
https://api.bilibili.com/x/v1/dm/list.so?oid=**,
https://ani.gamer.com.tw/animeVideo.php?sn=**
*but because script doesn't know title, so other function will be unavailable.
but if pste format like "Search Result":
[Acfun] [成群逐队!西顿学园] [第4话] - http://danmu.aixifan.com/V2/11290983?pageSize=500&pageNo=1
all function will be available.

Advanced command:
13: Use alias for search: !alias:{{targetSite}}targetTitle
this command will store a alias of current anime,
then next search request send to the targetSite, the alias will replace origin title.
Example: !alias:{{bilibili}}歌舞伎町シャーロック
then next time you watching "歌舞伎町夏洛克", script will try search '歌舞伎町シャーロック'(from bilibili);
targetSite: acfun/bilibili/bahamut/tucao
14: use !alias specific currentTitle: !alias:{{targetSite,currentTitle}}targetTitle
15: Show all stored alias: !alias
16: Clear all alias: !alias:null

Secret command:
17: a secret command for who rating this script: !secret

Feedback:
Twitter: https://twitter.com/zemin_zhu
QQ Group: 32835999

Thanks:
1.Danmaku Player: "ABPlayer" ---- https://github.com/jabbany/ABPlayerHTML5
I made tiny modified: load Danmaku not from url, instead read from string.(for CROS)
2.Danmaku download: "Ass Danmaku" ---- https://github.com/tiansh/ass-danmaku
*I modified early userscript version, make it support new site.

![01](https://github.com/zhuzemin/anime1_danmaku/raw/master/Get Danmaku Link.jpg)

02

03

04

05