如何忽略/覆盖已有CSS类?解决隐藏文本无法显示问题
Got it, let's get that hidden text showing again! The original CSS uses an SVG filter (filter:url(#hidden-text)) to hide the content—this is a common trick similar to ad-block circumvention, but we can override it easily with your CSS modification tool.
Here's what you need to do:
Basic Override (Most Likely to Work)
Add this rule to your custom CSS. The!importantflag ensures your rule takes priority over the original site's CSS:.text-invisible { filter: none !important; }This completely removes the hidden-text SVG filter, which is almost certainly what's making the text disappear.
If the Basic Rule Doesn't Stick
Sometimes the original site uses a more specific CSS selector (like.some-parent .text-invisible). To beat that specificity, make your selector more precise. For example:/* Use the element type plus the class */ span.text-invisible, p.text-invisible { filter: none !important; } /* Or combine with a parent class from the site's HTML */ .article-content .text-invisible { filter: none !important; }Bonus: Cover All Bases
In rare cases, the text might have extra hidden properties. Add these to your rule to ensure it's fully visible:.text-invisible { filter: none !important; opacity: 1 !important; visibility: visible !important; display: inline !important; /* Adjust to block/inline-block if needed for layout */ }
That should do it! The key here is neutralizing the SVG filter that's hiding the text—once you set filter: none, the content should pop right back into view.
内容的提问来源于stack exchange,提问作者larsadreano

