TodosΒΆ
The stats pages (
/<keyword>+) draw no charts: they load the legacy, unversioned Google Charts loaderhttps://www.google.com/jsapi(YOURLS 1.10.6includes/functions-html.php:121-125), which the role CSP blocks inscript-src-elem, so every inlinegoogle.visualizationcall throws. Measured on/design01+: one CSP console error forjsapiand fivegoogle is not definedpage errors; the tabs and the click tables still render. The sources tab also requests referrer favicons from the hostswww.google.com(path/s2/favicons) andt0.gstatic.com(path/faviconV2). Options: allowwww.google.comandwww.gstatic.cominmeta/csp.yml(pulls an unpinned third-party script into the admin), replace the charts through a YOURLS plugin, or accept empty chart boxes.The notify bar on
/admin/index.phpnever hides:js/jquery.notifybar.js:92passes a string tosetTimeout, which the CSP refuses withoutunsafe-eval(console: βEvaluating a string as JavaScript violates the following Content Security Policy directive because βunsafe-evalβ is not an allowed source of scriptβ). Measured: the bar is still visible 6.5 s after a failed add. Options: an upstream fix to a function callback, or a YOURLS plugin that hides the bar; allowingunsafe-evalis not one.At 390 px the admin keeps its fixed desktop layout (
#wrapmax 950 px,#add-url400 px,#delete-confirm-dialog50em wide;bodycarriesdesktopfrom the User-Agent), so the page scrolls sideways and the delete dialog shows its content clipped. Options: responsive rules in a YOURLS plugin or upstream; layout is outside the role stylesheet.