Widget:BilibiliVideo:修订间差异
跳到导航
跳到搜索
imported>=海豚= 无编辑摘要 |
imported>=海豚= 小 (文本替换 - 替换“<br>”为“<br/>”) |
||
| 第224行: | 第224行: | ||
const button = $("<a/>").addClass("bilibili-video-button").attr("rel", "nofollow noreferrer noopener").attr("href", `https://www.bilibili.com/video/${prefix.href}${id}?p=${_page}${tIsInvalid ? "" : `&t=${t}`}`).text(`${name} [${_page}/${secondsParser(list[index].duration)}]${tIsInvalid ? "" : `[跳转至${time}]`}`); | const button = $("<a/>").addClass("bilibili-video-button").attr("rel", "nofollow noreferrer noopener").attr("href", `https://www.bilibili.com/video/${prefix.href}${id}?p=${_page}${tIsInvalid ? "" : `&t=${t}`}`).text(`${name} [${_page}/${secondsParser(list[index].duration)}]${tIsInvalid ? "" : `[跳转至${time}]`}`); | ||
if (list[index] !== undefined && list[index].cid !== undefined && subtitle) { | if (list[index] !== undefined && list[index].cid !== undefined && subtitle) { | ||
button.append(`<br>(${_page}、${list[index].part})`); | button.append(`<br/>(${_page}、${list[index].part})`); | ||
} | } | ||
element.before(button).remove(); | element.before(button).remove(); | ||
| 第409行: | 第409行: | ||
title_text.attr("href", href.replace(new RegExp(`\\?p=${page}`, "g"), `?p=${_page}`)); | title_text.attr("href", href.replace(new RegExp(`\\?p=${page}`, "g"), `?p=${_page}`)); | ||
title_text.text(`${name} [${_page}/${list.length}]${tIsInvalid ? "" : `[视频从${time}开始播放]`}`); | title_text.text(`${name} [${_page}/${list.length}]${tIsInvalid ? "" : `[视频从${time}开始播放]`}`); | ||
if (subtitle) { title_text.append(`<br>(${_page}、${list[index].part})`); } | if (subtitle) { title_text.append(`<br/>(${_page}、${list[index].part})`); } | ||
} else { | } else { | ||
title_text.text(name + (tIsInvalid ? "" : `[视频从${time}开始播放]`)); | title_text.text(name + (tIsInvalid ? "" : `[视频从${time}开始播放]`)); | ||
2021年4月19日 (一) 20:09的版本
| 名称: | Bilibili视频插件 |
| 作者: | 加大号的猫 |
| 修订: | Boxsnake |
| 重修订: | AnnAngela |
| H5版再修订: | |
| 新H5版又修订: | |
| 移动版支持: | XYZ指示物 |
| 版权协定: | MIT |
| 发布日期: | 2012年6月29日第一版发布; |
| 发布地址: | https://zh.moegirl.org.cn/Widget:BilibiliVideo && https://zh.moegirl.org.cn/Template:BilibiliVideo |
| 注意事项: | 如有问题,请联系作者。 |
本Widget不能单独使用,请使用{{BilibiliVideo}}!