Ching e0b022d791 feat: Add 51cg website helper script with hot post filtering and read marking
- Add toggle to hide hot trending posts and ads on list pages
  - Implement automatic read post tracking with visual indicators (strikethrough, grayscale)
  - Auto-manage read history (max 1000 records with FIFO)
  - Add floating control panel with persistent settings
  - Support dark mode and dynamic content loading
  - Fix issue where article content pages were incorrectly hidden
  - Update README with script documentation
2025-09-21 20:31:00 +08:00

Tampermonkey Scripts Collection

一个 Tampermonkey 脚本集合,包含多个用于增强不同网站功能的脚本。

脚本列表

1. 51吃瓜网助手 (51cg-helper.user.js)

用于增强 51吃瓜网 (51cg1.com) 浏览体验的脚本。

功能特性

隐藏热搜帖子
  • 一键隐藏所有带有"热搜 HOT"标签的帖子
  • 同时自动隐藏广告帖子
  • 开关状态会自动保存,刷新页面后保持设置
  • 仅在列表页生效,不影响文章内容页的正常显示
标记已读帖子
  • 点击过的帖子会自动标记为已读状态
  • 已读帖子视觉效果:
    • 标题添加删除线
    • 图片变为黑白色
    • 整体透明度降低
  • 自动管理已读记录:
    • 最多保存 1000 条最近的已读记录
    • 超过限制自动删除最旧的记录FIFO 策略)
    • 无需手动清理
控制面板
  • 固定在页面右侧的控制面板
  • 包含两个开关:
    • 隐藏热搜:控制是否隐藏热搜和广告帖子
    • 标记已读:控制是否启用已读标记功能
  • 支持深色模式自动适配

安装使用

  1. 安装 Tampermonkey 扩展
  2. 打开脚本文件 51cg-helper.user.js
  3. 复制内容到 Tampermonkey 新建脚本
  4. 保存并启用脚本
  5. 访问 51cg1.com 即可看到右侧控制面板

2. Sort Jable Videos by Like Count (sortbylikecount.js)

按点赞数排序 Jable 视频的脚本。


通用安装方法

  1. 安装 Tampermonkey 扩展

  2. 安装脚本

    • 打开 Tampermonkey 管理面板
    • 点击"添加新脚本"
    • 复制对应脚本文件的内容
    • 保存脚本Ctrl+S 或 Cmd+S

文件结构

tampermonkey-script/
├── README.md                  # 本文档
├── 51cg-helper.user.js       # 51吃瓜网助手脚本
└── sortbylikecount.js        # Jable 排序脚本
Description
No description provided
Readme 61 KiB
Languages
JavaScript 100%