禁止把 Windows PATH 注入到 WSL
禁止把 Windows PATH 注入到 WSL
配置WSL内存和swap
配置WSL内存和swap
.fancybox = { selector: `.timenode p>img`, css: `https://gcore.jsdelivr.net/npm/@fancyapps/ui@5.0/dist/fancybox/fancybox.css`, js: `https://gcore.jsdelivr.net/npm/@fancyapps/ui@5.0/dist/fancybox/fancybox.umd.js` }; var selector = '[data-fancybox]:not(.error), .with-fancybox .atk-content img:not([atk-emoticon])'; if (ctx.fancybox.selector) { selector += `, ${ctx.fancybox.selector}` } var needFancybox = document.querySelectorAll(selector).length !== 0; if (!needFancybox) { const memos = document.getElementsByClassName('ds-memos'); if (memos != undefined && memos.length > 0) { needFancybox = true; } const fancybox = document.getElementsByClassName('with-fancybox'); if (fancybox != undefined && fancybox.length > 0) { needFancybox = true; } } if (needFancybox) { utils.css(ctx.fancybox.css); utils.js(ctx.fancybox.js, { defer: true }).then(function () { Fancybox.bind(selector, { hideScrollbar: false, Thumbs: { autoStart: false, }, caption: (fancybox, slide) => { return slide.triggerEl.alt || slide.triggerEl.dataset.caption || null } }); }) }