Twitter/X 搜索日期快捷按钮

在 Twitter/X 搜索框下方添加日期筛选快捷按钮

作者
kaich
今日安裝
0
安裝總數
4
評價
0 0 0
版本
2025-06-25
建立日期
2025-06-25
更新日期
2025-06-25
尺寸
10.3 KB
授權條款
MIT
腳本執行於

Twitter/X Search Date Range Quick Buttons

Description

This userscript enhances Twitter/X's search functionality by adding convenient date range filter buttons directly below the search box. No more manually typing date filters - just click a button to instantly filter search results by time period.

sreenshot-img

Key Features

  • Quick Date Filters: One-click access to common date ranges
  • Smart Integration: Buttons appear automatically when you click the search box
  • Preserves Search Terms: Adds date filters without removing your existing search query
  • Multiple Time Ranges:
    • Today (今天): Shows results from today only
    • Last 7 Days (7天内): Results from the past week
    • Last 30 Days (30天内): Results from the past month
    • Last Week (上周): Results from the previous Sunday to Saturday
    • Last Month (上个月): All results from the previous calendar month
    • Last Year (去年): All results from the previous calendar year

How It Works

The script automatically detects when you interact with Twitter/X's search box and inserts a row of date filter buttons. Clicking any button will:

  1. Preserve your current search query
  2. Add appropriate since: and until: parameters
  3. Immediately execute the filtered search

Usage Guide

Basic Usage

  1. Go to Twitter/X search page (x.com/search or x.com/explore)
  2. Click on the search box
  3. The date filter buttons will appear below the search box
  4. Type your search query (or leave empty to search all tweets)
  5. Click any date button to filter results

Examples

  • Find recent news: Type "breaking news" → Click "Today"
  • Track weekly trends: Type your topic → Click "7天内"
  • Review last month's discussions: Type a hashtag → Click "上个月"
  • Year in review: Type "2024" → Click "去年" to see 2023's tweets about 2024

Support & Feedback

Changelog

  • Version 2025-06-25 Initial release

License

This script is provided as-is for personal use. Feel free to modify and share!


Note: This script is not affiliated with Twitter/X. It's a community-created enhancement.