1window.REDIRECT_CONFIG = Object.freeze({ 2 defaultTarget: "official", 3 4 allowedOrigins: Object.freeze([ 5 "https://51dj.tv" 6 ]), 7 8 targets: Object.freeze({ 9 official: "https://51dj.tv/go/coolmeta" 10 }), 11 12 delayMs: 800 13}); 14 15(function () { 16 "use strict"; 17 18 const config = window.REDIRECT_CONFIG; 19 20 if (!config || !config.targets || !Array.isArray(config.allowedOrigins)) { 21 return; 22 } 23 24 const requestedAlias = new URLSearchParams(window.location.search).get("to"); 25 const alias = requestedAlias || config.defaultTarget; 26 27 if (!alias || !Object.prototype.hasOwnProperty.call(config.targets, alias)) { 28 return; 29 } 30 31 try { 32 const destination = new URL(config.targets[alias]); 33 34 if ( 35 destination.protocol !== "https:" || 36 !config.allowedOrigins.includes(destination.origin) 37 ) { 38 return; 39 } 40 41 const delay = Number.isFinite(config.delayMs) 42 ? Math.max(0, config.delayMs) 43 : 0; 44 45 window.setTimeout(function () { 46 window.location.replace(destination.href); 47 }, delay); 48 } catch (e) { 49 return; 50 } 51})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.