Greasy Fork
登录
简体中文 (zh-CN)
繁體中文 (zh-TW)
Help us translate!
脚本
帮助
更多
高级搜索
用户列表
库
管理日志
☰
脚本
论坛
帮助
高级搜索
用户列表
库
管理日志
登录
简体中文 (zh-CN)
繁體中文 (zh-TW)
Help us translate!
信息
代码
历史
反馈 (2)
统计
X (推特) 书签滚动位置保持器
修复X(前Twitter)书签页面点击书签后自动滚动到顶部的问题,保持滚动位置
这些是代码更新过的版本。
显示所有版本
v0.4
2025-01-13
Version 0.4 (2024-01-13)
Added
Support for activating the script when navigating to bookmarks page from any X/Twitter page
URL change detection using MutationObserver and History API
Conditional script execution based on current page path
Changed
Extended @match patterns to cover all X/Twitter pages
Improved script initialization and event handling
Better logging for debugging purposes
Technical Details
Added route change detection for Single Page Application (SPA) compatibility
Implemented page-specific activation logic
Enhanced error handling and performance
版本 0.4 (2024-01-13)
新增
支持从任意 X/Twitter 页面导航到书签页面时激活脚本
使用 MutationObserver 和 History API 检测 URL 变化
基于当前页面路径的条件性脚本执行
变更
扩展了 @match 匹配规则以覆盖所有 X/Twitter 页面
改进了脚本初始化和事件处理机制
优化了调试日志输出
技术细节
添加了路由变化检测以兼容单页应用(SPA)
实现了页面特定的激活逻辑
增强了错误处理和性能表现
v0.3
2024-08-02
v0.3 (2024-08-02)
Added support for twitter.com domain
The script now works on both x.com and twitter.com bookmark pages
Improved compatibility to cover all current Twitter domain usage
v0.2
2024-08-01
v0.2 (2024-08-01)
Initial release
Fixed the issue of automatic scrolling to the top after clicking on a bookmarked post in X (formerly Twitter) Bookmarks page
Added support for maintaining scroll position when navigating through bookmarks
v0.1
2024-08-01