halo-theme-dream2.0-plus
Version:
1 lines • 754 B
JavaScript
(()=>{!function(){function checkDebug(){const startTime=performance.now(),endTime=(eval("debugger"),performance.now());300<endTime-startTime&&showBlockMessage()}function showBlockMessage(){document.body.innerHTML='<div style="position: fixed; width: 100%; height: 100%;top: 0;left: 0;display: flex;justify-content: center;align-items: center;font-size: 1.5rem;">\n<div><div style="text-align: center;">'+DreamConfig.ban_debug_tips+'</div><br/><a style="display: flex; justify-content: center;" data-not-pjax href="/">'+DreamConfig.ban_debug_back_home+"</a></div></div>"}checkDebug(),setInterval(function(){checkDebug()},1e3),document.addEventListener("keydown",function(e){("F12"===e.key||e.ctrlKey&&e.shiftKey&&"I"===e.key)&&e.preventDefault()})}()})();