Regex匹配所有 url以image.extension结尾的选项卡(jpg, png…),包括本地文件的url(文件:///)
↑通过像Stylus这样的扩展应用自定义样式
的例子:
body {
background: repeating-conic-gradient(from 0deg, #ccc 0% 25%, #fff 0% 50%) 0px 0px/5vh 5vh fixed !important;
/* ↑ via https://css-tricks.com/background-patterns-simplified-by-conic-gradients/#cp_embed_GRprppy */
}
svg {
background: repeating-conic-gradient(from 0deg, #ccc 0% 25%, #fff 0% 50%) 0px 0px/5vh 5vh fixed !important;
}
/* MacOS Style Scrollbar */
::-webkit-scrollbar {
background-color: #fafafa;
}
::-webkit-scrollbar-thumb {
background-color: #c1c1c1;
border-radius: 8px;
border: solid #fafafa;
min-height: 15px;
min-width: 15px;
}
::-webkit-scrollbar-thumb:hover {
background-color: #a8a8a8;
}
更新:我找到了正确的正则表达式↓
(.*)(.png|.jpg|.jpeg|.avif|.gif|.svg|.mp3|.mp4)