fix(Bangumi_Topic_Share): fix ep card body color sampling wrong sub-reply element, bump to 6.3
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Bangumi Topic Share
|
// @name Bangumi Topic Share
|
||||||
// @namespace http://tampermonkey.net/
|
// @namespace https://greasyfork.org/scripts/574689
|
||||||
// @version 6.2
|
// @version 6.3
|
||||||
// @description Bangumi 分享工具:生成分享卡片,支持图片复制/下载、一键复制分享文案、可选 AI 标签
|
// @description Bangumi 分享工具:生成分享卡片,支持图片复制/下载、一键复制分享文案、可选 AI 标签
|
||||||
// @author Stardream
|
// @author Stardream
|
||||||
// @contributor Chang ji, Mewtw0
|
// @contributor Chang ji, Mewtw0
|
||||||
@@ -695,7 +695,7 @@
|
|||||||
try {
|
try {
|
||||||
const cw = contentDoc.defaultView || window;
|
const cw = contentDoc.defaultView || window;
|
||||||
const sampleQuoteQ = contentDoc.querySelector('.quote q');
|
const sampleQuoteQ = contentDoc.querySelector('.quote q');
|
||||||
const sampleBody = contentDoc.querySelector('.cmt_sub_content') || contentDoc.querySelector('.reply_content .message') || contentDoc.querySelector('.topic_content');
|
const sampleBody = contentDoc.querySelector('.reply_content .message') || contentDoc.querySelector('.topic_content');
|
||||||
if (sampleQuoteQ) {
|
if (sampleQuoteQ) {
|
||||||
const quoteColor = cw.getComputedStyle(sampleQuoteQ).color;
|
const quoteColor = cw.getComputedStyle(sampleQuoteQ).color;
|
||||||
if (quoteColor) quoteCss += `.quote,.quote q{color:${quoteColor} !important;}`;
|
if (quoteColor) quoteCss += `.quote,.quote q{color:${quoteColor} !important;}`;
|
||||||
|
|||||||
Reference in New Issue
Block a user