分享一个在楼层左上角显示回复 ID 的油猴脚本
点击查看预览
![]()
代码在这 👇
// ==UserScript==
// @name 显示帖子序号
// @namespace http://tampermonkey.net/
// @version 2025.08.16
// @description 显示帖子序号
// @author 0x996
// @match https://nodeloc.cc/*
// @match https://6waed6lo6phn6.pages.dev/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=6waed6lo6phn6.pages.dev/
// @grant GM_addStyle
// ==/UserScript==
(function () {
'use strict';
if (window.top !== window) {
return;
}
const styles = `
.topic-post {
position: relative;
}
.topic-post:not(:first-child):before {
position: absolute;
top: 0;
right: calc(100% - 1px);
font-size: 13px;
min-width: var(--d-main-content-gap);
height: 2em;
line-height: 2em;
text-align: center;
color: var(--primary-medium);
border: 1px solid var(--content-border-color);
content: attr(data-post-number) !important;
}
`
if ('GM_addStyle' in window) {
GM_addStyle(styles);
} else if ('GM' in window) {
GM.addStyle(styles);
} else {
const style = document.createElement('style');
style.textContent = styles;
document.head.appendChild(style);
}
})();
8
21



可以共享、可以push的免费邮箱,更可使用自定义域名,完美契合您的各项需求。
21 条回复
排序