惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Forbes - Security
Forbes - Security
GbyAI
GbyAI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
S
SegmentFault 最新的问题
Y
Y Combinator Blog
Recorded Future
Recorded Future
博客园 - Franky
I
InfoQ
T
The Blog of Author Tim Ferriss
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
阮一峰的网络日志
阮一峰的网络日志
T
Tailwind CSS Blog
Cyberwarzone
Cyberwarzone
The Register - Security
The Register - Security
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
雷峰网
雷峰网
P
Palo Alto Networks Blog
G
GRAHAM CLULEY
Cloudbric
Cloudbric
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
MongoDB | Blog
MongoDB | Blog
F
Full Disclosure
Google DeepMind News
Google DeepMind News
Recent Commits to openclaw:main
Recent Commits to openclaw:main
C
Check Point Blog
爱范儿
爱范儿
The GitHub Blog
The GitHub Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
W
WeLiveSecurity
T
Threat Research - Cisco Blogs
U
Unit 42
N
Netflix TechBlog - Medium
The Cloudflare Blog
Spread Privacy
Spread Privacy
Microsoft Azure Blog
Microsoft Azure Blog
美团技术团队
T
Troy Hunt's Blog
Engineering at Meta
Engineering at Meta
H
Heimdal Security Blog
TaoSecurity Blog
TaoSecurity Blog
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tenable Blog
B
Blog
S
Securelist
H
Hacker News: Front Page
Google Online Security Blog
Google Online Security Blog
G
Google Developers Blog

伪斜杠青年

又是一年清明,不对,又是一年五一。 | 伪斜杠青年 Parallels Desktop 实时回收 Linux 虚拟机磁盘不生效问题 无主之地2 MacOS 1.8.5 天邈汉化补丁与一键安装脚本 | 伪斜杠青年 从张雪机车的故事聊人生,相同之处是同是湖南人。 | 伪斜杠青年 抛弃 Zeroclaw 选择 AstrBot,简单易用,不过前提是不在意内存 | 伪斜杠青年 简单部署你的 Zeroclaw with Docker 喂饭版 目前处于 BUG 天梯状态的低效率 Claw 还不值得作为 Gatway 使用,需及时止损。 过去的 2025 教会了我从流量品牌祛魅 – 关于消费的思考 从 GPT 换到 Google Gemini 的感受 – 无敌 小米 12X 刷全功能内核 原生运行 LXC/Docker 指北 关于 MacOS 自带 OpenSSH 兼容性问题
Hide Portainer Business Upgrade Button (attribute based)
2025-10-28 · via 伪斜杠青年

更新了 Portainer 新版,这颜色方案不太适应,应该说 Upgrade 特别显眼,貌似故意为之。

为了体验更舒适,便留 Tampermonkey 脚本一份替代手工移除 Upgrade 按钮。

// ==UserScript==
// @name Hide Portainer Business Upgrade Button (attribute based)
// @namespace http://tampermonkey.net/
// @version 1.3
// @description 感谢 Portainer CE 提供出色的容器管理工具。
// 对于个人用户,社区版已足够使用。
// 本脚本仅隐藏界面中的“升级到商业版”提示,让界面更清爽。
// 脚本简单,若随版本更新失效,可再调整。
// @match *://*/*
// @grant none
// ==/UserScript==

(function() {
'use strict';

// 判断是否 Portainer 页面
function isPortainerPage() {
const html = document.documentElement;
return (
html.getAttribute('ng-app') === 'portainer' ||
html.dataset.edition === 'CE'
);
}

// 屏蔽按钮逻辑(彻底删除)
function removeUpgradeButton() {
const btns = document.querySelectorAll('button');
btns.forEach(btn => {
if (btn.textContent.includes('Upgrade to Business Edition') ||
btn.textContent.includes('升级到商业版')) {
btn.remove(); // 直接删除节点,而非隐藏
}
});
}

// 主逻辑
function init() {
if (!isPortainerPage()) return;

console.log('[Tampermonkey] Portainer detected — removing Business Edition button');

removeUpgradeButton();

// 监听 DOM 变化,防止按钮重新渲染出来
const observer = new MutationObserver(removeUpgradeButton);
observer.observe(document.body, { childList: true, subtree: true });
}

// 等待 DOM 加载完成
if (document.readyState === 'complete' || document.readyState === 'interactive') {
init();
} else {
window.addEventListener('DOMContentLoaded', init);
}
})();

已同步自 greasyfork,自行安装即可。Tampermonkey 启用生效后刷新可见清爽界面:

以上。