Script Summary: 即时刷新 Twitter 、覆盖掉 Twitter 官方的垃圾快捷键,优化界面,各种贴心增强。 Auto-refresh Twitter timeline, override Twitter's stupid keyboard shortcuts and many more smart enhancements.
Version: 5.12
如果你有问题或者建议,请在 twitter @sfufoet
If your have any problem or suggest,PLZ @sfufoet on twitter. I read twitter most of the time.
欢迎大家捐助我,这样我才有动力继续折腾!
Perhaps you want to donate me a small amount for further script development like new features?
Follow @TwittSeven Plus to get update news.
修改自 @dofy 的 TwittSeven 脚本
Modified from @dofy's TwittSeven script.
FAQ:
如果你还没有新界面请不要升级。
If you hadn't got the new twitter, PLZ DON'T UPDATE.
如果你误升级了,请安装这个旧版本,并修改一下脚本,把 4.11 替换为 6.0。
If you mistakenly upgraded, PLZ intall this older version, and modify the script: replace all 4.11 to 6.0
如果你遇到这个过滤器的 bug,只需删除并重新建立。
If you found this bug, just delete and rebuild them.

是否会有一个 Chrome 版?不好意思,曾经折腾过,后来 Chrome 升级了,又不兼容了。。以我的技术是不会再折腾了。
If you will make TS+ compatible with chrome? Sorry. My ability is limited, I can't make it compatible with chrome.
Make a Better, Smart and Friendly Twitter!
Main feature:
- Auto-refresh timeline and mark unread tweets.
- Override Twitter's stupid keyboard shortcut.
- Filter - mute and unmute anyone, filter any keyword in your timeline.
- Auto mark the tweet your last read and auto scroll to it when you open twitter.com.
- More function: RT(old-fashioned retweet), Mute(Mute somebody temporary, refresh to unmuted all), Edit your tweet, Evernote(send a tweet to your Evernote),you can hide them on setting dialog.
- Hack ugly CSS: everyone's italic profile(because UTF-8 user can't easily to read italic charactors). And so on.
- Auto resize tweet editor when your input lots of charactor(this hack is in especial for UTF-8 user).
- Auto check update.
overrided Twitter's stupid keyboard shortcuts and added some new shortcuts, the underline line means I didn't change the original shortcuts:
- s(star): favorite or undo
- r : reply
- f(forward): retweet or undo
- Shift - r(RT): RT
- Shift - a : Mark all as read
- d : direct message to current tweet's sender
- n : new Tweet
- l : open all links in the current tweet
- t : translate current tweet in to your language or undo. after translated try shift - r, :)
- c : downward clean up timeline
- shift - c : upward clean up timeline
- m : mute
- e : send DM to @myen
- Ctrl-enter or Command-enter: submit your tweet!
- enter : toggle details pane
主要功能:
- 自动刷新时间线,并标记为未读。
- 覆盖掉 Twitter 官方的垃圾快捷键。
- 过滤功能:可以 mute 发推者和过滤时间线上的内容。
- 自动记录最后阅读的推,并在打开 twitter.com 的时候自动追推。
- 更多按钮: RT(原始 RT), Mute(临时静音某人,刷新后恢复), Edit (编辑自己的推),Evernote(发送当前推到你的 Evernote),这些按钮都可以在设置对话框里面设置隐藏或显示。
- Hack 难看的 CSS: 每个人的简介和展开面板
- 自动调整输入框的大小。对于中文或者其他 UTF-8 语系的推友来说, twitter 的输入框太小气了。
- 自动检查更新。
覆盖掉 Twitter's 的 SB 快捷键,并增加了一些新的快捷键,下划线表示没有改变的快捷键,粗体代表修改过的快捷键。
- s(star): 收藏或者撤销收藏
- r :回复
- f(forward): 官方的 Retweet 或撤销
- Shift + r(RT):原始 RT
- Shift + a :标记为已读
- d : 发送 DM 给当前用户
- n :新推
- l : 打开当前推的包含的链接
- t : 翻译当前推,或者撤销。翻译后试试 shift + r 吧, :)
- c : 向下清理时间线
- shift - c : 向上清理时间线
- m : mute 掉发推者
- e : 发生 DM 给 @myen
- Ctrl-enter 或 Command-enter: 发推
- enter : toggle details pane
更新日志( log ):
2012-06-08
5.12
由于 Twitter 页面更新,修正 Bug
Cause Twitter's UI update, Fix bugs.
2012-02-09
5.11
隐藏 promoted-tweet
Hide promoted-tweet
修复主页插入过滤对话框的 bug
Fix filter panel's insert bug
修复 Bug:快捷键 G + S 和 G + F
Fix bug: shortcut g + s and g + f
2012-02-17
5.09
交换 fullname 和 username
Add exchange fullname and username.
修正 RT 的光标没有定位到开头的 bug。
Fixed issue: RT's cursor didn't go to the first.
2012-02-10
5.07
修改按下 Ctrl 就发推。技巧:Ctrl + Enter 可以提交。
Fixed bug: press ctrl to submit. TIP: Ctrl-enter can submit.
2012-02-09
5.06
修正过滤功能。
Fixed bug: filter isn't work in sometimes.
优化自定义工具按钮的插入速度。
Optimized custom buttons insert into action bar.
新增快捷键 ⌘-enter 发推
New shortcut ⌘-enter: send your tweet!
2012-01-19
5.03
修正 DM 到 Evernote 的错误。
Fixed send DM to "myen" not "evernote"
修正展开的回复推的 CSS bug
Fiexd CSS bug of opened tweet.
新增自动关闭 Whoops! You already tweeted that
Added auto close "Whoops! You already tweeted that"
2012-01-15 ver 5.0
功能上基本还是和老版本一样。新增了发送 DM 到 Evernote @myen(快捷键是 E),去掉了翻译功能。
Compatible for New Twitter!
Added: Send DM to @myen(Shortcut: E),remove translate feature.
新增自动关闭 Sorry! We did something wrong.
Added auto close "Sorry! We did something wrong."
新增自动关闭 Whoops! Something went wrong..
Added auto close "Whoops! Something went wrong."
新增自动关闭 Your account may not be allowed to perform this action.
Added auto close "Your account may not be allowed to perform this action."
过滤器只在首页起作用。
Filter just work on the home page.
2011-11-05
4.11
修正上一版出现的 bug
修正检查更新函数,只有在 twitter 首页才检查。
Fixed bug
Fixed check update function, only check update on twitter's main page.
2011-11-04
4.1 修正检查更新的函数
添加 Favorite 按钮到 Lists 后面
Fixed check update function
Added Favorite button after 'Lists'
2011-08-30
4.0.7 修复 bug。
Fixed bugs。
4.0.6 杀掉每一条推里的 t.co。
kill t.co in every tweet.
2011-07-22
4.0.5 优化自定义按钮插入。
Optimized insertion efficiency of custom buttons.
2011-07-10
4.0.4 修复 bug ,去掉预览各种嵌入视频的功能。
Fixed bugs, remove third websites vedio preview.
2011-01-26
4.0.3 由于 Twitter 升级,无法自动刷新。已修复。
Fixed bug: can't auto refresh timeline, cause twitter updated.
2011-01-09
4.0.2 修复不能追推的 bug ,做了一下优化。
fixed a bug and make some Optimizations.
2010-11-03 TwittSeven Plus 3.9 For #NewTwitter release! The features are Compatible #NewTwitter. Maybe,It has some unkonw bugs. If you found it, please tell me or @sfufoet.
This is script isn't Compatible for Chrome. Sorry.
3.9 版本释出,把原来的功能折腾到兼容 #NewTwitter 了。可能还有 Bug 。发现了请告诉我一声或者 @sfufoet 。
English description is below.
【请删除旧版的 Twittseven 非官方修正版 3.2.1 】
[Please delete Twittseven 3.2.1]
@dofy 同学忙于工作,随着 twitter 的更新, twittseven 脚本 出现了很多 bug ,所以自己动手丰衣足食。
- 完美搞定 reply 按钮。
- 保留人肉 RT 功能。
- 即时刷新 Twitter 上的 XXX new tweets 。那意味着,再也不用输入用户名和密码了。
- Refresh 功能给我干掉了。变成自动点击 XXX new tweets 。官方自动刷新的时间间隔好像是 30 秒。
- 修正了上次用“土办法”解决的 Bug 。( 用一个土方法解决 reply 后跳到顶部的问题。 )
- 清理了没用的代码
- 按住 Ctrl 点击 reply 按钮等于 reply all 。
- ( ver 3.0.0 )整合 ReTweet Avtars ,把 RT 者的头像显示出来,被 RT 者的头像以小头像挂在右下角。
- 把推发送出去之后,会在顶部提示正在发送的推的完整内容。方便发送失败的时候复制后重新发送。
- 修正了时间线有时候不能刷新的问题。
- 增加快捷键:
- R - 回复当前推(就是鼠标指针下的那个推,或者用 J 、 K 选中的推)。
- Shift + R - 转推。
- S - 收藏加星修改为 S ,上一个版本是 F ,修改的原因是,和 Google 的快捷键统一。不怕时空错乱。
- J 、 K ,在时间线上下选择推(以鼠标指针下的那个推为基准)。脚本载入后自动选中时间线上的第一个推。
- D - DM 当前用户
- L - 打开当前推里面的链接
- Shift+A - 标记为已读
- A - 回复当前推提到的全部 ID ,外加发推者
- F - 一键调用官方 RT 或者 undo ,在此挑剔下 Twitter Shortcut ,它需要按下 E Y 才能点击官方 RT 。快捷键就是为了方便,如果需要按下两个按键,还不如直接用鼠标算了。
3.1.1 任意推友的个人时间线顶部添加了一个输入框,也就是说,再也不用跳转到 Home 页面来回复。
3.1.2 增加输入框状态提醒,如果光标位于输入框,回在左上角显示一个白色小方框。
3.1.3 增加快捷键 12345 对应 home , reply , DM , Fav , RT
3.1.4 修复 update 链接。在 Home 相当于点击 Home 来刷新时间线。在 Reply 相当于点击 Reply 来刷新时间线
3.1.5 增加快捷键 C (取 Clean 的 C ):一键清理当前推以下的 tweets ,只保留离当前推最近的 6 个 tweet 和未读的 tweets 。因为全部清理掉的话,会触发翻页。修复 Reply 页面的回复快捷键。时间线上保留越多的 tweets , Firefox 越卡,占用的内存也越多。
3.1.6 清理掉无用的 auto 相关代码。
3.1.7 自动刷新时间线的时候,窗口随之滚动,保持滚动条在未读推位置,也就是说,再也不会因为长时间离开,而用滚轮追到最后阅读的位置。
3.1.8 修复 Bug :在 replies 页面 RT 按钮无法正确获得发推者的问题。
3.1.9 修复发重复推。去掉 RT 的尾巴? // ?。点击 RT 后把光标定位到文字的前面。把要回复的内容放前面才是比较正确的 RT 方式。
3.2.0 修复上一版安装失败的问题。因为脚本调用的一张图片在 Dofy 的服务器上,而服务器挂了。已经把图片整合到脚本里面去了。
3.2.1 修复在搜索栏和首页两个登录框无法输入 J K (快捷键冲突)的问题。
3.2.2 输入文字的时候,不刷新 twitter 。 THX @CleverClogs http://twitter.com/CleverClogs.
3.3 增加设置功能,点击 TwittSeven+ 打开或隐藏设置界面。恢复快速提交快捷键: Ctrl + Enter 。
Added "option", Click TwittSeven+ to toggle setting dialog. Added a new shortcut, Ctrl - Enter:submit
3.3.1 增加每一条推的行高,看长长的文字不会觉得太挤了。
Added line-height(20 px)to every tweet.
3.3.2 修复 Bug :有时候用了官方 RT 功能,再点击脚本增加的 RT 按钮,偷取了输入框之后,可能会有点错乱。
增加输入框的行高。
Bug fixed: reply to a tweet "official RT" by you, the textarea may ugly to use.
Added line-height(19 px)to the textarea.
3.3.3 修正 RT 按钮的 CSS ,并增加 Hover 状态。
Fixed "RT" button's CSS, and Added hover.
3.3.4 修正自动追推。
Fixed auto scroll to the last tweet.
3.3.5 支持预览 img.ly 图片。
Added: preview image from img.ly.
3.4 增加 Mute 功能。点击 Mute 或者按下快捷键 Mute 之后,该推友在时间线上的推都会被删除,在自动刷新模式下,被 Mute 的推友发出的推都不会显示在你的时间线上。直到你 Unmute 或者刷新页面为止。注意:对官方 RT 的推使用 Mute 功能, Mute 的对象是推的发布者,不是 RT 者。
Added: Mute! Click "Mute" or press shortcut "M" to mute somebody. If somebody be muted, his/her tweets in your timeline will be removed, and after a auto-refresh start, his/her tweet will be removed too. Until you unmute he/she. Notice: use mute to a official Twitter retweet, the original author(not somebody who use official retweet)will be muted!
3.4.2 增加 RT 按钮和 mute 按钮的隐藏选项。并改进设置界面。界面代码参考了 这个教程。
增加这将是你的第 XXXXX 推提醒功能。在 Alert 下设置。
Added: Hide Twittsevn ? s "Retweet" button and Hide "Mute"(Press F5 to reload), redesign TwittSeven's setting UI.
Added: the number of your tweets alert - This will be your XXXXX tweets! It's at the "alert" tab.
3.4.3 修正 twitter 设置界面的 CSS 冲突。
fix css conflict in twitter settings page.
3.4.4 增大 Hovercard 的字号
Added "font-size: 12px" to Hovercard, it's too small to uft-8 user.
3.4.5 再次修正 Ctrl + Enter
Fixed shortcut "Ctrl - Enter" again
3.4.6 修正回复全部人出现重复 ID 的 bug ,并排除掉自己。感谢推友 zieglar 的修正。
Fixed "duplicate ID and reply to yourself" bug when reply to all, thx zieglar's help!
English
THX @CleverClogs's translation.
Auto-refresh Twitter timeline, keyboard shortcut controls and many more enhancements.
Shortcuts:
TwittSeven Plus supports the following keyboard shortcuts, similar to the keyboard controls in Google Reader:
A - reply to all people referred to in the current tweet, including the sender.
Shift-A - mark all as read
C - clean up the list of tweets, just left 6 tweets. If you feel your firefox is slower, Please clean up the tweets.
D - DM to sender of current tweet
F(Forward)- official Twitter retweet, sent without confirmation. Press "F" again, it will undo retweet.
J - select previous tweet
K - select next tweet
L(Link)- open all links in the current tweet
R - reply to tweet
Shift-R - old-fashioned RT retweet
S - favorite("star")current tweet(toggle)
Ctrl-Enter - submit
M - mute somebody. If somebody be muted, his/her tweets in your timeline will be removed, and after a auto-refresh start, his/her tweet will be removed too. Until you unmute he/she.
1 - Home,Alternatively , it is also clean up the list of tweets.
2 - Open Replies page
3 - Open Direct Messages page
4 - Open Favorites page
5 - Open Retweets by Others page



