Skip to content

Commit

Permalink
Update Bilibili Download Pictures.user.js
Browse files Browse the repository at this point in the history
  • Loading branch information
owendswang authored Jul 15, 2024
1 parent 0bbd169 commit f20e4f4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Bilibili Download Pictures.user.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// ==UserScript==
// @name Bilibili Download Pictures
// @name:zh-CN 下载Bilibili动态页面图片
// @version 0.9.5
// @version 0.9.6
// @description Download pictures from bilibili timeline and 720P videos.
// @description:zh-CN 下载“Bilibili动态”时间线页面的图片,也可下载视频(720P单文件)
// @author OWENDSWANG
// @icon https://avatars.githubusercontent.com/u/9076865?s=40&v=4
// @license MIT
// @homepage https://greasyfork.org/scripts/421885
// @supportURL https://github.com/owendswang/Download-Pictures-from-Bilibili-Timeline
// @supportURL https://github.com/owendswang/Download-Pictures-from-Bilibili-Timeline/issues
// @match https://t.bilibili.com/*
// @match https://space.bilibili.com/*/dynamic*
// @match https://www.bilibili.com/opus/*
Expand Down Expand Up @@ -699,13 +699,13 @@
}
function handleOpusCard(card) {
// console.log('handleOpusCard');
if (card.getElementsByClassName('bili-album').length > 0 || (GM_getValue('enableVideoDownload', false) && card.getElementsByClassName('bili-dyn-card-video').length > 0)) {
if (card.getElementsByClassName('bili-album').length > 0 || card.getElementsByClassName('horizontal-scroll-album').length > 0 || (GM_getValue('enableVideoDownload', false) && card.getElementsByClassName('bili-dyn-card-video').length > 0)) {
addOpusDownloadButton(card);
}
}
function handleCard(card) {
// console.log('handleCard');
if (card.getElementsByClassName('bili-album').length > 0) {
if (card.getElementsByClassName('bili-album').length > 0 || card.getElementsByClassName('bili-dyn-gallery').length > 0) {
// console.log('add download button');
card.getElementsByClassName('bili-album__preview__picture__img').forEach((img) => {
img.addEventListener('click', function(event) {
Expand Down

0 comments on commit f20e4f4

Please sign in to comment.