支持Web、RPC、Blob、Aria等下载方式;支持下载flv、dash、mp4视频格式;支持下载港区番剧;支持下载字幕弹幕;支持换源播放等功能
< Обсуждения bilibili视频下载
若非收藏夹点开的视频的css样式不显示,可将2363行开始的(!function initToolbar() {)到(var toolbar_obj = $("#playlistToolbar"), toolbar_obj_2 = toolbar_obj.clone();)之间的代码(不包含这两行)替换为以下代码。
!function initToolbar() {
var toolbar_obj = $("#playlistToolbar"), toolbar_obj_2 = toolbar_obj.clone();
if ($("#arc_toolbar_report")[0]) { var arc_toolbar_obj = $("#arc_toolbar_report"), arc_toolbar_obj_2 = arc_toolbar_obj.clone(); arc_toolbar_obj_2.attr("id", "arc_toolbar_report_2"); var arc_left = arc_toolbar_obj_2.find(".video-toolbar-left"), arc_right = arc_toolbar_obj_2.find(".video-toolbar-right"); arc_left.children().remove(), arc_right.children().remove(), Object.keys(btn_list).map((function(key) { if ("more" !== key) { var item = arc_toolbar_obj.find(".toolbar-left-item-wrap").eq(0).clone(); item.attr("id", key); var svg = svg_map[key].replaceAll("#757575", "currentColor").replace("class", 'class="'.concat(item.find("svg").attr("class"), '"')), span = item.find("span").text(btn_list[key]), item_div = item.find("div").eq(0); item_div.attr("title", btn_list[key]), item_div.removeClass("on"), item_div.children().remove(), item_div.append(svg).append(span), arc_left.append(item); } else { var more_map = btn_list[key], el = "" + '<div class="more">更多<div class="more-ops-list">\n <ul>'.concat(Object.keys(more_map).map((function(key) { return '<li><span id="'.concat(key, '">').concat(more_map[key], "</span></li>"); })).join(""), "</ul>\n </div>"); arc_right.append(el + more_style); } })), arc_toolbar_obj.after(arc_toolbar_obj_2); } else if ($("#toolbar_module")[0]) { $("#toolbar_module").after('<div id="toolbar_module_2" class="tool-bar clearfix report-wrap-module report-scroll-module media-info" scrollshow="true"> <div id="setting_btn" class="like-info"> <i class="iconfont icon-add"></i><span>脚本设置</span> </div> <div id="bilibili_parse" class="like-info"> <i class="iconfont icon-customer-serv"></i><span>请求地址</span> </div> <div id="video_download" class="like-info" style="display:none"> <i class="iconfont icon-download"></i><span>下载视频</span> </div> <div id="video_download_2" class="like-info" style="display:none"> <i class="iconfont icon-download"></i><span>下载音频</span> </div> <div id="video_download_all" class="like-info"> <i class="iconfont icon-download"></i><span>批量下载</span> </div> <div class="more">更多<div class="more-ops-list"> <ul> <li><span id="download_danmaku">下载弹幕</span></li> <li><span id="download_subtitle">下载字幕</span></li> </ul> </div> </div> <style>.tool-bar .more{float:right;cursor:pointer;color:#757575;font-size:16px;transition:all .3s;position:relative;text-align:center}.tool-bar .more:hover .more-ops-list{display:block}.tool-bar:after{display:block;content:"";clear:both}.more-ops-list{display:none;position:absolute;width:80px;left:-65px;z-index:30;text-align:center;padding:10px 0;background:#fff;border:1px solid #e5e9ef;box-shadow:0 2px 4px 0 rgba(0,0,0,.14);border-radius:2px;font-size:14px;color:#222}.more-ops-list li{position:relative;height:34px;line-height:34px;cursor:pointer;transition:all .3s}.more-ops-list li:hover{color:#00a1d6;background:#e7e7e7}</style> </div> '); } else if ($("div.video-toolbar")[0]) { $("div.video-toolbar").after('<div id="arc_toolbar_report_2" style="margin-top:16px" class="video-toolbar report-wrap-module report-scroll-module" scrollshow="true"> <div class="ops"> <span id="setting_btn"> <i class="van-icon-general_addto_s"></i>脚本设置 </span> <span id="bilibili_parse"> <i class="van-icon-floatwindow_custome"></i>请求地址 </span> <span id="video_download" style="display:none"> <i class="van-icon-download"></i>下载视频 </span> <span id="video_download_2" style="display:none"> <i class="van-icon-download"></i>下载音频 </span> <span id="video_download_all"> <i class="van-icon-download"></i>批量下载 </span> </div> <div class="more"> <i class="van-icon-general_moreactions"></i> <div class="more-ops-list"> <ul class="more-ops-list-box"> <li class="more-ops-list-box-li"> <span id="download_danmaku">下载弹幕</span> </li> <li class="more-ops-list-box-li"> <span id="download_subtitle">下载字幕</span> </li> </ul> </div> </div> </div> '); } else if ($("#playlistToolbar")[0]) {
Войдите, чтобы ответить.
若非收藏夹点开的视频的css样式不显示,可将2363行开始的(
!function initToolbar() {
)到(var toolbar_obj = $("#playlistToolbar"), toolbar_obj_2 = toolbar_obj.clone();
)之间的代码(不包含这两行)替换为以下代码。