/my redirector as an external script (CSP allows no inline scripts)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-10-08 15:40:10 -05:00
parent 8ec82bd282
commit ef06cd4baa
2 changed files with 10 additions and 1 deletions
+9
View File
@@ -0,0 +1,9 @@
// The classic /my dashboard is retired (2026-10-08). Old links, emails and bookmarks carry a #pane; send each to the
// control-room screen that replaced it. External file on purpose: the site's CSP allows no inline scripts.
(function () {
var M = { '': '/links', overview: '/tools', line: '/team', pipeline: '/tools#pipeline', buy: '/credits', rotator: '/links',
campaigns: '/ads', earn: '/ads', earnings: '/credits', promo: '/tools#promo', training: '/tools#training',
wallet: '/wallet', profile: '/tools#profile' };
var h = (location.hash || '').slice(1).toLowerCase();
location.replace(M.hasOwnProperty(h) ? M[h] : '/tools#' + h);
})();