{"id":51097271,"url":"https://github.com/onestraw/tgbfish","last_synced_at":"2026-06-24T07:32:42.628Z","repository":{"id":364254073,"uuid":"1267109843","full_name":"onestraw/tgbfish","owner":"onestraw","description":"淘股吧摸鱼chrome插件","archived":false,"fork":false,"pushed_at":"2026-06-12T08:24:47.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-12T10:14:23.626Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/onestraw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-12T08:22:57.000Z","updated_at":"2026-06-12T08:24:50.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/onestraw/tgbfish","commit_stats":null,"previous_names":["onestraw/tgbfish"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/onestraw/tgbfish","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onestraw%2Ftgbfish","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onestraw%2Ftgbfish/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onestraw%2Ftgbfish/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onestraw%2Ftgbfish/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onestraw","download_url":"https://codeload.github.com/onestraw/tgbfish/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onestraw%2Ftgbfish/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34722702,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-24T02:00:07.484Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-24T07:32:42.260Z","updated_at":"2026-06-24T07:32:42.589Z","avatar_url":"https://github.com/onestraw.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# 淘股吧摸鱼 🎣\n\n\u003e 一个简洁优雅的 Chrome 浏览器插件，让你在淘股吧安心摸鱼，老板看不出来！\n\n## ✨ 功能特性\n\n- 🚫 **隐藏导航栏** - 移除顶部导航栏，清爽视野\n- 🚫 **隐藏标题栏** - 隐藏网页头部，简化界面\n- 🚫 **隐藏侧边栏** - 去除左右两侧栏目，扩展内容区域\n- 👻 **透明化图片** - 图片透明度设为 50%，不那么显眼\n- 📉 **缩小图片** - 图片尺寸缩小至 60%，更加隐蔽\n\n## 🚀 快速开始\n\n### 安装步骤\n\n1. **下载项目文件**\n   ```bash\n   git clone https://github.com/onestraw/tgbfish.git\n   ```\n\n2. **打开 Chrome 扩展程序页面**\n   - 在地址栏输入：`chrome://extensions/`\n   - 或通过菜单：☰ → 更多工具 → 扩展程序\n\n3. **启��开发者模式**\n   - 点击右上角的 **「开发者模式」** 开关\n\n4. **加载未打包的扩展程序**\n   - 点击 **「加载已解压的扩展程序」**\n   - 选择包含本项目文件的文件夹\n\n5. **完成！** ✅\n   - 访问 www.tgb.cn 即可看到效果\n\n## 📁 项目结构\n\n```\ntgbfish/\n├── manifest.json      # 扩展程序配置文件\n├── content.js         # 核心脚本，负责页面修改\n├── popup.html         # 扩展图标弹窗页面\n├── popup.css          # 弹窗样式\n├── popup.js           # 弹窗交互逻辑\n└── README.md          # 本文件\n```\n\n## ⚙️ 工作原理\n\n### content.js\n- 自动隐藏常见的导航栏、标题栏、侧边栏元素\n- 为隐藏侧边栏后的主内容区自动扩展宽度\n- 为所有图片添加透明度和缩小效果\n- 使用 MutationObserver 监听 DOM 变化\n- 定时检查新加载的内容，确保效果持续有效\n\n### popup.html/css/js\n- 提供友好的扩展程序弹窗界面\n- 支持启用/禁用插件的快速切换\n- 显示已启用的功能列表\n\n## 🎯 使用方法\n\n### 正常使用\n1. 访问 www.tgb.cn\n2. 插件会自动运行，隐藏导航栏、侧边栏等\n3. 图片会自动变透明和缩小\n4. 尽情摸鱼！😎\n\n### 快速切换\n- 点击 Chrome 工具栏上的扩展程序图标\n- 弹窗中勾选/取消 **「启用插件」** 即可快速开关\n\n## 🔧 自定义\n\n### 修改隐藏选择器\n编辑 `content.js` 中的 `SELECTORS_TO_HIDE` 数组：\n```javascript\nconst SELECTORS_TO_HIDE = [\n  'header',\n  'nav',\n  '.navbar',\n  // ... 添加更多选择器\n];\n```\n\n### 调整图片透明度\n在 `content.js` 中修改 `processImages()` 函数：\n```javascript\nimg.style.opacity = '0.5';  // 改为 0.3 更透明，0.8 更清晰\n```\n\n### 调整图片缩小比例\n在 `content.js` 中修改 `processImages()` 函数：\n```javascript\nimg.style.maxWidth = '60%';   // 改为其他百分比\nimg.style.maxHeight = '60%';\n```\n\n## ⚠️ 免责声明\n\n本扩展程序仅供学习和娱乐目的使用。请遵守公司的工作政策，在工作时间内合理使用。\n\n**摸鱼要适度，工作要认真！** 💼\n\n## 📝 更新日志\n\n### v1.0.0 (2026-06-12)\n- ✨ 初始版本发布\n- 🎨 实现核心功能：隐藏栏目、透明化缩小图片\n- 🎯 提供友好的弹窗界面\n\n## 🤝 贡献\n\n欢迎提交 Issue 和 Pull Request！\n\n有想法或发现 bug？请随时：\n- [提交 Issue](https://github.com/onestraw/tgbfish/issues)\n- [创建 Pull Request](https://github.com/onestraw/tgbfish/pulls)\n\n## 📄 许可证\n\nMIT License - 详见 [LICENSE](LICENSE) 文件\n\n## 🎉 致谢\n\n感谢所有使用和支持本项目的朋友！\n\n---\n\n**祝你摸鱼愉快！** 🎣✨\n\n*最后更新：2026-06-12*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonestraw%2Ftgbfish","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonestraw%2Ftgbfish","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonestraw%2Ftgbfish/lists"}