无编辑摘要
imported>=海豚= 小 (文本替换 - 替换“<br>”为“<br/>”) |
imported>=海豚= 无编辑摘要 |
||
| 第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 | button.append(`<br>(${_page}、${list[index].part})`); | ||
} | } | ||
element.before(button).remove(); | element.before(button).remove(); | ||
| 第406行: | 第406行: | ||
const href = title_text.attr("href"); | const href = title_text.attr("href"); | ||
if (list[index] !== undefined && list[index].cid !== undefined) { | if (list[index] !== undefined && list[index].cid !== undefined) { | ||
iframe.attr("data-src", `${iframe_href_base | iframe.attr("data-src", `${iframe_href_base}${prefix.iframe}=${id}&cid=${list[index].cid}&page=${_page}${tIsInvalid ? "" : `&t=${t}`}`); | ||
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 | if (subtitle) { title_text.append(`<br>(${_page}、${list[index].part})`); } | ||
} else { | } else { | ||
title_text.text(name + (tIsInvalid ? "" : `[视频从${time}开始播放]`)); | title_text.text(name + (tIsInvalid ? "" : `[视频从${time}开始播放]`)); | ||