百度贴吧一键签到脚本

Created at a month ago
Updated at a month ago
百度贴吧一键签到脚本 - 自动获取关注贴吧列表并批量签到,支持移动端和桌面端,提供美观的签到结果展示
#百度贴吧
#签到助手
#批量签到
Total Installs
31
Today's New
+0
User Rating
- / 5.0 (0)
Current Version
1.0
Script Details
Applicable Sites
LicenseMIT
百度贴吧一键签到脚本,自动批量签到

百度贴吧一键签到脚本


语言 / Language:


中文

一款功能完善的百度贴吧一键签到用户脚本,支持自动获取关注贴吧列表并批量签到。

功能特性

  • 一键签到:自动获取用户关注的所有贴吧并批量签到
  • 📱 响应式设计:完美适配移动端和桌面端
  • 🎨 精美界面:采用温暖的棕色调设计风格,视觉效果优雅
  • 📊 详细统计:展示签到成功、已签到、失败数量及连续签到天数
  • 智能限速:移动端和桌面端采用不同的签到间隔,避免请求过快
  • 🛡️ 错误处理:完善的错误捕获和提示机制

安装说明

前置条件

  1. 安装浏览器扩展:

安装步骤

  1. 打开浏览器的用户脚本管理器(如 Tampermonkey)
  2. 点击「添加新脚本」
  3. tiebaqiandao.user.js 的内容复制粘贴到编辑器中
  4. 保存脚本

使用方法

  1. 登录百度贴吧
  2. 访问任意贴吧页面(如 https://tieba.baidu.com/)
  3. 等待页面加载完成后,右下角会出现「贴吧一键签到」按钮
  4. 点击按钮即可开始批量签到
  5. 签到完成后会弹出结果窗口,显示详细的签到统计

脚本配置

脚本已内置合理的默认配置,无需手动修改:

  • 签到间隔:桌面端约 1 秒,移动端约 1.5 秒
  • 请求超时:网络请求超时时间为 15-20 秒
  • 样式主题:温暖的棕色调配色方案

技术实现

核心功能

  1. 获取关注贴吧列表:通过访问 https://tieba.baidu.com/f/like/mylike 获取用户关注的贴吧
  2. 获取 TBS 参数:通过 API 或页面解析获取签到所需的 tbs 参数
  3. 批量签到:依次调用签到接口完成所有贴吧签到
  4. 结果展示:以弹窗形式展示签到结果统计

安全措施

  • 使用 GM_xmlhttpRequest 进行跨域请求,确保 Cookie 正确传递
  • 所有请求都带有合适的 Referer 和 User-Agent
  • 避免发送不必要的请求,保护用户隐私

注意事项

  1. 使用前请确保已登录百度贴吧账号
  2. 若签到失败,请检查登录状态是否过期
  3. 脚本仅在百度贴吧域名下运行
  4. 建议不要频繁点击签到按钮,避免触发限流

许可证

MIT License


English

A feature-rich userscript for automatically signing in to all your followed Baidu Tieba forums with one click.

Features

  • One-click Sign-in: Automatically fetch all followed forums and sign in batch
  • 📱 Responsive Design: Perfectly adapts to mobile and desktop devices
  • 🎨 Beautiful UI: Warm brown color scheme with elegant visual effects
  • 📊 Detailed Statistics: Shows success, already signed, failed counts and consecutive days
  • Smart Throttling: Different intervals for mobile and desktop to avoid rate limits
  • 🛡️ Error Handling: Comprehensive error catching and notification system

Installation

Prerequisites

  1. Install browser extension:

Installation Steps

  1. Open your browser's userscript manager (e.g., Tampermonkey)
  2. Click "Add new script"
  3. Copy and paste the content of tiebaqiandao.user.js into the editor
  4. Save the script

Usage

  1. Login to Baidu Tieba
  2. Visit any Tieba page (e.g., https://tieba.baidu.com/)
  3. After page loads, a "One-click Sign-in" button appears at the bottom right
  4. Click the button to start batch sign-in
  5. A result dialog will show detailed sign-in statistics

Configuration

The script has built-in reasonable defaults, no manual configuration needed:

  • Sign-in Interval: ~1 second on desktop, ~1.5 seconds on mobile
  • Request Timeout: 15-20 seconds for network requests
  • Style Theme: Warm brown color scheme

Technical Implementation

Core Features

  1. Fetch Followed Forums: Get followed forums via https://tieba.baidu.com/f/like/mylike
  2. Get TBS Parameter: Fetch tbs parameter via API or page parsing
  3. Batch Sign-in: Call sign-in API for each forum
  4. Result Display: Show statistics in a dialog window

Security Measures

  • Use GM_xmlhttpRequest for cross-domain requests with proper Cookie handling
  • All requests include proper Referer and User-Agent headers
  • Avoid unnecessary requests to protect user privacy

Notes

  1. Ensure you're logged in to Baidu Tieba before using
  2. If sign-in fails, check if your login session has expired
  3. Script only runs on Baidu Tieba domain
  4. Avoid clicking the button too frequently to prevent rate limiting

License

MIT License