Widget:BilibiliVideo:修订间差异

添加2字节 、​ 2021年4月19日 (星期一)
文本替换 - 替换“<br>”为“<br/>”
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}开始播放]`));
匿名用户