max / Tenor GIF Search for Twitter/X

安装步骤: 先安装脚本管理器,再点“安装”,最后打开脚本适用的网站。

用户脚本新手指南 Chrome Edge Firefox

发布时间:

版本: 1.1+6b49db2

摘要: Replaces Twitter/X's native GIF system with a custom Tenor GIF search system

许可证: MIT

反功能: 未说明

脚本来源与更新状态

以下数据来自原始来源,与本站收到的安装请求分开统计。

原始脚本: Tenor GIF Search for Twitter/X

来源版本: 1.0

最近来源检查:

最近成功检查:

来源站日安装量
0
来源站总安装量
0
本站安装请求
0

本站收到的请求不代表用户已完成安装。

点击安装只表示本站收到安装请求,不代表安装已完成。 安装后无法使用?查看问题反馈与排查

Tenor GIF Search for Twitter/X

A lightweight Tampermonkey userscript that replaces Twitter/X's native GIF system with a fully custom, client-side Tenor GIF search popover.

This userscript runs 100% client-side and does not require any local backend server. It dynamically scrapes the active Web API credentials from the Tenor website to ensure continuous, uninterrupted access even after the official developer API deprecation on June 30, 2026.


Features

  • 100% Client-Side Operation: Queries Tenor directly via Tampermonkey's cross-origin capabilities (GM_xmlhttpRequest), bypassing all CORS blockages.
  • Dynamic Credential Scraping: On launch, the script retrieves and decodes the active Google API Key used by the Tenor website, making it resilient to API key rotations.
  • Twitter-Styled Popover: Renders a centered dark mode modal (#000000 background, #202327 card containers) with category buttons that blend seamlessly with X's UI.
  • Automatic 15MB Upload Protection: Twitter/X enforces a strict 15MB media limit. The script automatically checks the size of the original GIF and falls back to compressed formats (mediumgif or tinygif) if it exceeds the limit, ensuring your GIF always uploads successfully.
  • Keyboard Shortcut Override: Captures and blocks key events (keypress, keydown, keyup with e.stopPropagation()) in the search input so that typing doesn't trigger Twitter's global hotkeys (like opening new composers or navigating).
  • Infinite Scrolling: Automatically fetches and appends the next page of GIFs as you scroll down the picker.
  • Programmatic File Injection: Fetches the selected GIF as a blob and injects it directly into Twitter's file upload system using the HTML5 DataTransfer API.

评分: 0