Skip to content

Commit

Permalink
Update Load pictures on ODSW.user.js
Browse files Browse the repository at this point in the history
  • Loading branch information
owendswang authored Nov 25, 2022
1 parent c6b6036 commit 61ad327
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Load pictures on ODSW.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// @name Load pictures on ODSW
// @name:zh-CN 加载ODSW网站上的图片
// @namespace https://www.owendswang.com/
// @version 0.2
// @version 0.3
// @description Load pictures from weibo.com without limitation on 'owendswang.com'.
// @description:zh-CN 跳过微博图床外链限制,加载“owendswang.com”网站上的微博外链图片。
// @icon https://avatars.githubusercontent.com/u/9076865?s=40&v=4
Expand Down Expand Up @@ -39,6 +39,8 @@
el.src = URL.createObjectURL(response);
} else if (el.tagName === "DIV") {
el.style.backgroundImage = 'url(\'' + URL.createObjectURL(response) + '\')';
} else if (el.tagName === "VIDEO") {
el.setAttribute('poster', URL.createObjectURL(response))
}
}
}
Expand Down

0 comments on commit 61ad327

Please sign in to comment.