// ==UserScript==
// @name NodeSeek 沉浸劝退器
// @namespace https://your.name/nodeseek-blocker
// @version 2.0
// @description 访问 nodeseek.com 时全屏覆盖提醒,不弹窗、不看原内容
// @match http://www.nodeseek.com/*
// @match https://www.nodeseek.com/*
// @match http://nodeseek.com/*
// @match https://nodeseek.com/*
// @run-at document-start
// @grant none
// ==/UserScript==
(function () {
'use strict';
// 极早拦截,阻止后续资源加载
window.stop();
// 直接重写整个文档,原页面内容完全不会渲染
const html = `<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>歇会儿吧</title>
<style>
* { margin:0; padding:0; box-sizing:border-box; }
html, body { width:100%; height:100%; overflow:hidden; }
body {
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
color: #eaeaea;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: 24px;
}
.emoji { font-size: 72px; margin-bottom: 32px; animation: bounce 1.2s infinite ease-in-out; }
@keyframes bounce {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-16px); }
}
.line1 {
font-size: clamp(22px, 5vw, 36px);
font-weight: 700;
line-height: 1.5;
margin-bottom: 20px;
color: #ffd166;
}
.line2 {
font-size: clamp(18px, 4vw, 28px);
font-weight: 500;
line-height: 1.6;
color: #e0e0e0;
}
.line2 .highlight { color: #ef476f; font-weight: 700; }
.footer {
position: fixed;
bottom: 28px;
font-size: 13px;
color: #888;
letter-spacing: 1px;
}
.close-btn {
margin-top: 40px;
padding: 12px 32px;
font-size: 16px;
border: 2px solid #ef476f;
background: transparent;
color: #ef476f;
border-radius: 8px;
cursor: pointer;
transition: all .25s;
}
.close-btn:hover { background: #ef476f; color: #fff; }
</style>
</head>
<body>
<div class="emoji">🐂</div>
<div class="line1">今天你的牛马当完了么?</div>
<div class="line2">
要不抽点时间<br>
陪陪<span class="highlight">孩子</span>或者<span class="highlight">父母</span>???
</div>
<button class="close-btn" onclick="window.close()">关闭标签页</button>
<div class="footer">— 来自一个关心你的脚本 —</div>
</body>
</html>`;
document.open('text/html', 'replace');
document.write(html);
document.close();
// 再拦一次,防止页面后续被原站 JS 改写
Object.defineProperty(document, 'write', { value: () => {}, writable: false });
Object.defineProperty(document, 'writeln', { value: () => {}, writable: false });
})();