(Early test , API may change)
- Checkout this plugin: https://github.com/typcn/vp.tucao
- Open project
- Edit / Run
- Inject Javascript on domain
Must be top level domain (example: youku.com)
- Inject Javascript file prefix
If set to "FILE" , will load Plugin.bundle/Contents/Resources/FILE.js
- Principal class
Main class of plugin , must inherit "VP_Plugin"
- (id)getClassOfType:(NSString *)type{
if([type isEqualToString:@"SubProvider"]){
return [[YourSubtitleProvider alloc] init];
}else{
return NULL;
}
}
See SP_Local or SP_Bilibili
commentFile is XML in bilibili format
subtitleFile is in ASS subtitle format
https://github.com/typcn/vp.tucao
https://github.com/typcn/vp.letv
https://github.com/typcn/vp.youku
Plugin need valid codesign from Apple or me (plugin/TYPCN_Root_G3.crt) , you can submit plugin to Plugin Store( coming soon ) , the server will sign it automaticly.