{{ isApplyThemeChanges }}
{{ isApplyFontChanges }}
{{ isForcePreBackgroundColors }}
{{ isGFW }}
Real-time preview
import something from 'something'
// 获取并设置样式
const setStyle = () => {
// 获取主题样式并添加
const themeStyle = GM_getValue(hashString(currentTheme))
if (themeStyle) {
GM_addStyle(themeStyle)
} else {
const themeUrl = \`https://cdn.bootcss.com/highlight.js/9.15.10/styles/\${currentTheme}.min.css\`
fetchStyleText(themeUrl).then(style => {
GM_addStyle(style)
GM_setValue(hashString(currentTheme), style)
})
}
}
export default something