Obey a strict CSP
Use this procedure on a site with a strict Content Security Policy (CSP). The core and the effects need no changes to the policy, because they set styles with element.style only.
Procedure
Make sure that your policy lets the page load the package script.
If you use the settings panel, give the nonce of the page to the
nonceoption:tsimport { createWand } from 'magic-cursor-wand'; import { panelPlugin } from 'magic-cursor-wand/panel'; const nonce = document.querySelector<HTMLMetaElement>('meta[name="csp-nonce"]')?.content ?? ''; createWand({ plugins: [panelPlugin({ nonce })] });If you use the script build with the panel, add
https://cdn.jsdelivr.nettoscript-src.Open the page and the browser console. Make sure that the console shows no CSP errors.
Result
The panel plugin gives the nonce to the style element of Tweakpane. The library makes no network requests for images.